	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResolveRecoveryConflictWithLock ## -- Begin function ResolveRecoveryConflictWithLock
	.p2align	4, 0x90
_ResolveRecoveryConflictWithLock:       ## @ResolveRecoveryConflictWithLock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	%edi, -56(%rbp)
	movq	_InHotStandby@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Assert
	xorl	%eax, %eax
	callq	_GetStandbyLimitTime
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	cmpq	%r14, %rax
	jge	LBB0_1
## %bb.2:
	movq	_STANDBY_LOCK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_TMPARAM_AT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%r14, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_enable_timeouts
	jmp	LBB0_3
LBB0_1:
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	xorl	%edx, %edx
	callq	_GetLockConflicts
	movq	_PROCSIG_RECOVERY_CONFLICT_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ResolveRecoveryConflictWithVirtualXIDs
	movl	-56(%rbp), %ebx
LBB0_3:
	movq	_PG_WAIT_LOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ProcWaitForSignal
	xorl	%edi, %edi
	callq	_disable_all_timeouts
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_InHotStandby,4,2               ## @InHotStandby
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_PROCSIG_RECOVERY_CONFLICT_LOCK,4,2 ## @PROCSIG_RECOVERY_CONFLICT_LOCK
	.comm	_STANDBY_LOCK_TIMEOUT,4,2       ## @STANDBY_LOCK_TIMEOUT
	.comm	_TMPARAM_AT,4,2                 ## @TMPARAM_AT
	.comm	_PG_WAIT_LOCK,4,2               ## @PG_WAIT_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResolveRecoveryConflictWithLock ; -- Begin function ResolveRecoveryConflictWithLock
	.p2align	2
_ResolveRecoveryConflictWithLock:       ; @ResolveRecoveryConflictWithLock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	w19, [sp]
Lloh3:
	adrp	x8, _InHotStandby@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InHotStandby@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_Assert
	bl	_GetStandbyLimitTime
	mov	x20, x0
	bl	_GetCurrentTimestamp
	cmp	x0, x20
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _STANDBY_LOCK_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STANDBY_LOCK_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _TMPARAM_AT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TMPARAM_AT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	str	x20, [sp, #8]
	add	x0, sp, #8
	mov	w1, #1
	bl	_enable_timeouts
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, sp
	mov	x2, #0
	bl	_GetLockConflicts
Lloh15:
	adrp	x8, _PROCSIG_RECOVERY_CONFLICT_LOCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PROCSIG_RECOVERY_CONFLICT_LOCK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_ResolveRecoveryConflictWithVirtualXIDs
	ldr	w19, [sp]
LBB0_3:
Lloh18:
	adrp	x8, _PG_WAIT_LOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PG_WAIT_LOCK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w0, w19, w8
	bl	_ProcWaitForSignal
	mov	w0, #0
	bl	_disable_all_timeouts
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_InHotStandby,4,2               ; @InHotStandby
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_PROCSIG_RECOVERY_CONFLICT_LOCK,4,2 ; @PROCSIG_RECOVERY_CONFLICT_LOCK
	.comm	_STANDBY_LOCK_TIMEOUT,4,2       ; @STANDBY_LOCK_TIMEOUT
	.comm	_TMPARAM_AT,4,2                 ; @TMPARAM_AT
	.comm	_PG_WAIT_LOCK,4,2               ; @PG_WAIT_LOCK
.subsections_via_symbols
