	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateLastRemovedPtr
_UpdateLastRemovedPtr:                  ## @UpdateLastRemovedPtr
	.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	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_wal_segment_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-20(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	callq	_XLogFromFileName
	movq	_XLogCtl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_SpinLockAcquire
	movq	-16(%rbp), %rax
	movq	(%rbx), %rdi
	cmpq	(%rdi), %rax
	jle	LBB0_2
## %bb.1:
	movq	%rax, (%rdi)
LBB0_2:
	addq	$8, %rdi
	callq	_SpinLockRelease
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.comm	_XLogCtl,8,3                    ## @XLogCtl
	.no_dead_strip	_UpdateLastRemovedPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateLastRemovedPtr
_UpdateLastRemovedPtr:                  ; @UpdateLastRemovedPtr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _wal_segment_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wal_segment_size@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x1, sp, #12
	mov	x2, sp
	bl	_XLogFromFileName
Lloh3:
	adrp	x19, _XLogCtl@GOTPAGE
Lloh4:
	ldr	x19, [x19, _XLogCtl@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_SpinLockAcquire
	ldr	x9, [sp]
	ldr	x8, [x19]
	ldr	x10, [x8]
	cmp	x9, x10
	b.le	LBB0_2
; %bb.1:
	str	x9, [x8]
LBB0_2:
	add	x0, x8, #8
	bl	_SpinLockRelease
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.comm	_XLogCtl,8,3                    ; @XLogCtl
	.no_dead_strip	_UpdateLastRemovedPtr
.subsections_via_symbols
