	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetNewObjectId                 ## -- Begin function GetNewObjectId
	.p2align	4, 0x90
_GetNewObjectId:                        ## @GetNewObjectId
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	_OidGenLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_ShmemVariableCache@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rbx
	movq	_FirstNormalObjectId@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_6
## %bb.3:
	movq	_IsPostmasterEnvironment@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	jne	LBB0_5
## %bb.4:
	movq	_FirstBootstrapObjectId@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rbx
	jge	LBB0_6
LBB0_5:
	movq	%rcx, (%rax)
	movq	$0, 8(%rax)
	movq	%rcx, %rbx
LBB0_6:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.7:
	movq	_VAR_OID_PREFETCH@GOTPCREL(%rip), %r12
	addq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_XLogPutNextOid
	movq	(%r12), %rcx
	movq	(%r15), %rax
	movq	%rcx, 8(%rax)
	movq	(%rax), %rbx
LBB0_8:
	leaq	1(%rbx), %rdx
	movq	%rdx, (%rax)
	decq	%rcx
	movq	%rcx, 8(%rax)
	movl	(%r14), %edi
	callq	_LWLockRelease
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot assign OIDs during recovery"

	.comm	_OidGenLock,4,2                 ## @OidGenLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
	.comm	_FirstNormalObjectId,8,3        ## @FirstNormalObjectId
	.comm	_IsPostmasterEnvironment,8,3    ## @IsPostmasterEnvironment
	.comm	_FirstBootstrapObjectId,8,3     ## @FirstBootstrapObjectId
	.comm	_VAR_OID_PREFETCH,8,3           ## @VAR_OID_PREFETCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetNewObjectId                 ; -- Begin function GetNewObjectId
	.p2align	2
_GetNewObjectId:                        ; @GetNewObjectId
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_RecoveryInProgress
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
Lloh5:
	adrp	x20, _OidGenLock@GOTPAGE
Lloh6:
	ldr	x20, [x20, _OidGenLock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh10:
	adrp	x21, _ShmemVariableCache@GOTPAGE
Lloh11:
	ldr	x21, [x21, _ShmemVariableCache@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x19, [x8]
Lloh12:
	adrp	x9, _FirstNormalObjectId@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FirstNormalObjectId@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x19, x9
	b.ge	LBB0_5
; %bb.3:
Lloh15:
	adrp	x10, _IsPostmasterEnvironment@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IsPostmasterEnvironment@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _FirstBootstrapObjectId@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FirstBootstrapObjectId@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x10, #0
	ccmp	x19, x11, #8, eq
	b.ge	LBB0_5
; %bb.4:
	stp	x9, xzr, [x8]
	mov	x19, x9
LBB0_5:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_7
; %bb.6:
Lloh21:
	adrp	x22, _VAR_OID_PREFETCH@GOTPAGE
Lloh22:
	ldr	x22, [x22, _VAR_OID_PREFETCH@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x19
	bl	_XLogPutNextOid
	ldr	x9, [x22]
	ldr	x8, [x21]
	str	x9, [x8, #8]
	ldr	x19, [x8]
LBB0_7:
	add	x10, x19, #1
	sub	x9, x9, #1
	stp	x10, x9, [x8]
	ldr	w0, [x20]
	bl	_LWLockRelease
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot assign OIDs during recovery"

	.comm	_OidGenLock,4,2                 ; @OidGenLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
	.comm	_FirstNormalObjectId,8,3        ; @FirstNormalObjectId
	.comm	_IsPostmasterEnvironment,8,3    ; @IsPostmasterEnvironment
	.comm	_FirstBootstrapObjectId,8,3     ; @FirstBootstrapObjectId
	.comm	_VAR_OID_PREFETCH,8,3           ; @VAR_OID_PREFETCH
.subsections_via_symbols
