	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_create              ## -- Begin function replorigin_create
	.p2align	4, 0x90
_replorigin_create:                     ## @replorigin_create
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_CStringGetTextDatum
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_IsTransactionState
	movl	%eax, %edi
	callq	_Assert
	callq	_InitDirtySnapshot
	movq	_ReplicationOriginRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	incq	%r14
	movq	_PG_UINT16_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_4
## %bb.1:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_Natts_pg_replication_origin@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	_Anum_pg_replication_origin_roident@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_ObjectIdGetDatum
	leaq	-92(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_ReplicationOriginIdentIndex@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	$1, %edx
	leaq	-96(%rbp), %rcx
	movl	$1, %r8d
	movq	%rbx, %r9
	callq	_systable_beginscan
	movq	%r14, %r12
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_systable_endscan
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	incq	%r12
	movq	_PG_UINT16_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	movq	%r12, %r14
	jl	LBB0_2
LBB0_4:
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rdi
	callq	_heap_freetuple
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	shll	$2, %edx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	%r12, %rdi
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_replication_origin_roident@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, -4(%rbx,%rcx,4)
	movq	_Anum_pg_replication_origin_roname@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, -4(%rbx,%rax,4)
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_RelationGetDescr
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_heap_form_tuple
	movq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_CatalogTupleInsert
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_table_close
	testq	%rbx, %rbx
	movq	%r12, %r14
	jne	LBB0_7
	jmp	LBB0_6
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ReplicationOriginRelationId,4,2 ## @ReplicationOriginRelationId
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_PG_UINT16_MAX,8,3              ## @PG_UINT16_MAX
	.comm	_Natts_pg_replication_origin,4,2 ## @Natts_pg_replication_origin
	.comm	_Anum_pg_replication_origin_roident,4,2 ## @Anum_pg_replication_origin_roident
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_ReplicationOriginIdentIndex,4,2 ## @ReplicationOriginIdentIndex
	.comm	_Anum_pg_replication_origin_roname,4,2 ## @Anum_pg_replication_origin_roname
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find free replication origin OID"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_create              ; -- Begin function replorigin_create
	.p2align	2
_replorigin_create:                     ; @replorigin_create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_CStringGetTextDatum
	mov	x21, x0
	bl	_IsTransactionState
	bl	_Assert
	bl	_InitDirtySnapshot
Lloh3:
	adrp	x8, _ReplicationOriginRelationId@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ReplicationOriginRelationId@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_table_open
	mov	x20, x0
Lloh9:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x19, x8, #1
Lloh12:
	adrp	x8, _PG_UINT16_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PG_UINT16_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ge	LBB0_4
; %bb.1:
	stur	w21, [x29, #-100]               ; 4-byte Folded Spill
Lloh15:
	adrp	x21, _Natts_pg_replication_origin@GOTPAGE
Lloh16:
	ldr	x21, [x21, _Natts_pg_replication_origin@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, sp
	ldr	w27, [x21]
	lsl	x8, x27, #2
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w8, [x21]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh19:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh20:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	bl	_CHECK_FOR_INTERRUPTS
Lloh21:
	adrp	x8, _Anum_pg_replication_origin_roident@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Anum_pg_replication_origin_roident@GOTPAGEOFF]
Lloh23:
	ldr	w24, [x8]
Lloh24:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh26:
	ldr	w25, [x8]
Lloh27:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh29:
	ldr	w26, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x4, x0
	sub	x0, x29, #96
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_ScanKeyInit
Lloh30:
	adrp	x8, _ReplicationOriginIdentIndex@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ReplicationOriginIdentIndex@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	sub	x3, x29, #92
	sub	x5, x29, #96
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_systable_beginscan
	mov	x24, x0
	bl	_systable_getnext
	bl	_HeapTupleIsValid
	mov	x25, x0
	mov	x0, x24
	bl	_systable_endscan
	cbz	w25, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	sp, x28
	add	x19, x19, #1
Lloh33:
	adrp	x8, _PG_UINT16_MAX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PG_UINT16_MAX@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x19, x8
	b.lt	LBB0_2
LBB0_4:
Lloh36:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_table_close
LBB0_5:
Lloh39:
	adrp	x8, _ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w20, [x8]
Lloh42:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_errcode
Lloh45:
	adrp	x0, l_.str@PAGE
Lloh46:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	x21, #0
LBB0_6:
	mov	x0, x21
	bl	_heap_freetuple
	ldur	x8, [x29, #-88]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	lsl	w2, w27, #2
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	bl	_ObjectIdGetDatum
Lloh50:
	adrp	x8, _Anum_pg_replication_origin_roident@GOTPAGE
Lloh51:
	ldr	x8, [x8, _Anum_pg_replication_origin_roident@GOTPAGEOFF]
Lloh52:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
Lloh53:
	adrp	x8, _Anum_pg_replication_origin_roname@GOTPAGE
Lloh54:
	ldr	x8, [x8, _Anum_pg_replication_origin_roname@GOTPAGEOFF]
Lloh55:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #2
	ldur	w9, [x29, #-100]                ; 4-byte Folded Reload
	stur	w9, [x8, #-4]
	mov	x0, x20
	bl	_RelationGetDescr
	mov	x1, x23
	mov	x2, x22
	bl	_heap_form_tuple
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_CatalogTupleInsert
	bl	_CommandCounterIncrement
	mov	sp, x28
Lloh56:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_table_close
	cbnz	x21, LBB0_6
	b	LBB0_5
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_ReplicationOriginRelationId,4,2 ; @ReplicationOriginRelationId
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_PG_UINT16_MAX,8,3              ; @PG_UINT16_MAX
	.comm	_Natts_pg_replication_origin,4,2 ; @Natts_pg_replication_origin
	.comm	_Anum_pg_replication_origin_roident,4,2 ; @Anum_pg_replication_origin_roident
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_ReplicationOriginIdentIndex,4,2 ; @ReplicationOriginIdentIndex
	.comm	_Anum_pg_replication_origin_roname,4,2 ; @Anum_pg_replication_origin_roname
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find free replication origin OID"

.subsections_via_symbols
