	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ginRedoInsert
_ginRedoInsert:                         ## @ginRedoInsert
	.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	%rdi, %rbx
	movl	(%rdi), %r15d
	callq	_XLogRecGetData
	movq	%rax, %r13
	movq	_GIN_INSERT_ISLEAF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, (%r13)
	setne	%r14b
	je	LBB0_2
## %bb.1:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_XLogRecGetData
	leal	8(%rax), %edi
	callq	_BlockIdGetBlockNumber
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ginRedoClearIncompleteSplit
LBB0_3:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movb	%r14b, %r12b
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r14d
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XLogRecGetBlockData
	movq	%rax, %rbx
	movq	_GIN_INSERT_ISDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	(%r13), %r15d
	movl	%r14d, %edi
	callq	_GinPageIsData
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movl	%eax, %edi
	callq	_Assert
	movl	-44(%rbp), %edi
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_ginRedoInsertData
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	-44(%rbp), %edi
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_ginRedoInsertEntry
LBB0_7:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_8:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
	.comm	_GIN_INSERT_ISLEAF,4,2          ## @GIN_INSERT_ISLEAF
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.comm	_GIN_INSERT_ISDATA,4,2          ## @GIN_INSERT_ISDATA
	.no_dead_strip	_ginRedoInsert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ginRedoInsert
_ginRedoInsert:                         ; @ginRedoInsert
	.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	x22, x0
	ldr	w19, [x0]
	bl	_XLogRecGetData
	mov	x23, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _GIN_INSERT_ISLEAF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GIN_INSERT_ISLEAF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w8, w9, w8
	cset	w20, ne
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_XLogRecGetData
	add	w0, w0, #8
	bl	_BlockIdGetBlockNumber
	mov	x21, x0
	mov	x0, x22
	mov	w1, #1
	bl	_ginRedoClearIncompleteSplit
LBB0_3:
	add	x2, sp, #12
	mov	x0, x22
	mov	w1, #0
	bl	_XLogReadBufferForRedo
Lloh6:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x24, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #0
	bl	_XLogRecGetBlockData
	mov	x22, x0
	ldr	w8, [x23]
Lloh9:
	adrp	x9, _GIN_INSERT_ISDATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GIN_INSERT_ISDATA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w23, w9, w8
	mov	x0, x24
	bl	_GinPageIsData
	cbz	w23, LBB0_6
; %bb.5:
	bl	_Assert
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ginRedoInsertData
	b	LBB0_7
LBB0_6:
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ginRedoInsertEntry
LBB0_7:
	mov	x0, x24
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_8:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.comm	_GIN_INSERT_ISLEAF,4,2          ; @GIN_INSERT_ISLEAF
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.comm	_GIN_INSERT_ISDATA,4,2          ; @GIN_INSERT_ISDATA
	.no_dead_strip	_ginRedoInsert
.subsections_via_symbols
