	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogSetAsyncXactLSN            ## -- Begin function XLogSetAsyncXactLSN
	.p2align	4, 0x90
_XLogSetAsyncXactLSN:                   ## @XLogSetAsyncXactLSN
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_XLogCtl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rdi
	movq	24(%rdi), %rax
	movq	_LogwrtResult@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movl	(%rdi), %ebx
	cmpq	%r15, 8(%rdi)
	jge	LBB0_2
## %bb.1:
	movq	%r15, 8(%rdi)
LBB0_2:
	addq	$16, %rdi
	callq	_SpinLockRelease
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.3:
	movq	_XLOG_BLCKSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_6
LBB0_4:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_6:
	subq	%rdx, %r15
	cmpq	(%r14), %r15
	jle	LBB0_8
LBB0_7:
	movq	_ProcGlobal@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetLatch                       ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLogCtl,8,3                    ## @XLogCtl
	.comm	_LogwrtResult,8,3               ## @LogwrtResult
	.comm	_XLOG_BLCKSZ,8,3                ## @XLOG_BLCKSZ
	.comm	_ProcGlobal,8,3                 ## @ProcGlobal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogSetAsyncXactLSN            ; -- Begin function XLogSetAsyncXactLSN
	.p2align	2
_XLogSetAsyncXactLSN:                   ; @XLogSetAsyncXactLSN
	.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
Lloh0:
	adrp	x20, _XLogCtl@GOTPAGE
Lloh1:
	ldr	x20, [x20, _XLogCtl@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x0, x8, #16
	bl	_SpinLockAcquire
	ldr	x8, [x20]
	ldr	x9, [x8, #24]
Lloh2:
	adrp	x20, _LogwrtResult@GOTPAGE
Lloh3:
	ldr	x20, [x20, _LogwrtResult@GOTPAGEOFF]
	str	x9, [x20]
	ldr	w21, [x8]
	ldr	x9, [x8, #8]
	cmp	x9, x19
	b.ge	LBB0_2
; %bb.1:
	str	x19, [x8, #8]
LBB0_2:
	add	x0, x8, #16
	bl	_SpinLockRelease
	cbnz	w21, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _XLOG_BLCKSZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XLOG_BLCKSZ@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	sdiv	x9, x19, x8
	mul	x8, x9, x8
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _ProcGlobal@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ProcGlobal@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
	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
	b	_SetLatch
LBB0_6:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XLogCtl,8,3                    ; @XLogCtl
	.comm	_LogwrtResult,8,3               ; @LogwrtResult
	.comm	_XLOG_BLCKSZ,8,3                ; @XLOG_BLCKSZ
	.comm	_ProcGlobal,8,3                 ; @ProcGlobal
.subsections_via_symbols
