	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResolveRecoveryConflictWithBufferPin ## -- Begin function ResolveRecoveryConflictWithBufferPin
	.p2align	4, 0x90
_ResolveRecoveryConflictWithBufferPin:  ## @ResolveRecoveryConflictWithBufferPin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_InHotStandby@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Assert
	xorl	%eax, %eax
	callq	_GetStandbyLimitTime
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	cmpq	%rbx, %rax
	jge	LBB0_3
## %bb.4:
	movq	_STANDBY_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_TMPARAM_AT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	%rbx, -48(%rbp)
	movq	_STANDBY_DEADLOCK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_TMPARAM_AFTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_DeadlockTimeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-64(%rbp), %rdi
	movl	$2, %esi
	callq	_enable_timeouts
	jmp	LBB0_5
LBB0_1:
	movq	_STANDBY_DEADLOCK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DeadlockTimeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_enable_timeout_after
	jmp	LBB0_5
LBB0_3:
	movq	_PROCSIG_RECOVERY_CONFLICT_BUFFERPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SendRecoveryConflictWithBufferPin
LBB0_5:
	movq	_PG_WAIT_BUFFER_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ProcWaitForSignal
	xorl	%edi, %edi
	callq	_disable_all_timeouts
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_InHotStandby,4,2               ## @InHotStandby
	.comm	_STANDBY_DEADLOCK_TIMEOUT,4,2   ## @STANDBY_DEADLOCK_TIMEOUT
	.comm	_DeadlockTimeout,4,2            ## @DeadlockTimeout
	.comm	_PROCSIG_RECOVERY_CONFLICT_BUFFERPIN,4,2 ## @PROCSIG_RECOVERY_CONFLICT_BUFFERPIN
	.comm	_STANDBY_TIMEOUT,4,2            ## @STANDBY_TIMEOUT
	.comm	_TMPARAM_AT,4,2                 ## @TMPARAM_AT
	.comm	_TMPARAM_AFTER,4,2              ## @TMPARAM_AFTER
	.comm	_PG_WAIT_BUFFER_PIN,4,2         ## @PG_WAIT_BUFFER_PIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResolveRecoveryConflictWithBufferPin ; -- Begin function ResolveRecoveryConflictWithBufferPin
	.p2align	2
_ResolveRecoveryConflictWithBufferPin:  ; @ResolveRecoveryConflictWithBufferPin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _InHotStandby@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InHotStandby@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_Assert
	bl	_GetStandbyLimitTime
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_GetCurrentTimestamp
	cmp	x0, x19
	b.ge	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _STANDBY_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STANDBY_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, #12]
	str	x19, [sp, #24]
Lloh12:
	adrp	x8, _STANDBY_DEADLOCK_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STANDBY_DEADLOCK_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh15:
	adrp	x8, _TMPARAM_AFTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TMPARAM_AFTER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _DeadlockTimeout@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DeadlockTimeout@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
	add	x0, sp, #8
	mov	w1, #2
	bl	_enable_timeouts
	b	LBB0_5
LBB0_3:
Lloh21:
	adrp	x8, _STANDBY_DEADLOCK_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STANDBY_DEADLOCK_TIMEOUT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _DeadlockTimeout@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DeadlockTimeout@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_enable_timeout_after
	b	LBB0_5
LBB0_4:
Lloh27:
	adrp	x8, _PROCSIG_RECOVERY_CONFLICT_BUFFERPIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PROCSIG_RECOVERY_CONFLICT_BUFFERPIN@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_SendRecoveryConflictWithBufferPin
LBB0_5:
Lloh30:
	adrp	x8, _PG_WAIT_BUFFER_PIN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PG_WAIT_BUFFER_PIN@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_ProcWaitForSignal
	mov	w0, #0
	bl	_disable_all_timeouts
	ldur	x8, [x29, #-24]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_InHotStandby,4,2               ; @InHotStandby
	.comm	_STANDBY_DEADLOCK_TIMEOUT,4,2   ; @STANDBY_DEADLOCK_TIMEOUT
	.comm	_DeadlockTimeout,4,2            ; @DeadlockTimeout
	.comm	_PROCSIG_RECOVERY_CONFLICT_BUFFERPIN,4,2 ; @PROCSIG_RECOVERY_CONFLICT_BUFFERPIN
	.comm	_STANDBY_TIMEOUT,4,2            ; @STANDBY_TIMEOUT
	.comm	_TMPARAM_AT,4,2                 ; @TMPARAM_AT
	.comm	_TMPARAM_AFTER,4,2              ; @TMPARAM_AFTER
	.comm	_PG_WAIT_BUFFER_PIN,4,2         ; @PG_WAIT_BUFFER_PIN
.subsections_via_symbols
