	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginInsertCleanup               ## -- Begin function ginInsertCleanup
	.p2align	4, 0x90
_ginInsertCleanup:                      ## @ginInsertCleanup
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movl	%esi, -112(%rbp)                ## 4-byte Spill
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movl	(%rdi), %r14d
	movq	_GIN_METAPAGE_BLKNO@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	callq	_LockPage
	xorl	%eax, %eax
	callq	_IsAutoVacuumWorkerProcess
	movq	_autovacuum_work_mem@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$-1, %ecx
	movq	_maintenance_work_mem@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovel	%edx, %ecx
	testq	%rax, %rax
	cmovel	%edx, %ecx
	movslq	%ecx, %rax
	jmp	LBB0_4
LBB0_2:
	callq	_ConditionalLockPage
	testl	%eax, %eax
	je	LBB0_23
## %bb.3:
	movq	_work_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_ReadBuffer
	movl	%eax, %r13d
	movq	_GIN_SHARE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_LockBuffer
	movl	%r13d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_GinPageGetMeta
	movq	(%rax), %r15
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	jne	LBB0_5
## %bb.24:
	movl	%r13d, %edi
	callq	_UnlockReleaseBuffer
	movq	(%rbx), %rsi
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UnlockPage                     ## TAILCALL
LBB0_5:
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_ReadBuffer
	movl	%eax, %ebx
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_LockBuffer
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movq	_GIN_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_LockBuffer
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_AllocSetContextCreate
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	leaq	-56(%rbp), %rdi
	movl	$128, %esi
	callq	_initKeyArray
	leaq	-152(%rbp), %rdi
	callq	_ginInitBA
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -144(%rbp)
	shlq	$10, -104(%rbp)                 ## 8-byte Folded Spill
	leaq	-96(%rbp), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_GinPageGetOpaque
	movq	(%rax), %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_UnlockReleaseBuffer
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_GIN_SHARE@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	callq	_vacuum_delay_point
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	callq	_ReadBuffer
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_LockBuffer
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movq	%r13, %r15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r13d
	movl	%ebx, %edi
	callq	_GinPageIsDeleted
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	cmpq	-176(%rbp), %r15                ## 8-byte Folded Reload
	movl	$1, %eax
	cmovel	%eax, %r12d
	cmpl	$0, -112(%rbp)                  ## 4-byte Folded Reload
	cmovnel	%r13d, %r12d
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-152(%rbp), %r15
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edx
	callq	_processPendingPage
	xorl	%eax, %eax
	callq	_vacuum_delay_point
	movl	%ebx, %edi
	callq	_GinPageGetOpaque
	movq	(%rax), %rax
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_GinPageHasFullRow
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -152(%rbp)
	jl	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, -116(%rbp)               ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	_GIN_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_LockBuffer
	movq	%r15, %rdi
	callq	_ginBeginBAScan
	movq	%r15, %rdi
	leaq	-72(%rbp), %rsi
	movq	%r14, %rbx
	leaq	-92(%rbp), %r14
	movq	%r14, %rdx
	leaq	-88(%rbp), %r12
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_ginGetBAEntry
	testq	%rax, %rax
	movq	-128(%rbp), %r13                ## 8-byte Reload
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %rsi
	movl	-92(%rbp), %edx
	movl	-88(%rbp), %ecx
	movl	-96(%rbp), %r9d
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movq	%rax, %r8
	callq	_ginEntryInsert
	xorl	%eax, %eax
	callq	_vacuum_delay_point
	movq	%r15, %rdi
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_ginGetBAEntry
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_GIN_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_LockBuffer
	movq	_GIN_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_LockBuffer
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_GinPageIsDeleted
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_PageGetMaxOffsetNumber
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	cmpq	%rcx, %rax
	jne	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %r14
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_GinPageGetOpaque
	movq	(%rax), %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_UnlockReleaseBuffer
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movq	-168(%rbp), %r8                 ## 8-byte Reload
	callq	_shiftList
	xorl	%edi, %edi
	movq	-160(%rbp), %rax                ## 8-byte Reload
	cmpq	(%rax), %rbx
	sete	%dil
	callq	_Assert
	movq	_GIN_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movq	%rbx, %r13
	callq	_LockBuffer
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	movl	-116(%rbp), %r12d               ## 4-byte Reload
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextReset
	movl	-56(%rbp), %esi
	leaq	-56(%rbp), %rdi
	callq	_initKeyArray
	leaq	-152(%rbp), %rdi
	callq	_ginInitBA
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_ginInitBA
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_processPendingPage
	movq	%r15, %rdi
	callq	_ginBeginBAScan
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_ginGetBAEntry
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-72(%rbp), %rsi
	movl	-92(%rbp), %edx
	movl	-88(%rbp), %ecx
	movl	-96(%rbp), %r9d
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movq	%rax, %r8
	callq	_ginEntryInsert
	jmp	LBB0_14
