	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ginRedoInsertEntry
_ginRedoInsertEntry:                    ## @ginRedoInsertEntry
	.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	%rcx, %rbx
	movl	%edx, %r13d
	movl	%edi, %r14d
	callq	_BufferGetPage
	movl	%eax, %r12d
	movq	(%rbx), %r15
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_4
## %bb.1:
	movl	%r12d, %edi
	callq	_GinPageIsLeaf
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r15
	jl	LBB0_3
## %bb.2:
	movl	%r12d, %edi
	callq	_PageGetMaxOffsetNumber
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setle	%dil
LBB0_3:
	callq	_Assert
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_PageGetItemId
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_GinSetDownlink
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.5:
	movl	%r12d, %edi
	callq	_GinPageIsLeaf
	movl	%eax, %edi
	callq	_Assert
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r15
	jl	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	callq	_PageGetMaxOffsetNumber
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setle	%dil
LBB0_7:
	callq	_Assert
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_PageIndexTupleDelete
LBB0_8:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_IndexTupleSize
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movl	%r14d, %edi
	callq	_BufferGetTag
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_elog
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	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add item to index page in %u/%u/%u"

	.no_dead_strip	_ginRedoInsertEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ginRedoInsertEntry
_ginRedoInsertEntry:                    ; @ginRedoInsertEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x23, x2
	mov	x19, x0
	bl	_BufferGetPage
	mov	x21, x0
	ldr	x20, [x22]
Lloh0:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _FirstOffsetNumber@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FirstOffsetNumber@GOTPAGEOFF]
	cmp	w8, w23
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_GinPageIsLeaf
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x24]
	cmp	x20, x8
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	cmp	x20, x0
	cset	w0, le
LBB0_4:
	bl	_Assert
	mov	x0, x21
	mov	x1, x20
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	mov	x1, x23
	bl	_GinSetDownlink
LBB0_5:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_GinPageIsLeaf
	bl	_Assert
	ldr	x8, [x24]
	cmp	x20, x8
	b.ge	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	cmp	x20, x0
	cset	w0, le
LBB0_9:
	bl	_Assert
	mov	x0, x21
	mov	x1, x20
	bl	_PageIndexTupleDelete
LBB0_10:
	add	x22, x22, #8
	mov	x0, x22
	bl	_IndexTupleSize
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
Lloh5:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
	add	x1, sp, #16
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_BufferGetTag
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	w3, w2, [sp, #20]
	ldr	w4, [sp, #16]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add item to index page in %u/%u/%u"

	.no_dead_strip	_ginRedoInsertEntry
.subsections_via_symbols
