	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kaweth_open
_kaweth_open:                           ## @kaweth_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_kaweth_resubmit_rx_urb
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	24(%rbx), %r15
	movl	40(%rbx), %r12d
	movl	%r12d, %edi
	movl	$3, %esi
	callq	_usb_rcvintpipe
	movl	36(%rbx), %ecx
	movq	_INTBUFFERSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_int_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	pushq	$250
	pushq	%rbx
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	32(%rbx), %eax
	movq	24(%rbx), %rdi
	movl	%eax, 4(%rdi)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
	movl	(%r13), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	16(%rbx), %edi
	callq	_usb_kill_urb
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_usb_autopm_put_interface
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, (%rbx)
	movq	%r14, %rdi
	callq	_netif_start_queue
	movq	%rbx, %rdi
	callq	_kaweth_async_set_rx_mode
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interface cannot be resumed.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_INTBUFFERSIZE,4,2              ## @INTBUFFERSIZE
	.comm	_int_callback,4,2               ## @int_callback
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_kaweth_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kaweth_open
_kaweth_open:                           ; @kaweth_open
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_usb_autopm_get_interface
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_kaweth_resubmit_rx_urb
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x21, [x19, #24]
	ldr	w22, [x19, #40]
	mov	x0, x22
	mov	w1, #3
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	w3, [x19, #36]
Lloh4:
	adrp	x8, _INTBUFFERSIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INTBUFFERSIZE@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
Lloh7:
	adrp	x8, _int_callback@GOTPAGE
Lloh8:
	ldr	x8, [x8, _int_callback@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x6, x19
	mov	w7, #250
	bl	_usb_fill_int_urb
	ldr	w8, [x19, #32]
	ldr	x0, [x19, #24]
Lloh10:
	adrp	x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [x0]
	orr	w9, w10, w9
	stp	w9, w8, [x0]
	ldr	w1, [x23]
	bl	_usb_submit_urb
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w0, [x19, #16]
	bl	_usb_kill_urb
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_usb_autopm_put_interface
LBB0_6:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_netif_start_queue
	mov	x0, x19
	bl	_kaweth_async_set_rx_mode
	mov	w0, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interface cannot be resumed.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_INTBUFFERSIZE,4,2              ; @INTBUFFERSIZE
	.comm	_int_callback,4,2               ; @int_callback
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_kaweth_open
.subsections_via_symbols
