	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function entrySplitPage
_entrySplitPage:                        ## @entrySplitPage
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	(%rdx), %r12
	movl	%esi, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetTempPageCopy
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetTempPageCopy
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PageGetPageSize
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_entryPreparePage
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	cmpq	%rax, %r13
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
                                        ## implicit-def: $r12
LBB0_6:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	1(%rax), %r13
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	movl	%eax, %ebx
	movq	(%r15), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_memcpy
	addl	%ebx, %r14d
	addl	$4, %r14d
LBB0_8:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_GinPageGetOpaque
	movl	(%rax), %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_GinInitPage
	movl	%ebx, %edi
	callq	_GinPageGetOpaque
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	%r12d, %edx
	callq	_GinInitPage
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	%r13, %r15
	jle	LBB0_9
LBB0_16:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	incq	%rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
                                        ## implicit-def: $r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movslq	%r15d, %rax
	addq	%rax, %r12
	addl	%eax, %r14d
	addl	$4, %r14d
	incq	%r13
	cmpq	%r13, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	movl	%eax, %ebx
	movq	(%r15), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	addq	%rax, %r12
	addl	%eax, %r14d
	addl	$4, %r14d
	jmp	LBB0_5
LBB0_9:
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	decq	%r15
	xorl	%r14d, %r14d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
                                        ## implicit-def: $rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	cltq
	addq	%rax, %rbx
	incq	%r15
	cmpq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	jg	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r14d
	addl	$4, %r14d
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_IndexTupleSize
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	cmpq	(%r13), %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_RelationGetRelationName
	movl	%r13d, %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_elog
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add item to index page in \"%s\""

	.no_dead_strip	_entrySplitPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function entrySplitPage
_entrySplitPage:                        ; @entrySplitPage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x5, x6, [sp, #24]               ; 16-byte Folded Spill
	mov	x19, x4
	mov	x26, x3
	mov	x23, x1
	mov	x20, x0
	ldr	x27, [x2]
	mov	x0, x1
	bl	_BufferGetPage
	bl	_PageGetTempPageCopy
	mov	x22, x0
	mov	x0, x23
	bl	_BufferGetPage
	bl	_PageGetTempPageCopy
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_PageGetPageSize
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x22
	mov	x2, x27
	mov	x3, x26
	mov	x4, x19
	bl	_entryPreparePage
	mov	x0, x22
	bl	_PageGetMaxOffsetNumber
	mov	x24, x0
Lloh0:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cmp	x19, x0
	b.le	LBB0_6
; %bb.1:
	mov	w21, #0
                                        ; implicit-def: $x28
LBB0_2:
	add	x20, x24, #1
	cmp	x27, x20
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x26]
	bl	_IndexTupleSize
	bl	_MAXALIGN
	mov	x19, x0
	ldr	x1, [x26]
	mov	x0, x28
	mov	x2, x19
	bl	_memcpy
	add	w8, w21, w19
	add	w21, w8, #4
LBB0_4:
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_GinPageGetOpaque
	ldr	w1, [x0]
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
	mov	x0, x19
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	mov	x2, x25
	bl	_GinInitPage
	mov	x0, x19
	bl	_GinPageGetOpaque
	ldr	w1, [x0]
	mov	x0, x22
	mov	x2, x25
	bl	_GinInitPage
Lloh3:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
	b.le	LBB0_10
LBB0_5:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w22, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	str	w9, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	mov	w21, #0
	add	x23, x24, #1
                                        ; implicit-def: $x28
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x22
	bl	_PageGetItem
	mov	x20, x0
	bl	_IndexTupleSize
	bl	_MAXALIGN
	mov	x25, x0
	mov	x0, x28
	mov	x1, x20
	mov	x2, x25
	bl	_memcpy
	add	x28, x28, w25, sxtw
	add	w8, w21, w25
	add	w21, w8, #4
	add	x19, x19, #1
	cmp	x23, x19
	b.eq	LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x27, x19
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x26]
	bl	_IndexTupleSize
	bl	_MAXALIGN
	mov	x20, x0
	ldr	x1, [x26]
	mov	x0, x28
	mov	x2, x20
	bl	_memcpy
	add	x28, x28, w20, sxtw
	add	w8, w21, w20
	add	w21, w8, #4
	b	LBB0_7
LBB0_10:
	mov	w27, #0
	cmp	w21, #0
	cinc	w9, w21, lt
	asr	w21, w9, #1
Lloh6:
	adrp	x28, _InvalidOffsetNumber@GOTPAGE
Lloh7:
	ldr	x28, [x28, _InvalidOffsetNumber@GOTPAGEOFF]
	sub	x25, x8, #1
	mov	x26, x22
                                        ; implicit-def: $x19
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_IndexTupleSize
	bl	_MAXALIGN
	add	x19, x19, w0, sxtw
	add	x25, x25, #1
	cmp	x25, x24
	b.gt	LBB0_5
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	w27, w21
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w26, [sp, #44]                  ; 4-byte Folded Reload
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_IndexTupleSize
	bl	_MAXALIGN
	add	w8, w27, w0
	add	w27, w8, #4
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_IndexTupleSize
	mov	x2, x0
	ldr	x3, [x28]
	mov	x0, x26
	mov	x1, x19
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	ldr	w0, [x23]
	bl	_RelationGetRelationName
	mov	x2, x0
	mov	x0, x20
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add item to index page in \"%s\""

	.no_dead_strip	_entrySplitPage
.subsections_via_symbols
