	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StandbyAcquireAccessExclusiveLock ## -- Begin function StandbyAcquireAccessExclusiveLock
	.p2align	4, 0x90
_StandbyAcquireAccessExclusiveLock:     ## @StandbyAcquireAccessExclusiveLock
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdi, -40(%rbp)
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_TransactionIdDidAbort
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_DEBUG4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_trace_recovery
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_elog
	movq	%r12, %rdi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_RecoveryLockLists@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %r15
	cmpl	$0, -44(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r15)
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_5:
	movl	$24, %edi
	callq	_palloc
	movq	%rax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	%r12, (%rbx)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_lappend
	movl	%eax, (%r15)
	movl	-48(%rbp), %edi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	callq	_SET_LOCKTAG_RELATION
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_LockAcquire
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG4,4,2                     ## @DEBUG4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding recovery lock: db %u rel %u"

	.comm	_RecoveryLockLists,4,2          ## @RecoveryLockLists
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_NIL,4,2                        ## @NIL
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StandbyAcquireAccessExclusiveLock ; -- Begin function StandbyAcquireAccessExclusiveLock
	.p2align	2
_StandbyAcquireAccessExclusiveLock:     ; @StandbyAcquireAccessExclusiveLock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	x0, [sp, #8]
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_TransactionIdDidCommit
	cbnz	x0, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_TransactionIdDidAbort
	cbnz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _DEBUG4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG4@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_trace_recovery
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_elog
	mov	x0, x19
	bl	_OidIsValid
	bl	_Assert
Lloh5:
	adrp	x8, _RecoveryLockLists@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RecoveryLockLists@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x3, sp
	bl	_hash_search
	mov	x21, x0
	ldr	w8, [sp]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [x21, #8]
Lloh11:
	adrp	x8, _NIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_5:
	mov	w0, #24
	bl	_palloc
	mov	x22, x0
	ldr	x8, [sp, #8]
	stp	x20, x8, [x0, #8]
	str	x19, [x0]
	ldr	w0, [x21]
	mov	x1, x22
	bl	_lappend
	str	w0, [x21]
	ldr	w0, [sp, #4]
	ldp	x2, x1, [x22]
	bl	_SET_LOCKTAG_RELATION
Lloh14:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #4
	mov	w2, #1
	mov	w3, #0
	bl	_LockAcquire
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG4,4,2                     ; @DEBUG4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding recovery lock: db %u rel %u"

	.comm	_RecoveryLockLists,4,2          ; @RecoveryLockLists
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_NIL,4,2                        ; @NIL
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
.subsections_via_symbols
