	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dataSplitPageInternal
_dataSplitPageInternal:                 ## @dataSplitPageInternal
	.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, -112(%rbp)                 ## 8-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movslq	(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_GinPageGetOpaque
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_PageGetPageSize
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_GinDataPageGetRightBound
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	andq	$-4, %rax
	addq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	%r13d, %edi
	callq	_PageGetTempPage
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_PageGetTempPage
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_GinPageGetOpaque
	movl	4(%rax), %esi
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r12d, %edx
	callq	_GinInitPage
	movl	%r13d, %edi
	callq	_GinPageGetOpaque
	movl	4(%rax), %esi
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r12d, %edx
	callq	_GinInitPage
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_GinDataPageGetPostingItem
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	leaq	-1(%rbx), %r12
	leal	(,%r12,4), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_memcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	%rbx, %rsi
	movl	%eax, -4(%r14,%rbx,4)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx,4), %rbx
	movl	%r13d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	callq	_GinDataPageGetPostingItem
	movl	%r14d, %edx
	subl	%r12d, %edx
	shll	$2, %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_memcpy
	incl	%r14d
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_PostingItemSetBlockNumber
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	%r13d, %edi
	callq	_GinPageRightMost
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_GinNonLeafDataPageGetFreeSpace
	movl	%eax, %ebx
	sarl	$2, %ebx
	jmp	LBB0_4
LBB0_3:
	movl	%r14d, %ebx
	shrl	$31, %ebx
	addl	%r14d, %ebx
	sarl	%ebx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
LBB0_4:
	subl	%ebx, %r14d
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_GinDataPageGetPostingItem
	movslq	%ebx, %r12
	leal	(,%r12,4), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_memcpy
	movl	%r13d, %edi
	callq	_GinPageGetOpaque
	movl	%r12d, (%rax)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_GinDataPageGetPostingItem
	leaq	(%rbx,%r12,4), %rsi
	leal	(,%r14,4), %ebx
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%r15d, %edi
	callq	_GinPageGetOpaque
	movl	%r14d, (%rax)
	movl	%r13d, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_GinDataPageSetDataSize
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_GinDataPageSetDataSize
	movl	%r13d, %edi
	callq	_GinDataPageGetRightBound
	movq	%rax, %rbx
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_GinDataPageGetPostingItem
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	%r15d, %edi
	callq	_GinDataPageGetRightBound
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	16(%rbp), %rax
	movl	%r15d, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
	.no_dead_strip	_dataSplitPageInternal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dataSplitPageInternal
_dataSplitPageInternal:                 ; @dataSplitPageInternal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	stp	x5, x6, [x29, #-104]            ; 16-byte Folded Spill
	stur	w4, [x29, #-112]                ; 4-byte Folded Spill
	mov	x27, x3
	mov	x21, x2
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x1
	bl	_BufferGetPage
	mov	x26, x0
	ldrsw	x28, [x21]
	bl	_GinPageGetOpaque
	ldr	w20, [x0]
	mov	x0, x26
	bl	_PageGetPageSize
	mov	x19, x0
	mov	x0, x26
	bl	_GinDataPageGetRightBound
	ldr	w8, [x0]
	stur	w8, [x29, #-108]                ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	and	x8, x8, #0xfffffffffffffffc
	add	x9, x8, #4
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #19
	and	x8, x8, #0xfffffffffffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x26
	bl	_PageGetTempPage
	mov	x21, x0
	mov	x0, x26
	bl	_PageGetTempPage
	mov	x22, x0
	mov	x0, x26
	bl	_GinPageGetOpaque
	ldr	w1, [x0, #4]
	mov	x0, x21
	mov	x2, x19
	bl	_GinInitPage
	mov	x0, x26
	bl	_GinPageGetOpaque
	ldr	w1, [x0, #4]
	mov	x0, x22
	mov	x2, x19
	bl	_GinInitPage
Lloh8:
	adrp	x25, _FirstOffsetNumber@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FirstOffsetNumber@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x26
	bl	_GinDataPageGetPostingItem
	mov	x1, x0
	sub	w24, w28, #1
	lsl	w2, w24, #2
	mov	x0, x23
	bl	_memcpy
	ldr	w8, [x27]
	str	w8, [x23, w24, sxtw #2]
	add	x19, x23, x28, lsl #2
	mov	x0, x26
	mov	x1, x28
	bl	_GinDataPageGetPostingItem
	mov	x1, x0
	sub	w8, w20, w24
	lsl	w2, w8, #2
	mov	x0, x19
	bl	_memcpy
	add	w20, w20, #1
	mov	x0, x19
	ldur	w1, [x29, #-112]                ; 4-byte Folded Reload
	bl	_PostingItemSetBlockNumber
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x26
	bl	_GinPageRightMost
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_GinNonLeafDataPageGetFreeSpace
	asr	w24, w0, #2
	b	LBB0_4
LBB0_3:
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w24, w8, #1
LBB0_4:
	sub	w20, w20, w24
	ldr	w1, [x25]
	mov	x0, x21
	bl	_GinDataPageGetPostingItem
	lsl	w19, w24, #2
	mov	x1, x23
	mov	x2, x19
	bl	_memcpy
	mov	x0, x21
	bl	_GinPageGetOpaque
	str	w24, [x0]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_GinDataPageGetPostingItem
	lsl	w25, w20, #2
	add	x1, x23, w24, sxtw #2
	mov	x2, x25
	bl	_memcpy
	mov	x0, x22
	bl	_GinPageGetOpaque
	str	w20, [x0]
	mov	x0, x21
	mov	x1, x19
	bl	_GinDataPageSetDataSize
	mov	x0, x22
	mov	x1, x25
	bl	_GinDataPageSetDataSize
	mov	x0, x21
	bl	_GinDataPageGetRightBound
	mov	x19, x0
	mov	x0, x21
	mov	x1, x24
	bl	_GinDataPageGetPostingItem
	ldr	w8, [x0]
	str	w8, [x19]
	mov	x0, x22
	bl	_GinDataPageGetRightBound
	ldur	w8, [x29, #-108]                ; 4-byte Folded Reload
	str	w8, [x0]
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	str	w21, [x8]
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	str	w22, [x8]
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
	.no_dead_strip	_dataSplitPageInternal
.subsections_via_symbols
