	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_disconnect              ## -- Begin function usbnet_disconnect
	.p2align	4, 0x90
_usbnet_disconnect:                     ## @usbnet_disconnect
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_usb_get_intfdata
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movq	_probe@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	16(%rbx), %rcx
	movq	32(%rbx), %rdx
	movq	(%r14), %rdi
	movl	(%rdi), %r8d
	movq	8(%rax), %rdi
	movl	(%rdi), %r9d
	movl	(%rax), %r10d
	movl	8(%rcx), %eax
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	pushq	%rax
	pushq	%r10
	callq	_netif_info
	addq	$16, %rsp
	movq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_unregister_netdev
	leaq	28(%rbx), %rdi
	callq	_cancel_work_sync
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_usb_scuttle_anchored_urbs
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rax
LBB0_3:
	movl	8(%rbx), %edi
	callq	_usb_kill_urb
	movl	8(%rbx), %edi
	callq	_usb_free_urb
	movl	4(%rbx), %edi
	callq	_kfree
	movl	(%rbx), %edi
	callq	_free_percpu
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unregister '%s' usb-%s-%s, %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_disconnect              ; -- Begin function usbnet_disconnect
	.p2align	2
_usbnet_disconnect:                     ; @usbnet_disconnect
	.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	x20, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	mov	x0, x20
	mov	x1, #0
	bl	_usb_set_intfdata
	cbz	x19, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_interface_to_usbdev
Lloh0:
	adrp	x8, _probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x19, #32]
	ldr	x8, [x20]
	ldr	w4, [x8]
	ldr	x8, [x0, #8]
	ldr	w5, [x8]
	ldr	w6, [x0]
	ldr	x8, [x19, #16]
	ldr	w7, [x8, #8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	ldr	x21, [x19, #32]
	mov	x0, x21
	bl	_unregister_netdev
	add	x0, x19, #28
	bl	_cancel_work_sync
	add	x0, x19, #24
	bl	_usb_scuttle_anchored_urbs
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_usb_kill_urb
	ldr	w0, [x19, #8]
	bl	_usb_free_urb
	ldr	w0, [x19, #4]
	bl	_kfree
	ldr	w0, [x19]
	bl	_free_percpu
	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
	b	_free_netdev
LBB0_4:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unregister '%s' usb-%s-%s, %s\n"

.subsections_via_symbols
