	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi_core_deinit                ## -- Begin function hfi_core_deinit
	.p2align	4, 0x90
_hfi_core_deinit:                       ## @hfi_core_deinit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_CORE_UNINIT@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.1:
	leaq	28(%r15), %rdi
	callq	_list_empty
	orl	%eax, %r12d
	je	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	24(%r15), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%rbx, %rdi
	callq	_wait_var_event
	movq	%r14, %rdi
	callq	_mutex_lock
LBB0_5:
	movq	16(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r13), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CORE_UNINIT,8,3                ## @CORE_UNINIT
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi_core_deinit                ; -- Begin function hfi_core_deinit
	.p2align	2
_hfi_core_deinit:                       ; @hfi_core_deinit
	.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	x21, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x22, _CORE_UNINIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CORE_UNINIT@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_8
LBB0_2:
	add	x0, x20, #28
	bl	_list_empty
	orr	w8, w0, w21
	cbz	w8, LBB0_7
; %bb.3:
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_mutex_unlock
	add	x21, x20, #24
	mov	x0, x21
	bl	_atomic_read
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	bl	_wait_var_event
	mov	x0, x19
	bl	_mutex_lock
LBB0_5:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x22]
	str	x8, [x20]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CORE_UNINIT,8,3                ; @CORE_UNINIT
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
