	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_clone_destroy
_iflib_clone_destroy:                   ## @iflib_clone_destroy
	.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
	callq	_if_getsoftc
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_iflib_get_dev
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_iflib_ctx_lock_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sx_xlock
	movl	%r15d, %edi
	callq	_iflib_set_detach
	movl	%r15d, %edi
	callq	_iflib_stop
	movq	%rbx, %rdi
	callq	_sx_xunlock
	movq	_Giant@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mtx_lock
	movq	_iflib_pseudodev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_device_delete_child
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mtx_unlock
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iflib_pseudo_deregister        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Giant,4,2                      ## @Giant
	.comm	_iflib_pseudodev,4,2            ## @iflib_pseudodev
	.no_dead_strip	_iflib_clone_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_clone_destroy
_iflib_clone_destroy:                   ; @iflib_clone_destroy
	.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
	bl	_if_getsoftc
	mov	x19, x0
	bl	_iflib_get_dev
	mov	x20, x0
	mov	x0, x19
	bl	_iflib_ctx_lock_get
	mov	x21, x0
	bl	_sx_xlock
	mov	x0, x19
	bl	_iflib_set_detach
	mov	x0, x19
	bl	_iflib_stop
	mov	x0, x21
	bl	_sx_xunlock
Lloh0:
	adrp	x21, _Giant@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Giant@GOTPAGEOFF]
	mov	x0, x21
	bl	_mtx_lock
Lloh2:
	adrp	x8, _iflib_pseudodev@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iflib_pseudodev@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_device_delete_child
	mov	x20, x0
	mov	x0, x21
	bl	_mtx_unlock
	cbz	w20, LBB0_2
; %bb.1:
	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_2:
	mov	x0, x19
	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	_iflib_pseudo_deregister
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Giant,4,2                      ; @Giant
	.comm	_iflib_pseudodev,4,2            ; @iflib_pseudodev
	.no_dead_strip	_iflib_clone_destroy
.subsections_via_symbols
