	.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
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movl	4(%rbx), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_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	16(%rbx), %r15
	movl	32(%rbx), %r12d
	movl	%r12d, %edi
	movl	$3, %esi
	callq	_usb_rcvintpipe
	movl	28(%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	24(%rbx), %eax
	movq	16(%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	8(%rbx), %edi
	callq	_usb_kill_urb
LBB0_5:
	movl	4(%rbx), %edi
	callq	_usb_autopm_enable
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	"Opening network device."

L_.str.1:                               ## @.str.1
	.asciz	"Interface cannot be resumed."

	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	ldr	w0, [x19, #4]
	bl	_usb_autopm_get_interface
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_6
LBB0_2:
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	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, #16]
	ldr	w22, [x19, #32]
	mov	x0, x22
	mov	w1, #3
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	w3, [x19, #28]
Lloh6:
	adrp	x8, _INTBUFFERSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTBUFFERSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _int_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _int_callback@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x6, x19
	mov	w7, #250
	bl	_usb_fill_int_urb
	ldr	w8, [x19, #24]
	ldr	x0, [x19, #16]
Lloh12:
	adrp	x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh14:
	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, #8]
	bl	_usb_kill_urb
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_usb_autopm_enable
LBB0_6:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Opening network device."

l_.str.1:                               ; @.str.1
	.asciz	"Interface cannot be resumed."

	.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
