	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_parallel_heapscan
__bt_parallel_heapscan:                 ## @_bt_parallel_heapscan
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	8(%rax), %r13
	movl	(%rax), %r14d
	leaq	20(%r13), %rbx
	movq	%rbx, %rdi
	callq	_SpinLockAcquire
	cmpl	%r14d, (%r13)
	je	LBB0_3
## %bb.1:
	leaq	16(%r13), %r12
	movq	_WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_SpinLockRelease
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_ConditionVariableSleep
	movq	%rbx, %rdi
	callq	_SpinLockAcquire
	cmpl	%r14d, (%r13)
	jne	LBB0_2
LBB0_3:
	movl	28(%r13), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	24(%r13), %eax
	movl	%eax, (%rcx)
	movl	4(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movsd	8(%r13), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_SpinLockRelease
	xorl	%eax, %eax
	callq	_ConditionVariableCancelSleep
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN,4,2 ## @WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN
	.no_dead_strip	__bt_parallel_heapscan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_parallel_heapscan
__bt_parallel_heapscan:                 ; @_bt_parallel_heapscan
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x23, [x8, #8]
	ldr	w24, [x8]
	add	x20, x23, #20
	mov	x0, x20
	bl	_SpinLockAcquire
	ldr	w8, [x23]
	cmp	w8, w24
	b.eq	LBB0_3
; %bb.1:
	add	x22, x23, #16
Lloh0:
	adrp	x25, _WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SpinLockRelease
	ldr	w1, [x25]
	mov	x0, x22
	bl	_ConditionVariableSleep
	mov	x0, x20
	bl	_SpinLockAcquire
	ldr	w8, [x23]
	cmp	w8, w24
	b.ne	LBB0_2
LBB0_3:
	ldr	d0, [x23, #24]
	str	d0, [x21]
	ldr	w8, [x23, #4]
	str	w8, [x19]
	ldr	d8, [x23, #8]
	mov	x0, x20
	bl	_SpinLockRelease
	bl	_ConditionVariableCancelSleep
	fmov	d0, d8
	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
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN,4,2 ; @WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN
	.no_dead_strip	__bt_parallel_heapscan
.subsections_via_symbols
