	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReserveXLogInsertLocation
_ReserveXLogInsertLocation:             ## @ReserveXLogInsertLocation
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_XLogCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	callq	_MAXALIGN
	movl	%eax, %ebx
	movq	_SizeOfXLogRecord@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setg	%dil
	callq	_Assert
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movslq	%ebx, %rbx
	movq	(%r12), %r14
	movq	8(%r12), %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	addq	%r14, %rbx
	movq	%rbx, (%r12)
	movq	%r14, 8(%r12)
	movq	%r15, %rdi
	callq	_SpinLockRelease
	movq	%r14, %rdi
	callq	_XLogBytePosToRecPtr
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_XLogBytePosToEndRecPtr
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, (%r12)
	movq	%r13, %rdi
	callq	_XLogBytePosToRecPtr
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, (%r13)
	movl	(%r15), %edi
	callq	_XLogRecPtrToBytePos
	xorl	%edi, %edi
	cmpq	%r14, %rax
	sete	%dil
	callq	_Assert
	movl	(%r12), %edi
	callq	_XLogRecPtrToBytePos
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_Assert
	movl	(%r13), %edi
	callq	_XLogRecPtrToBytePos
	xorl	%edi, %edi
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	sete	%dil
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XLogCtl,8,3                    ## @XLogCtl
	.comm	_SizeOfXLogRecord,4,2           ## @SizeOfXLogRecord
	.no_dead_strip	_ReserveXLogInsertLocation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReserveXLogInsertLocation
_ReserveXLogInsertLocation:             ; @ReserveXLogInsertLocation
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _XLogCtl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XLogCtl@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	bl	_MAXALIGN
	mov	x22, x0
Lloh3:
	adrp	x8, _SizeOfXLogRecord@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SizeOfXLogRecord@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, gt
	bl	_Assert
	add	x23, x26, #16
	mov	x0, x23
	bl	_SpinLockAcquire
	ldp	x24, x25, [x26]
	add	x22, x24, w22, sxtw
	stp	x22, x24, [x26]
	mov	x0, x23
	bl	_SpinLockRelease
	mov	x0, x24
	bl	_XLogBytePosToRecPtr
	str	w0, [x21]
	mov	x0, x22
	bl	_XLogBytePosToEndRecPtr
	str	w0, [x20]
	mov	x0, x25
	bl	_XLogBytePosToRecPtr
	str	w0, [x19]
	ldr	w0, [x21]
	bl	_XLogRecPtrToBytePos
	cmp	x0, x24
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x20]
	bl	_XLogRecPtrToBytePos
	cmp	x0, x22
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19]
	bl	_XLogRecPtrToBytePos
	cmp	x0, x25
	cset	w0, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_Assert
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XLogCtl,8,3                    ; @XLogCtl
	.comm	_SizeOfXLogRecord,4,2           ; @SizeOfXLogRecord
	.no_dead_strip	_ReserveXLogInsertLocation
.subsections_via_symbols
