	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_fs
_delete_fs:                             ## @delete_fs
	.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
	movl	%esi, %r15d
	movl	%edi, %r12d
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_DN_BH_WLOCK
LBB0_2:
	movq	_dn_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DNHT_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_dn_ht_find
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_ND
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	_DN_DETACH@GOTPCREL(%rip), %rax
	movq	_DN_DELETE_FS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fsk_detach
	testl	%r15d, %r15d
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_DN_BH_WUNLOCK
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r15d, %r15d
	jne	LBB0_7
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_dn_cfg,4,2                     ## @dn_cfg
	.comm	_DNHT_REMOVE,4,2                ## @DNHT_REMOVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fs %d found %p"

	.comm	_DN_DETACH,4,2                  ## @DN_DETACH
	.comm	_DN_DELETE_FS,4,2               ## @DN_DELETE_FS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_delete_fs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_fs
_delete_fs:                             ; @delete_fs
	.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	x19, x1
	mov	x20, x0
	cbnz	w1, LBB0_2
; %bb.1:
	bl	_DN_BH_WLOCK
LBB0_2:
Lloh0:
	adrp	x8, _dn_cfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dn_cfg@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DNHT_REMOVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DNHT_REMOVE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, #0
	bl	_dn_ht_find
	mov	x21, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_ND
	cbz	x21, LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _DN_DETACH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DN_DETACH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _DN_DELETE_FS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DN_DELETE_FS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_fsk_detach
	mov	w20, #0
	cbnz	w19, LBB0_5
LBB0_4:
	bl	_DN_BH_WUNLOCK
LBB0_5:
	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
	ret
LBB0_6:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	cbnz	w19, LBB0_5
	b	LBB0_4
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_dn_cfg,4,2                     ; @dn_cfg
	.comm	_DNHT_REMOVE,4,2                ; @DNHT_REMOVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fs %d found %p"

	.comm	_DN_DETACH,4,2                  ; @DN_DETACH
	.comm	_DN_DELETE_FS,4,2               ; @DN_DELETE_FS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_delete_fs
.subsections_via_symbols
