	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LargeObjectCreate              ## -- Begin function LargeObjectCreate
	.p2align	4, 0x90
_LargeObjectCreate:                     ## @LargeObjectCreate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_largeobject_metadata@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rbx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_LargeObjectMetadataRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r15d
	leal	(,%r14,4), %ebx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	%r14d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_LargeObjectMetadataOidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Anum_pg_largeobject_metadata_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_GetNewOidWithIndex
	movl	%eax, %r14d
LBB0_2:
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_largeobject_metadata_oid@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r13,%rcx,4)
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%eax, %edi
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_largeobject_metadata_lomowner@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r13,%rcx,4)
	movq	_Anum_pg_largeobject_metadata_lomacl@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	$1, -4(%r12,%rax,4)
	movl	%r15d, %edi
	callq	_RelationGetDescr
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_heap_form_tuple
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_CatalogTupleInsert
	movl	%ebx, %edi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_table_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_largeobject_metadata,4,2 ## @Natts_pg_largeobject_metadata
	.comm	_LargeObjectMetadataRelationId,4,2 ## @LargeObjectMetadataRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_LargeObjectMetadataOidIndexId,4,2 ## @LargeObjectMetadataOidIndexId
	.comm	_Anum_pg_largeobject_metadata_oid,4,2 ## @Anum_pg_largeobject_metadata_oid
	.comm	_Anum_pg_largeobject_metadata_lomowner,4,2 ## @Anum_pg_largeobject_metadata_lomowner
	.comm	_Anum_pg_largeobject_metadata_lomacl,4,2 ## @Anum_pg_largeobject_metadata_lomacl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LargeObjectCreate              ; -- Begin function LargeObjectCreate
	.p2align	2
_LargeObjectCreate:                     ; @LargeObjectCreate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _Natts_pg_largeobject_metadata@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Natts_pg_largeobject_metadata@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	lsl	x8, x23, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh10:
	adrp	x8, _LargeObjectMetadataRelationId@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LargeObjectMetadataRelationId@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x24, _RowExclusiveLock@GOTPAGE
Lloh14:
	ldr	x24, [x24, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_table_open
	mov	x21, x0
	lsl	w23, w23, #2
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	mov	x0, x19
	bl	_OidIsValid
Lloh15:
	adrp	x23, _Anum_pg_largeobject_metadata_oid@GOTPAGE
Lloh16:
	ldr	x23, [x23, _Anum_pg_largeobject_metadata_oid@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh17:
	adrp	x8, _LargeObjectMetadataOidIndexId@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LargeObjectMetadataOidIndexId@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_GetNewOidWithIndex
	mov	x19, x0
LBB0_2:
	mov	x0, x19
	bl	_ObjectIdGetDatum
	ldrsw	x8, [x23]
	add	x8, x20, x8, lsl #2
	stur	w0, [x8, #-4]
	bl	_GetUserId
	bl	_ObjectIdGetDatum
Lloh20:
	adrp	x8, _Anum_pg_largeobject_metadata_lomowner@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Anum_pg_largeobject_metadata_lomowner@GOTPAGEOFF]
Lloh22:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #2
	stur	w0, [x8, #-4]
Lloh23:
	adrp	x8, _Anum_pg_largeobject_metadata_lomacl@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Anum_pg_largeobject_metadata_lomacl@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	add	x8, x22, x8, lsl #2
	mov	w9, #1
	stur	w9, [x8, #-4]
	mov	x0, x21
	bl	_RelationGetDescr
	mov	x1, x20
	mov	x2, x22
	bl	_heap_form_tuple
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_CatalogTupleInsert
	mov	x0, x20
	bl	_heap_freetuple
	ldr	w1, [x24]
	mov	x0, x21
	bl	_table_close
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_largeobject_metadata,4,2 ; @Natts_pg_largeobject_metadata
	.comm	_LargeObjectMetadataRelationId,4,2 ; @LargeObjectMetadataRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_LargeObjectMetadataOidIndexId,4,2 ; @LargeObjectMetadataOidIndexId
	.comm	_Anum_pg_largeobject_metadata_oid,4,2 ; @Anum_pg_largeobject_metadata_oid
	.comm	_Anum_pg_largeobject_metadata_lomowner,4,2 ; @Anum_pg_largeobject_metadata_lomowner
	.comm	_Anum_pg_largeobject_metadata_lomacl,4,2 ; @Anum_pg_largeobject_metadata_lomacl
.subsections_via_symbols
