	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_free_net_device
_hso_free_net_device:                   ## @hso_free_net_device
	.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	%rdi, %r14
	callq	_dev2net
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	movl	40(%rax), %edi
	callq	_remove_net_device
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_unregister_netdev
	movq	32(%r12), %rdi
	callq	_free_netdev
LBB0_3:
	movq	_MUX_BULK_RX_BUF_COUNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_usb_free_urb
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	8(%r12), %edi
	callq	_usb_free_urb
	movq	(%r12), %rdi
	callq	_kfree
	movq	$0, (%r12)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MUX_BULK_RX_BUF_COUNT,4,2      ## @MUX_BULK_RX_BUF_COUNT
	.no_dead_strip	_hso_free_net_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_free_net_device
_hso_free_net_device:                   ; @hso_free_net_device
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_dev2net
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #40]
	bl	_remove_net_device
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_unregister_netdev
	ldr	x0, [x20, #32]
	bl	_free_netdev
LBB0_3:
Lloh0:
	adrp	x21, _MUX_BULK_RX_BUF_COUNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MUX_BULK_RX_BUF_COUNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x22, lsl #2]
	bl	_usb_free_urb
	ldr	x8, [x20, #16]
	lsl	x23, x22, #3
	ldr	x0, [x8, x23]
	bl	_kfree
	ldr	x8, [x20, #16]
	str	xzr, [x8, x23]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w0, [x20, #8]
	bl	_usb_free_urb
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kfree
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MUX_BULK_RX_BUF_COUNT,4,2      ; @MUX_BULK_RX_BUF_COUNT
	.no_dead_strip	_hso_free_net_device
.subsections_via_symbols