LBB0_20:
	movq	_GIN_METAPAGE_BLKNO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_UnlockPage
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_ReleaseBuffer
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movl	%r15d, %edi
	callq	_IndexFreeSpaceMapVacuum
LBB0_22:
	movl	-108(%rbp), %edi                ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextDelete
LBB0_23:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIN_METAPAGE_BLKNO,8,3         ## @GIN_METAPAGE_BLKNO
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.comm	_autovacuum_work_mem,4,2        ## @autovacuum_work_mem
	.comm	_maintenance_work_mem,4,2       ## @maintenance_work_mem
	.comm	_work_mem,8,3                   ## @work_mem
	.comm	_GIN_SHARE,4,2                  ## @GIN_SHARE
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_GIN_UNLOCK,4,2                 ## @GIN_UNLOCK
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GIN insert cleanup temporary context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_GIN_EXCLUSIVE,4,2              ## @GIN_EXCLUSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginInsertCleanup               ; -- Begin function ginInsertCleanup
	.p2align	2
_ginInsertCleanup:                      ; @ginInsertCleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	str	x4, [sp, #32]                   ; 8-byte Folded Spill
	stp	w2, w1, [sp, #40]               ; 8-byte Folded Spill
	mov	x23, x0
	ldr	w19, [x0]
Lloh0:
	adrp	x20, _GIN_METAPAGE_BLKNO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GIN_METAPAGE_BLKNO@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh2:
	adrp	x25, _ExclusiveLock@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ExclusiveLock@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	cbz	w3, LBB0_2
; %bb.1:
	bl	_LockPage
	bl	_IsAutoVacuumWorkerProcess
Lloh4:
	adrp	x8, _autovacuum_work_mem@GOTPAGE
Lloh5:
	ldr	x8, [x8, _autovacuum_work_mem@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmn	w8, #1
	ccmp	x0, #0, #4, ne
Lloh7:
	adrp	x9, _maintenance_work_mem@GOTPAGE
Lloh8:
	ldr	x9, [x9, _maintenance_work_mem@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	csel	w8, w8, w9, ne
	sxtw	x22, w8
	b	LBB0_4
LBB0_2:
	bl	_ConditionalLockPage
	cbz	w0, LBB0_24
; %bb.3:
Lloh10:
	adrp	x8, _work_mem@GOTPAGE
Lloh11:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
LBB0_4:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_ReadBuffer
	mov	x24, x0
Lloh13:
	adrp	x27, _GIN_SHARE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _GIN_SHARE@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_LockBuffer
	mov	x0, x24
	bl	_BufferGetPage
	bl	_GinPageGetMeta
	ldr	x21, [x0]
Lloh15:
	adrp	x26, _InvalidBlockNumber@GOTPAGE
Lloh16:
	ldr	x26, [x26, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x21, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x24
	bl	_UnlockReleaseBuffer
	ldr	x1, [x20]
	ldr	w2, [x25]
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_UnlockPage
LBB0_6:
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x25, [x0, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_ReadBuffer
	mov	x28, x0
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	x22, x27
	ldr	w1, [x27]
	bl	_LockBuffer
	mov	x0, x28
	bl	_BufferGetPage
	mov	x27, x0
Lloh17:
	adrp	x8, _GIN_UNLOCK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GIN_UNLOCK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_LockBuffer
Lloh20:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	bl	_MemoryContextSwitchTo
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	add	x0, sp, #72
	mov	w1, #128
	bl	_initKeyArray
	add	x0, sp, #80
	bl	_ginInitBA
	mov	w20, #0
	str	x23, [sp, #88]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	lsl	x8, x8, #10
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x27
	bl	_GinPageGetOpaque
	ldr	x21, [x0]
	mov	x0, x28
	bl	_UnlockReleaseBuffer
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x22
	bl	_vacuum_delay_point
	mov	x0, x19
	mov	x1, x21
	bl	_ReadBuffer
	mov	x28, x0
	ldr	w1, [x22]
	bl	_LockBuffer
	mov	x0, x28
	bl	_BufferGetPage
	mov	x27, x0
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	mov	x0, x27
	bl	_GinPageIsDeleted
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	cmp	x21, x25
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #0, eq
	csinc	w20, w20, wzr, ne
Lloh28:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh30:
	ldr	x3, [x8]
	add	x0, sp, #80
	add	x1, sp, #72
	mov	x2, x27
	bl	_processPendingPage
	bl	_vacuum_delay_point
	mov	x0, x27
	bl	_GinPageGetOpaque
	ldr	x8, [x0]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x27
	bl	_GinPageHasFullRow
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #80]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x9
	b.lt	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x27
	bl	_PageGetMaxOffsetNumber
	mov	x21, x0
Lloh31:
	adrp	x8, _GIN_UNLOCK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GIN_UNLOCK@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x28
	bl	_LockBuffer
	add	x0, sp, #80
	bl	_ginBeginBAScan
	add	x0, sp, #80
	add	x1, sp, #48
	add	x2, sp, #64
	add	x3, sp, #60
	add	x4, sp, #68
	bl	_ginGetBAEntry
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x4, x0
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [sp, #48]
	ldp	w3, w2, [sp, #60]
	ldr	w5, [sp, #68]
	mov	x0, x23
	mov	x6, #0
	bl	_ginEntryInsert
	bl	_vacuum_delay_point
	add	x0, sp, #80
	add	x1, sp, #48
	add	x2, sp, #64
	add	x3, sp, #60
	add	x4, sp, #68
	bl	_ginGetBAEntry
	mov	x4, x0
	cbnz	x0, LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh34:
	adrp	x8, _GIN_EXCLUSIVE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GIN_EXCLUSIVE@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_LockBuffer
	ldr	w1, [x22]
	mov	x0, x28
	bl	_LockBuffer
	mov	x0, x27
	bl	_GinPageIsDeleted
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x27
	bl	_PageGetMaxOffsetNumber
	cmp	x0, x21
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #80
	bl	_ginInitBA
	add	x3, x21, #1
	add	x0, sp, #80
	add	x1, sp, #72
	mov	x2, x27
	bl	_processPendingPage
	add	x0, sp, #80
	bl	_ginBeginBAScan
	add	x0, sp, #80
	add	x1, sp, #48
	add	x2, sp, #64
	add	x3, sp, #60
	add	x4, sp, #68
	bl	_ginGetBAEntry
	cbz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x4, x0
LBB0_18:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [sp, #48]
	ldp	w3, w2, [sp, #60]
	ldr	w5, [sp, #68]
	mov	x0, x23
	mov	x6, #0
	bl	_ginEntryInsert
	add	x0, sp, #80
	add	x1, sp, #48
	add	x2, sp, #64
	add	x3, sp, #60
	add	x4, sp, #68
	bl	_ginGetBAEntry
	mov	x4, x0
	cbnz	x0, LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x27
	bl	_GinPageGetOpaque
	ldr	x21, [x0]
	mov	x0, x28
	bl	_UnlockReleaseBuffer
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	ldr	w3, [sp, #40]                   ; 4-byte Folded Reload
	ldr	x4, [sp, #32]                   ; 8-byte Folded Reload
	bl	_shiftList
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cmp	x21, x8
	cset	w0, eq
	bl	_Assert
Lloh37:
	adrp	x8, _GIN_UNLOCK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GIN_UNLOCK@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_LockBuffer
	ldr	x8, [x26]
	cmp	x21, x8
	ccmp	w20, #0, #0, ne
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_MemoryContextReset
	ldr	w1, [sp, #72]
	add	x0, sp, #72
	bl	_initKeyArray
	add	x0, sp, #80
	bl	_ginInitBA
	b	LBB0_8
LBB0_21:
Lloh40:
	adrp	x8, _GIN_METAPAGE_BLKNO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GIN_METAPAGE_BLKNO@GOTPAGEOFF]
Lloh42:
	ldr	x1, [x8]
Lloh43:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_UnlockPage
	mov	x0, x24
	bl	_ReleaseBuffer
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_IndexFreeSpaceMapVacuum
LBB0_23:
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_MemoryContextSwitchTo
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_MemoryContextDelete
LBB0_24:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GIN_METAPAGE_BLKNO,8,3         ; @GIN_METAPAGE_BLKNO
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.comm	_autovacuum_work_mem,4,2        ; @autovacuum_work_mem
	.comm	_maintenance_work_mem,4,2       ; @maintenance_work_mem
	.comm	_work_mem,8,3                   ; @work_mem
	.comm	_GIN_SHARE,4,2                  ; @GIN_SHARE
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_GIN_UNLOCK,4,2                 ; @GIN_UNLOCK
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GIN insert cleanup temporary context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_GIN_EXCLUSIVE,4,2              ; @GIN_EXCLUSIVE
.subsections_via_symbols
