	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kaweth_disconnect
_kaweth_disconnect:                     ## @kaweth_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -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_1
## %bb.2:
	movq	48(%rbx), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	movq	%r14, %rdi
	callq	_unregister_netdev
	movl	40(%rbx), %edi
	callq	_usb_free_urb
	movl	36(%rbx), %edi
	callq	_usb_free_urb
	movl	32(%rbx), %edi
	callq	_usb_free_urb
	movq	_KAWETH_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movl	16(%rbx), %edi
	movl	20(%rbx), %ecx
	callq	_usb_free_coherent
	movl	16(%rbx), %edi
	movq	_INTBUFFERSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	callq	_usb_free_coherent
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unregistering non-existent device\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unregistering net device\n"

	.comm	_KAWETH_BUF_SIZE,4,2            ## @KAWETH_BUF_SIZE
	.comm	_INTBUFFERSIZE,4,2              ## @INTBUFFERSIZE
	.no_dead_strip	_kaweth_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kaweth_disconnect
_kaweth_disconnect:                     ; @kaweth_disconnect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	mov	x0, x20
	mov	x1, #0
	bl	_usb_set_intfdata
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x20, [x19, #48]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	mov	x0, x20
	bl	_unregister_netdev
	ldr	w0, [x19, #40]
	bl	_usb_free_urb
	ldr	w0, [x19, #36]
	bl	_usb_free_urb
	ldr	w0, [x19, #32]
	bl	_usb_free_urb
Lloh2:
	adrp	x8, _KAWETH_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KAWETH_BUF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x2, [x19, #24]
	ldp	w0, w3, [x19, #16]
	bl	_usb_free_coherent
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _INTBUFFERSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTBUFFERSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	bl	_usb_free_coherent
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free_netdev
LBB0_2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unregistering non-existent device\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unregistering net device\n"

	.comm	_KAWETH_BUF_SIZE,4,2            ; @KAWETH_BUF_SIZE
	.comm	_INTBUFFERSIZE,4,2              ; @INTBUFFERSIZE
	.no_dead_strip	_kaweth_disconnect
.subsections_via_symbols
