	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginEntryInsert                 ## -- Begin function ginEntryInsert
	.p2align	4, 0x90
_ginEntryInsert:                        ## @ginEntryInsert
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	$0, -80(%rbp)
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %r8
	callq	_ginPrepareEntryScan
	xorl	%eax, %eax
	cmpq	$0, 16(%rbp)
	setne	%al
	movl	%eax, -88(%rbp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ginFindLeafPage
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*-96(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	4(%rbx), %esi
	movl	%r14d, %edi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_GinIsPostingTree
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_GinGetPostingTree
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_GIN_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movq	%rbx, %rdi
	callq	_freeGinBtreeStack
	movl	(%r15), %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movq	16(%rbp), %r8
	callq	_ginInsertItemPointers
	jmp	LBB0_7
LBB0_4:
	movl	(%r15), %edi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_CheckForSerializableConflictIn
	movl	(%rbx), %eax
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	movq	16(%rbp), %r15
	pushq	%r15
	callq	_buildFreshLeafTuple
	addq	$16, %rsp
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	incl	(%r15)
	jmp	LBB0_6
LBB0_3:
	movl	(%r15), %edi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_CheckForSerializableConflictIn
	movl	(%rbx), %r9d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movq	16(%rbp), %r15
	movq	%r15, %r8
	callq	_addItemPointersToLeafTuple
	movq	%rax, %r14
	movl	$1, -80(%rbp)
LBB0_6:
	movq	%r14, -72(%rbp)
	leaq	-96(%rbp), %rdi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_ginInsertValue
	movq	%r14, %rdi
	callq	_pfree
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIN_UNLOCK,4,2                 ## @GIN_UNLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginEntryInsert                 ; -- Begin function ginEntryInsert
	.p2align	2
_ginEntryInsert:                        ; @ginEntryInsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x23, x0
	str	wzr, [sp]
	add	x0, sp, #16
	mov	x4, x23
	bl	_ginPrepareEntryScan
	cmp	x19, #0
	cset	w8, ne
	str	w8, [sp, #24]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_ginFindLeafPage
	mov	x21, x0
	ldr	w0, [x0]
	bl	_BufferGetPage
	mov	x27, x0
	ldr	x8, [sp, #16]
	add	x0, sp, #16
	mov	x1, x21
	blr	x8
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x21, #4]
	mov	x0, x27
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x27
	bl	_PageGetItem
	mov	x24, x0
	bl	_GinIsPostingTree
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x24
	bl	_GinGetPostingTree
	mov	x24, x0
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _GIN_UNLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIN_UNLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x21
	bl	_freeGinBtreeStack
	ldr	w0, [x23]
	mov	x1, x24
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_ginInsertItemPointers
	b	LBB0_7
LBB0_3:
	ldr	w0, [x23]
	ldr	w2, [x21]
	mov	x1, #0
	bl	_CheckForSerializableConflictIn
	ldr	w7, [x21]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x20
	mov	x6, x19
	bl	_buildFreshLeafTuple
	mov	x20, x0
	cbz	x19, LBB0_6
; %bb.4:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x23]
	ldr	w2, [x21]
	mov	x1, #0
	bl	_CheckForSerializableConflictIn
	ldr	w5, [x21]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_addItemPointersToLeafTuple
	mov	x20, x0
	mov	w8, #1
	str	w8, [sp]
LBB0_6:
	str	x20, [sp, #8]
	add	x0, sp, #16
	mov	x2, sp
	mov	x1, x21
	mov	x3, x19
	bl	_ginInsertValue
	mov	x0, x20
	bl	_pfree
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GIN_UNLOCK,4,2                 ; @GIN_UNLOCK
.subsections_via_symbols
