	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginbuild                       ## -- Begin function ginbuild
	.p2align	4, 0x90
_ginbuild:                              ## @ginbuild
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r13d
	movl	%esi, %edi
	callq	_RelationGetNumberOfBlocks
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_2:
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_initGinState
	movq	$0, -128(%rbp)
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r15d, %edi
	callq	_GinNewBuffer
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_GinNewBuffer
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	%r14d, %edi
	callq	_GinInitMetabuffer
	movl	%r14d, %edi
	callq	_MarkBufferDirty
	movq	_GIN_LEAF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GinInitBuffer
	movl	%ebx, %edi
	callq	_MarkBufferDirty
	movl	%r14d, %edi
	callq	_UnlockReleaseBuffer
	movl	%ebx, %edi
	callq	_UnlockReleaseBuffer
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	incl	-112(%rbp)
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, -104(%rbp)
	movl	(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, -96(%rbp)
	leaq	-80(%rbp), %rbx
	movq	%r12, -80(%rbp)
	movq	%rbx, %rdi
	callq	_ginInitBA
	movq	_ginBuildCallback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-128(%rbp), %rax
	movl	%r13d, %edi
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	$1, %r8d
	pushq	$0
	pushq	%rax
	callq	_table_index_build_scan
	addq	$16, %rsp
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ginBeginBAScan
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	callq	_ginGetBAEntry
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	leaq	-44(%rbp), %r13
	leaq	-56(%rbp), %r14
	leaq	-52(%rbp), %r15
	leaq	-48(%rbp), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	-44(%rbp), %esi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	-48(%rbp), %r9d
	subq	$8, %rsp
	leaq	-88(%rbp), %rdi
	movq	%r12, %r8
	leaq	-120(%rbp), %rax
	pushq	%rax
	callq	_ginEntryInsert
	addq	$16, %rsp
	leaq	-80(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_ginGetBAEntry
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	callq	_MemoryContextSwitchTo
	movq	-96(%rbp), %rdi
	callq	_MemoryContextDelete
	movq	-104(%rbp), %rdi
	callq	_MemoryContextDelete
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, -120(%rbp)
	movl	%ebx, %edi
	leaq	-120(%rbp), %rsi
	movl	$1, %edx
	callq	_ginUpdateStats
	movl	%ebx, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_RelationGetNumberOfBlocks
	movl	%ebx, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movl	$1, %r8d
	callq	_log_newpage_range
LBB0_7:
	movl	$16, %edi
	callq	_palloc
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rax)
	movq	-128(%rbp), %rcx
	movq	%rcx, 8(%rax)
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index \"%s\" already contains data"

	.comm	_GIN_LEAF,4,2                   ## @GIN_LEAF
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
L_.str.1:                               ## @.str.1
	.asciz	"Gin build temporary context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
L_.str.2:                               ## @.str.2
	.asciz	"Gin build temporary context for user-defined function"

	.comm	_ginBuildCallback,4,2           ## @ginBuildCallback
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginbuild                       ; -- Begin function ginbuild
	.p2align	2
_ginbuild:                              ; @ginbuild
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	mov	x0, x1
	bl	_RelationGetNumberOfBlocks
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_elog
LBB0_2:
	add	x26, sp, #24
	add	x21, x26, #40
	mov	x0, x21
	mov	x1, x19
	bl	_initGinState
	str	xzr, [sp, #24]
	add	x20, x26, #8
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	bl	_GinNewBuffer
	mov	x24, x0
	mov	x0, x19
	bl	_GinNewBuffer
	mov	x25, x0
	bl	_START_CRIT_SECTION
	mov	x0, x24
	bl	_GinInitMetabuffer
	mov	x0, x24
	bl	_MarkBufferDirty
Lloh5:
	adrp	x8, _GIN_LEAF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GIN_LEAF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_GinInitBuffer
	mov	x0, x25
	bl	_MarkBufferDirty
	mov	x0, x24
	bl	_UnlockReleaseBuffer
	mov	x0, x25
	bl	_UnlockReleaseBuffer
	bl	_END_CRIT_SECTION
	ldr	w8, [sp, #40]
	add	w8, w8, #1
	str	w8, [sp, #40]
Lloh8:
	adrp	x24, _CurrentMemoryContext@GOTPAGE
Lloh9:
	ldr	x24, [x24, _CurrentMemoryContext@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh10:
	adrp	x25, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_AllocSetContextCreate
	str	x0, [sp, #48]
	ldr	w0, [x24]
	ldr	w2, [x25]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_AllocSetContextCreate
	add	x24, x26, #48
	str	x0, [sp, #56]
	str	x21, [sp, #72]
	mov	x0, x24
	bl	_ginInitBA
Lloh16:
	adrp	x8, _ginBuildCallback@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ginBuildCallback@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
	add	x6, sp, #24
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	mov	w4, #1
	mov	x7, #0
	bl	_table_index_build_scan
	fmov	d8, d0
	ldr	x0, [sp, #48]
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	mov	x0, x24
	bl	_ginBeginBAScan
	add	x1, sp, #8
	add	x2, sp, #20
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x24
	bl	_ginGetBAEntry
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	ldp	w1, w5, [sp, #8]
	ldp	w3, w2, [sp, #16]
	mov	x0, x21
	mov	x4, x23
	mov	x6, x20
	bl	_ginEntryInsert
	add	x1, sp, #8
	add	x2, sp, #20
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x24
	bl	_ginGetBAEntry
	mov	x23, x0
	cbnz	x0, LBB0_4
LBB0_5:
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	ldr	x0, [sp, #56]
	bl	_MemoryContextDelete
	ldr	x0, [sp, #48]
	bl	_MemoryContextDelete
	mov	x0, x19
	bl	_RelationGetNumberOfBlocks
	str	x0, [sp, #32]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_ginUpdateStats
	mov	x0, x19
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _MAIN_FORKNUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_RelationGetNumberOfBlocks
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w4, #1
	bl	_log_newpage_range
LBB0_7:
	mov	w0, #16
	bl	_palloc
	str	d8, [x0]
	ldr	x8, [sp, #24]
	str	x8, [x0, #8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index \"%s\" already contains data"

	.comm	_GIN_LEAF,4,2                   ; @GIN_LEAF
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
l_.str.1:                               ; @.str.1
	.asciz	"Gin build temporary context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
l_.str.2:                               ; @.str.2
	.asciz	"Gin build temporary context for user-defined function"

	.comm	_ginBuildCallback,4,2           ; @ginBuildCallback
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
.subsections_via_symbols
