	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_leafbuild
__bt_leafbuild:                         ## @_bt_leafbuild
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_PROGRESS_CREATEIDX_SUBPHASE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_PROGRESS_BTREE_PHASE_PERFORMSORT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pgstat_progress_update_param
	movl	8(%r15), %edi
	callq	_tuplesort_performsort
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	movq	_PROGRESS_BTREE_PHASE_PERFORMSORT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pgstat_progress_update_param
	movl	8(%r14), %edi
	callq	_tuplesort_performsort
LBB0_2:
	movl	4(%r15), %eax
	movl	%eax, -48(%rbp)
	movl	(%r15), %r13d
	movl	%r13d, -56(%rbp)
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	__bt_mkscankey
	movl	%eax, -52(%rbp)
	xorl	%eax, %eax
	callq	_XLogIsNeeded
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	callq	_RelationNeedsWAL
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_4:
	movl	%ebx, -88(%rbp)
	movq	_BTREE_METAPAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movl	(%r12), %edi
	movq	_PROGRESS_BTREE_PHASE_LEAF_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pgstat_progress_update_param
	leaq	-88(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	__bt_load
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROGRESS_CREATEIDX_SUBPHASE,4,2 ## @PROGRESS_CREATEIDX_SUBPHASE
	.comm	_PROGRESS_BTREE_PHASE_PERFORMSORT_1,4,2 ## @PROGRESS_BTREE_PHASE_PERFORMSORT_1
	.comm	_PROGRESS_BTREE_PHASE_PERFORMSORT_2,4,2 ## @PROGRESS_BTREE_PHASE_PERFORMSORT_2
	.comm	_BTREE_METAPAGE,8,3             ## @BTREE_METAPAGE
	.comm	_PROGRESS_BTREE_PHASE_LEAF_LOAD,4,2 ## @PROGRESS_BTREE_PHASE_LEAF_LOAD
	.comm	_log_btree_build_stats,8,3      ## @log_btree_build_stats
	.no_dead_strip	__bt_leafbuild
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_leafbuild
__bt_leafbuild:                         ; @_bt_leafbuild
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _PROGRESS_CREATEIDX_SUBPHASE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PROGRESS_CREATEIDX_SUBPHASE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _PROGRESS_BTREE_PHASE_PERFORMSORT_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PROGRESS_BTREE_PHASE_PERFORMSORT_1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_pgstat_progress_update_param
	ldr	w0, [x20, #8]
	bl	_tuplesort_performsort
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _PROGRESS_BTREE_PHASE_PERFORMSORT_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PROGRESS_BTREE_PHASE_PERFORMSORT_2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_pgstat_progress_update_param
	ldr	w0, [x19, #8]
	bl	_tuplesort_performsort
LBB0_2:
	ldp	w21, w8, [x20]
	str	w8, [sp, #40]
	str	w21, [sp, #32]
	mov	x0, x21
	mov	x1, #0
	bl	__bt_mkscankey
	str	w0, [sp, #36]
	bl	_XLogIsNeeded
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_RelationNeedsWAL
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
	str	w8, [sp]
Lloh8:
	adrp	x8, _BTREE_METAPAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTREE_METAPAGE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x8, x8, #1
	stp	xzr, x8, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w0, [x22]
Lloh11:
	adrp	x8, _PROGRESS_BTREE_PHASE_LEAF_LOAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PROGRESS_BTREE_PHASE_LEAF_LOAD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_pgstat_progress_update_param
	mov	x0, sp
	mov	x1, x20
	mov	x2, x19
	bl	__bt_load
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PROGRESS_CREATEIDX_SUBPHASE,4,2 ; @PROGRESS_CREATEIDX_SUBPHASE
	.comm	_PROGRESS_BTREE_PHASE_PERFORMSORT_1,4,2 ; @PROGRESS_BTREE_PHASE_PERFORMSORT_1
	.comm	_PROGRESS_BTREE_PHASE_PERFORMSORT_2,4,2 ; @PROGRESS_BTREE_PHASE_PERFORMSORT_2
	.comm	_BTREE_METAPAGE,8,3             ; @BTREE_METAPAGE
	.comm	_PROGRESS_BTREE_PHASE_LEAF_LOAD,4,2 ; @PROGRESS_BTREE_PHASE_LEAF_LOAD
	.comm	_log_btree_build_stats,8,3      ; @log_btree_build_stats
	.no_dead_strip	__bt_leafbuild
.subsections_via_symbols
