	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btree_xlog_insert
_btree_xlog_insert:                     ## @btree_xlog_insert
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movl	%edi, %ebx
	movl	(%rdx), %r13d
	movq	%rdx, %rdi
	callq	_XLogRecGetData
	movq	%rax, %r12
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	__bt_clear_incomplete_split
LBB0_2:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_XLogRecGetBlockData
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	-52(%rbp), %edx
	movl	(%r12), %ecx
	movl	%eax, %edi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_5:
	movl	%r13d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_6:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	__bt_restore_meta
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btree_xlog_insert: failed to add item"

	.no_dead_strip	_btree_xlog_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btree_xlog_insert
_btree_xlog_insert:                     ; @btree_xlog_insert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w21, [x2]
	mov	x0, x2
	bl	_XLogRecGetData
	mov	x22, x0
	cbnz	w23, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	__bt_clear_incomplete_split
LBB0_2:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_XLogReadBufferForRedo
Lloh0:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_XLogRecGetBlockData
	mov	x24, x0
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w2, [sp, #8]
	ldr	w3, [x22]
	mov	x1, x24
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
Lloh3:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _PANIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_5:
	mov	x0, x23
	mov	x1, x21
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_6:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_8:
	cbz	w20, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #2
	bl	__bt_restore_meta
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btree_xlog_insert: failed to add item"

	.no_dead_strip	_btree_xlog_insert
.subsections_via_symbols
