	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gininsert                      ## -- Begin function gininsert
	.p2align	4, 0x90
_gininsert:                             ## @gininsert
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, %r13d
	movq	16(%rbp), %rbx
	movq	(%rbx), %r15
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	movl	$8, %edi
	callq	_palloc
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_initGinState
	movq	%r15, (%rbx)
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
LBB0_2:
	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, %ebx
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_GinGetUseFastUpdate
	testq	%rax, %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.6:
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_9
## %bb.7:
	movl	%r14d, %ebx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %r14
	movl	(%r13,%rax,4), %ecx
	movl	(%r12,%rax,4), %r8d
	movq	%r15, %rdi
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edx
	movl	%ebx, %r9d
	callq	_ginHeapTupleFastCollect
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	movq	%r14, %rax
	cmpq	%rcx, %r14
	jl	LBB0_8
LBB0_9:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ginHeapTupleFastInsert
	jmp	LBB0_10
LBB0_3:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %rbx
	movl	(%r13,%rax,4), %edx
	movl	(%r12,%rax,4), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %r8d
	callq	_ginHeapTupleInsert
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	movq	%rbx, %rax
	cmpq	%rcx, %rbx
	jl	LBB0_5
LBB0_10:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextDelete
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Gin insert temporary context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gininsert                      ; -- Begin function gininsert
	.p2align	2
_gininsert:                             ; @gininsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x25, x0
	ldr	x22, [x6]
	cbnz	x22, LBB0_2
; %bb.1:
	mov	x23, x6
	ldr	w0, [x6, #8]
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	mov	w0, #8
	bl	_palloc
	mov	x22, x0
	mov	x1, x25
	bl	_initGinState
	str	x22, [x23]
	mov	x0, x24
	bl	_MemoryContextSwitchTo
LBB0_2:
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x23, x0
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	mov	x0, x25
	bl	_GinGetUseFastUpdate
	cbz	x0, LBB0_7
; %bb.3:
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x8, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x8, #1
	lsl	x8, x8, #2
	ldr	w3, [x21, x8]
	ldr	w4, [x20, x8]
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x25
	mov	x5, x19
	bl	_ginHeapTupleFastCollect
	ldr	x8, [x22]
	ldrsw	x9, [x8]
	mov	x8, x25
	cmp	x25, x9
	b.lt	LBB0_5
LBB0_6:
	add	x1, sp, #12
	mov	x0, x22
	bl	_ginHeapTupleFastInsert
	b	LBB0_10
LBB0_7:
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x8, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x8, #1
	lsl	x8, x8, #2
	ldr	w2, [x21, x8]
	ldr	w3, [x20, x8]
	mov	x0, x22
	mov	x1, x25
	mov	x4, x19
	bl	_ginHeapTupleInsert
	ldr	x8, [x22]
	ldrsw	x9, [x8]
	mov	x8, x25
	cmp	x25, x9
	b.lt	LBB0_9
LBB0_10:
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	mov	x0, x23
	bl	_MemoryContextDelete
	mov	w0, #0
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Gin insert temporary context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
.subsections_via_symbols
