I am sure the following are all for the ONE marriage, but I am typing them up as they show the variations in spelling and mis-reads in the very details that occurred in Sydney NSW records in the penal era, and the need to search thoroughly on all the many variations.
From an image Convicts Applications to Marry, page 142 permission dated 2 August 1834.
Rev William COWPER. 1834
William PATTISON, aged 34, arrived per Glory, under a Life Sentence, On a Ticket of Leave,
Ann MAGLOGLIN or KELLY, aged 24, arrived per Edward, under a sentence of 7 years, still under a Bond,
From a transcription at Family Search, being a transcription of a record of a church register -
https://familysearch.org/ark:/61903/1:1:XTCT-8NGWilliam PATTERSON marriage on 12 August 1834, to Ann MCLAUGHLIN or KELLY, registered St Phillips, Sydney NSW.
From NSW State Archives online index https://www.records.nsw.gov.au/archives/collections-and-research/guides-and-indexes/convicts-guide (plenty of quality guides there), then to
https://www.records.nsw.gov.au/archives/collections-and-research/guides-and-indexes/convicts-applications-marryWilliam PATTISON per Edward (the ship of arrival - males) aged 34, under a life sentence, condition Bond,
And
Ann MAGLOGHLIN alias Ann KELLY, per York (the ship of arrival – females) aged 24, sought on 26 July 1834, permission to marry – Revd W COWPER …
NSW Archives : reel 713, fiche 782-785.
From NSW BDM marriages,
https://www.nsw.gov.au/topics/family-history-search and
https://www.nsw.gov.au/topics/family-history-search/registry-records/early-church-codes Early Church Records :
William PATTERSON, and Ann KELLY, 1834, Volume 18, line 1197, (1197V1834119718) ‘CA’
JM