	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GinDataPageAddPostingItem      ## -- Begin function GinDataPageAddPostingItem
	.p2align	4, 0x90
_GinDataPageAddPostingItem:             ## @GinDataPageAddPostingItem
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r15d
	callq	_GinPageGetOpaque
	movq	(%rax), %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_PostingItemGetBlockNumber
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movl	%r15d, %edi
	callq	_GinPageIsLeaf
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_2
## %bb.1:
	incq	%r13
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_GinDataPageGetPostingItem
	movq	%rax, %r14
	movq	%r13, %rbx
	jmp	LBB0_4
LBB0_2:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_GinDataPageGetPostingItem
	movq	%rax, %r14
	leaq	1(%r13), %rbx
	cmpq	%r12, %rbx
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	addq	$4, %rdi
	subq	%r12, %r13
	leaq	4(,%r13,4), %rdx
	movq	%r14, %rsi
	callq	_memmove
LBB0_4:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movl	%r15d, %edi
	callq	_GinPageGetOpaque
	movq	%rbx, (%rax)
	shlq	$2, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GinDataPageSetDataSize         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GinDataPageAddPostingItem      ; -- Begin function GinDataPageAddPostingItem
	.p2align	2
_GinDataPageAddPostingItem:             ; @GinDataPageAddPostingItem
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_GinPageGetOpaque
	ldr	x24, [x0]
	mov	x0, x20
	bl	_PostingItemGetBlockNumber
Lloh0:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_Assert
	mov	x0, x19
	bl	_GinPageIsLeaf
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
	add	x22, x24, #1
	mov	x0, x19
	mov	x1, x22
	bl	_GinDataPageGetPostingItem
	mov	x23, x0
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_GinDataPageGetPostingItem
	mov	x23, x0
	add	x22, x24, #1
	cmp	x22, x21
	b.eq	LBB0_4
; %bb.3:
	add	x0, x23, #4
	sub	x8, x24, x21
	lsl	x8, x8, #2
	add	x2, x8, #4
	mov	x1, x23
	bl	_memmove
LBB0_4:
	mov	x0, x23
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	bl	_GinPageGetOpaque
	str	x22, [x0]
	lsl	x1, x22, #2
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_GinDataPageSetDataSize
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
.subsections_via_symbols
