	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecHashTableDetachBatch       ## -- Begin function ExecHashTableDetachBatch
	.p2align	4, 0x90
_ExecHashTableDetachBatch:              ## @ExecHashTableDetachBatch
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.2:
	movq	16(%r15), %rax
	shlq	$4, %rbx
	movq	8(%rax,%rbx), %r12
	movl	4(%rax,%rbx), %edi
	callq	_sts_end_parallel_scan
	movq	16(%r15), %rax
	movl	(%rax,%rbx), %edi
	callq	_sts_end_parallel_scan
	leaq	16(%r12), %r14
	movq	%r14, %rdi
	callq	_BarrierArriveAndDetach
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_BarrierPhase
	movq	_PHJ_BATCH_DONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	12(%r12), %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	callq	_DsaPointerIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r15), %edi
	movl	12(%r12), %esi
	callq	_dsa_get_address
	movl	(%rax), %ebx
	movl	12(%r15), %edi
	movl	12(%r12), %esi
	callq	_dsa_free
	movl	%ebx, 12(%r12)
	movl	%ebx, %edi
	jmp	LBB0_5
LBB0_6:
	movl	8(%r12), %edi
	callq	_DsaPointerIsValid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	12(%r15), %edi
	movl	8(%r12), %esi
	callq	_dsa_free
	movq	_InvalidDsaPointer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
LBB0_8:
	movl	8(%r15), %edi
	movslq	4(%r15), %rsi
	shlq	$2, %rsi
	addq	(%r12), %rsi
	callq	_Max
	movl	%eax, 8(%r15)
	movl	$-1, (%r15)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHJ_BATCH_DONE,8,3             ## @PHJ_BATCH_DONE
	.comm	_InvalidDsaPointer,4,2          ## @InvalidDsaPointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecHashTableDetachBatch       ; -- Begin function ExecHashTableDetachBatch
	.p2align	2
_ExecHashTableDetachBatch:              ; @ExecHashTableDetachBatch
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_8
; %bb.2:
	ldr	x9, [x19, #16]
	lsl	x20, x8, #4
	add	x8, x9, x20
	ldr	x21, [x8, #8]
	ldr	w0, [x8, #4]
	bl	_sts_end_parallel_scan
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x20]
	bl	_sts_end_parallel_scan
	add	x20, x21, #16
	mov	x0, x20
	bl	_BarrierArriveAndDetach
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_BarrierPhase
Lloh0:
	adrp	x8, _PHJ_BATCH_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHJ_BATCH_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x21, #12]
	bl	_DsaPointerIsValid
	cbz	x0, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	ldr	w1, [x21, #12]
	bl	_dsa_get_address
	ldr	w20, [x0]
	ldr	w0, [x19, #12]
	ldr	w1, [x21, #12]
	bl	_dsa_free
	str	w20, [x21, #12]
	mov	x0, x20
	bl	_DsaPointerIsValid
	cbnz	x0, LBB0_4
LBB0_5:
	ldr	w0, [x21, #8]
	bl	_DsaPointerIsValid
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #12]
	ldr	w1, [x21, #8]
	bl	_dsa_free
Lloh3:
	adrp	x8, _InvalidDsaPointer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidDsaPointer@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
LBB0_7:
	ldr	x8, [x21]
	ldp	w9, w0, [x19, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x1, x8, x9, lsl #2
	bl	_Max
	str	w0, [x19, #8]
	mov	w8, #-1
	str	w8, [x19]
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PHJ_BATCH_DONE,8,3             ; @PHJ_BATCH_DONE
	.comm	_InvalidDsaPointer,4,2          ; @InvalidDsaPointer
.subsections_via_symbols
