	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fha_nd_complete                ## -- Begin function fha_nd_complete
	.p2align	4, 0x90
_fha_nd_complete:                       ## @fha_nd_complete
	.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
	movq	8(%rsi), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_fha_hash_entry_add_op
	movq	(%r12), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	movq	%r12, %rsi
	callq	_KASSERT
	cmpq	$0, (%r12)
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_fha_hash_entry_remove_thread
	movq	(%r15), %rax
	addq	8(%r15), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_fha_hash_entry_remove
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fha_nd_complete                ; -- Begin function fha_nd_complete
	.p2align	2
_fha_nd_complete:                       ; @fha_nd_complete
	.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	x19, [x1, #8]
	cbz	x19, LBB0_5
; %bb.1:
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_mtx_lock
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #-1
	bl	_fha_hash_entry_add_op
	ldr	x8, [x21]
	sub	x9, x8, #1
	str	x9, [x21]
	cmp	x8, #0
	cset	w0, gt
	mov	x1, x21
	bl	_KASSERT
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_fha_hash_entry_remove_thread
	ldp	x8, x9, [x19]
	cmn	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_fha_hash_entry_remove
LBB0_4:
	mov	x0, x20
	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	_mtx_unlock
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
