	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_leader_participate_as_worker
__bt_leader_participate_as_worker:      ## @_bt_leader_participate_as_worker
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	$12, %edi
	callq	_palloc0
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%r14)
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	16(%r15), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	$12, %edi
	callq	_palloc0
	movq	%rax, %rsi
	movl	8(%r14), %eax
	movl	%eax, 8(%rsi)
	movl	4(%r14), %eax
	movl	%eax, 4(%rsi)
	movl	$0, (%rsi)
	movq	16(%r15), %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	_maintenance_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	(%r15)
	movl	4(%r15), %r8d
	movl	8(%r15), %ecx
	movl	$1, (%rsp)
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%eax, %r9d
	callq	__bt_parallel_scan_and_sort
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maintenance_work_mem,4,2       ## @maintenance_work_mem
	.comm	_log_btree_build_stats,8,3      ## @log_btree_build_stats
	.no_dead_strip	__bt_leader_participate_as_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_leader_participate_as_worker
__bt_leader_participate_as_worker:      ; @_bt_leader_participate_as_worker
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x21, [x0, #8]
	mov	w0, #12
	bl	_palloc0
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	str	w9, [x0, #8]
	ldr	d0, [x8]
	str	d0, [x0]
	ldr	x2, [x21, #16]
	ldr	w8, [x2]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #12
	bl	_palloc0
	mov	x1, x0
	ldur	d0, [x19, #4]
	stur	d0, [x0, #4]
	str	wzr, [x0]
	ldr	x2, [x21, #16]
	b	LBB0_3
LBB0_2:
	mov	x1, #0
LBB0_3:
Lloh0:
	adrp	x8, _maintenance_work_mem@GOTPAGE
Lloh1:
	ldr	x8, [x8, _maintenance_work_mem@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w4, [x21]
	sdiv	w5, w8, w9
	ldr	w3, [x21, #8]
	mov	x0, x19
	mov	w6, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__bt_parallel_scan_and_sort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_maintenance_work_mem,4,2       ; @maintenance_work_mem
	.comm	_log_btree_build_stats,8,3      ; @log_btree_build_stats
	.no_dead_strip	__bt_leader_participate_as_worker
.subsections_via_symbols
