	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hashbuild                      ## -- Begin function hashbuild
	.p2align	4, 0x90
_hashbuild:                             ## @hashbuild
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_RelationGetNumberOfBlocks
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_2:
	leaq	-68(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-80(%rbp), %r8
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_estimate_rel_size
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__hash_init
	movq	%rax, %r12
	movq	_maintenance_work_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$10, %rax
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rcx
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_RELPERSISTENCE_TEMP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.7:
	movq	_NLocBuffer@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_NBuffers@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_Min
	cmpq	%rax, %r12
	jge	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	__h_spoolinit
LBB0_11:
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	%r15, -48(%rbp)
	movq	_hashbuildCallback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-64(%rbp), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	movl	$1, %r8d
	pushq	$0
	pushq	%rax
	callq	_table_index_build_scan
	addq	$16, %rsp
	movsd	%xmm0, -40(%rbp)
	movq	_PROGRESS_CREATEIDX_TUPLES_TOTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi
	callq	_pgstat_progress_update_param
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rsi
	callq	__h_indexbuild
	movq	-56(%rbp), %rdi
	callq	__h_spooldestroy
LBB0_13:
	movl	$16, %edi
	callq	_palloc
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rax)
	movq	-64(%rbp), %rcx
	movq	%rcx, 8(%rax)
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	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	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_maintenance_work_mem,8,3       ## @maintenance_work_mem
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
	.comm	_RELPERSISTENCE_TEMP,8,3        ## @RELPERSISTENCE_TEMP
	.comm	_NBuffers,4,2                   ## @NBuffers
	.comm	_NLocBuffer,4,2                 ## @NLocBuffer
	.comm	_hashbuildCallback,4,2          ## @hashbuildCallback
	.comm	_PROGRESS_CREATEIDX_TUPLES_TOTAL,4,2 ## @PROGRESS_CREATEIDX_TUPLES_TOTAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hashbuild                      ; -- Begin function hashbuild
	.p2align	2
_hashbuild:                             ; @hashbuild
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, 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	w22, [x8]
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_elog
LBB0_2:
	sub	x2, x29, #36
	add	x3, sp, #32
	add	x4, sp, #24
	mov	x0, x21
	mov	x1, #0
	bl	_estimate_rel_size
	ldr	d0, [sp, #32]
Lloh5:
	adrp	x8, _MAIN_FORKNUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	__hash_init
	mov	x22, x0
Lloh8:
	adrp	x8, _maintenance_work_mem@GOTPAGE
Lloh9:
	ldr	x8, [x8, _maintenance_work_mem@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	lsl	x8, x8, #10
Lloh11:
	adrp	x9, _BLCKSZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BLCKSZ@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x10, [x20]
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _RELPERSISTENCE_TEMP@GOTPAGE
Lloh15:
	ldr	x11, [x11, _RELPERSISTENCE_TEMP@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
Lloh17:
	adrp	x12, _NLocBuffer@GOTPAGE
Lloh18:
	ldr	x12, [x12, _NLocBuffer@GOTPAGEOFF]
Lloh19:
	adrp	x13, _NBuffers@GOTPAGE
Lloh20:
	ldr	x13, [x13, _NBuffers@GOTPAGEOFF]
	cmp	x10, x11
	csel	x10, x12, x13, eq
	ldr	w1, [x10]
	sdiv	x0, x8, x9
	bl	_Min
	mov	x8, x0
	mov	x0, #0
	cmp	x22, x8
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	__h_spoolinit
LBB0_4:
	stp	xzr, x0, [sp]
	str	x21, [sp, #16]
Lloh21:
	adrp	x8, _hashbuildCallback@GOTPAGE
Lloh22:
	ldr	x8, [x8, _hashbuildCallback@GOTPAGEOFF]
Lloh23:
	ldr	w5, [x8]
	mov	x6, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	mov	w4, #1
	mov	x7, #0
	bl	_table_index_build_scan
	str	d0, [sp, #32]
Lloh24:
	adrp	x8, _PROGRESS_CREATEIDX_TUPLES_TOTAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PROGRESS_CREATEIDX_TUPLES_TOTAL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x1, [sp]
	bl	_pgstat_progress_update_param
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x1, [sp, #16]
	bl	__h_indexbuild
	ldr	x0, [sp, #8]
	bl	__h_spooldestroy
LBB0_6:
	mov	w0, #16
	bl	_palloc
	ldr	d0, [sp, #32]
	str	d0, [x0]
	ldr	x8, [sp]
	str	x8, [x0, #8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index \"%s\" already contains data"

	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_maintenance_work_mem,8,3       ; @maintenance_work_mem
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
	.comm	_RELPERSISTENCE_TEMP,8,3        ; @RELPERSISTENCE_TEMP
	.comm	_NBuffers,4,2                   ; @NBuffers
	.comm	_NLocBuffer,4,2                 ; @NLocBuffer
	.comm	_hashbuildCallback,4,2          ; @hashbuildCallback
	.comm	_PROGRESS_CREATEIDX_TUPLES_TOTAL,4,2 ; @PROGRESS_CREATEIDX_TUPLES_TOTAL
.subsections_via_symbols
