	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogNeedsFlush                 ## -- Begin function XLogNeedsFlush
	.p2align	4, 0x90
_XLogNeedsFlush:                        ## @XLogNeedsFlush
	.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
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	_minRecoveryPoint@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_InRecovery@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_updateMinRecoveryPoint@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	movq	_LogwrtResult@GOTPCREL(%rip), %r14
	cmpq	%rbx, (%r14)
	jge	LBB0_13
## %bb.14:
	movq	_XLogCtl@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movq	8(%rdi), %rax
	movq	%rax, (%r14)
	callq	_SpinLockRelease
	cmpq	%rbx, (%r14)
	setl	%al
	jmp	LBB0_15
LBB0_4:
	xorl	%eax, %eax
	cmpq	%rbx, (%r14)
	jge	LBB0_15
## %bb.5:
	movq	_updateMinRecoveryPoint@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_15
## %bb.6:
	movq	_ControlFileLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockConditionalAcquire
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_ControlFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movl	8(%rax), %eax
	movq	_minRecoveryPointTLI@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %edi
	callq	_LWLockRelease
	movq	(%r14), %rdi
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	$0, (%r15)
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_7:
	movb	$1, %al
	jmp	LBB0_15
LBB0_9:
	cmpl	$0, (%r15)
	setne	%cl
LBB0_11:
	cmpq	%rbx, (%r14)
	setl	%al
	andb	%cl, %al
LBB0_15:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_minRecoveryPoint,8,3           ## @minRecoveryPoint
	.comm	_InRecovery,8,3                 ## @InRecovery
	.comm	_updateMinRecoveryPoint,4,2     ## @updateMinRecoveryPoint
	.comm	_ControlFileLock,4,2            ## @ControlFileLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_ControlFile,8,3                ## @ControlFile
	.comm	_minRecoveryPointTLI,4,2        ## @minRecoveryPointTLI
	.comm	_LogwrtResult,8,3               ## @LogwrtResult
	.comm	_XLogCtl,8,3                    ## @XLogCtl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogNeedsFlush                 ; -- Begin function XLogNeedsFlush
	.p2align	2
_XLogNeedsFlush:                        ; @XLogNeedsFlush
	.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
	mov	x19, x0
	bl	_RecoveryInProgress
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x20, _minRecoveryPoint@GOTPAGE
Lloh1:
	ldr	x20, [x20, _minRecoveryPoint@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_XLogRecPtrIsInvalid
Lloh2:
	adrp	x8, _InRecovery@GOTPAGE
Lloh3:
	ldr	x8, [x8, _InRecovery@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_9
; %bb.2:
Lloh5:
	adrp	x21, _updateMinRecoveryPoint@GOTPAGE
Lloh6:
	ldr	x21, [x21, _updateMinRecoveryPoint@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	x9, [x20]
	cmp	x9, x19
	ccmp	w8, #0, #4, lt
	b.eq	LBB0_8
; %bb.3:
Lloh7:
	adrp	x22, _ControlFileLock@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ControlFileLock@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_LWLockConditionalAcquire
	cbz	w0, LBB0_10
; %bb.4:
Lloh12:
	adrp	x8, _ControlFile@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ControlFile@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x8]
	str	x9, [x20]
	ldr	w8, [x8, #8]
Lloh15:
	adrp	x9, _minRecoveryPointTLI@GOTPAGE
Lloh16:
	ldr	x9, [x9, _minRecoveryPointTLI@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	ldr	w0, [x22]
	bl	_LWLockRelease
	ldr	x0, [x20]
	bl	_XLogRecPtrIsInvalid
	cbz	x0, LBB0_11
; %bb.5:
	mov	w8, #0
	str	wzr, [x21]
	b	LBB0_12
LBB0_6:
Lloh18:
	adrp	x20, _LogwrtResult@GOTPAGE
Lloh19:
	ldr	x20, [x20, _LogwrtResult@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, x19
	b.ge	LBB0_8
; %bb.7:
Lloh20:
	adrp	x21, _XLogCtl@GOTPAGE
Lloh21:
	ldr	x21, [x21, _XLogCtl@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_SpinLockAcquire
	ldr	x0, [x21]
	ldr	x8, [x0, #8]
	str	x8, [x20]
	bl	_SpinLockRelease
	ldr	x8, [x20]
	cmp	x8, x19
	cset	w0, lt
	b	LBB0_13
LBB0_8:
	mov	w0, #0
	b	LBB0_13
LBB0_9:
	mov	w0, #0
Lloh22:
	adrp	x8, _updateMinRecoveryPoint@GOTPAGE
Lloh23:
	ldr	x8, [x8, _updateMinRecoveryPoint@GOTPAGEOFF]
Lloh24:
	str	wzr, [x8]
	b	LBB0_13
LBB0_10:
	mov	w0, #1
	b	LBB0_13
LBB0_11:
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w8, ne
LBB0_12:
	ldr	x9, [x20]
	cmp	x9, x19
	cset	w9, lt
	and	w0, w9, w8
LBB0_13:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_minRecoveryPoint,8,3           ; @minRecoveryPoint
	.comm	_InRecovery,8,3                 ; @InRecovery
	.comm	_updateMinRecoveryPoint,4,2     ; @updateMinRecoveryPoint
	.comm	_ControlFileLock,4,2            ; @ControlFileLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_ControlFile,8,3                ; @ControlFile
	.comm	_minRecoveryPointTLI,4,2        ; @minRecoveryPointTLI
	.comm	_LogwrtResult,8,3               ; @LogwrtResult
	.comm	_XLogCtl,8,3                    ; @XLogCtl
.subsections_via_symbols
