	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kaweth_usb_receive
_kaweth_usb_receive:                    ## @kaweth_usb_receive
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r15
	movq	16(%rdi), %rbx
	movq	8(%rbx), %rax
	movq	24(%rbx), %r12
	movl	(%rdi), %r14d
	movl	4(%rdi), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	callq	_le16_to_cpup
	movl	%eax, %r13d
	movq	_EPIPE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%r14d, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incl	8(%r12)
	movl	$1, (%rbx)
	addq	$40, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	sete	%al
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r14d, %ecx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, (%rdi)
	addq	$40, %rdi
	callq	_wake_up
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_6:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	movl	$1, %edi
	movl	(%rax), %eax
	addl	%r14d, %eax
	movq	%r15, %r12
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %r13d
	jmp	LBB0_10
LBB0_8:
	movq	_ETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	movl	%ebx, %r13d
	je	LBB0_10
## %bb.9:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%r14d, %eax
	sete	%dil
LBB0_10:
	callq	_unlikely
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	incl	8(%r15)
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	jmp	LBB0_5
LBB0_12:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%r14d, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	incl	8(%r15)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	36(%rbx), %edi
	callq	_IS_BLOCKED
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testl	%r14d, %r14d
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_19
## %bb.16:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_19
## %bb.17:
	cmpl	$1, %r8d
	je	LBB0_19
## %bb.18:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	movl	12(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_19:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 24(%rbx)
	je	LBB0_26
## %bb.20:
	cmpl	$3, %r8d
	jl	LBB0_26
## %bb.21:
	leal	-2(%r8), %eax
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	cmpl	%eax, %r12d
	jle	LBB0_23
## %bb.22:
	movq	16(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edx
	movl	%r8d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%rbx), %rdi
	andl	$2047, %r12d                    ## imm = 0x7FF
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_23:
	movl	%r12d, %edi
	addl	$2, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_skb_copy_to_linear_data
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_skb_put
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_netif_rx
	incl	4(%r15)
	addl	%r12d, (%r15)
LBB0_26:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kaweth_resubmit_rx_urb         ## TAILCALL
LBB0_24:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_EPIPE,4,2                      ## @EPIPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Status was -EPIPE.\n"

	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
L_.str.1:                               ## @.str.1
	.asciz	"Status was -ECONNRESET or -ESHUTDOWN.\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_ETIME,4,2                      ## @ETIME
	.comm	_EILSEQ,4,2                     ## @EILSEQ
L_.str.2:                               ## @.str.2
	.asciz	"Status was -EPROTO, -ETIME, or -EILSEQ.\n"

	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
L_.str.3:                               ## @.str.3
	.asciz	"Status was -EOVERFLOW.\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
L_.str.4:                               ## @.str.4
	.asciz	"%s RX status: %d count: %d packet_len: %d\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.5:                               ## @.str.5
	.asciz	"Packet length too long for USB frame (pkt_len: %x, count: %x)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Packet len & 2047: %x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Count 2: %x\n"

	.no_dead_strip	_kaweth_usb_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kaweth_usb_receive
_kaweth_usb_receive:                    ; @kaweth_usb_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	x19, x23, [x0, #16]
	ldr	x20, [x19, #24]
	ldp	w26, w25, [x0]
	ldr	w22, [x0, #8]
	ldr	x0, [x19, #8]
	bl	_le16_to_cpup
	mov	x21, x0
Lloh0:
	adrp	x8, _EPIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w26, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	w8, #1
	str	w8, [x19], #40
	mov	x0, x19
	bl	_wake_up
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
Lloh5:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w26, w8
	cset	w8, eq
Lloh8:
	adrp	x9, _ESHUTDOWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ESHUTDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmn	w26, w9
	cset	w9, eq
	orr	w0, w8, w9
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19], #40
	mov	x0, x19
	bl	_wake_up
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh13:
	adrp	x8, _EPROTO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w26, w8
	b.eq	LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _ETIME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w26, w8
	b.ne	LBB0_9
LBB0_6:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_7:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_dev_dbg
LBB0_9:
Lloh21:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmn	w26, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
LBB0_10:
Lloh24:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmn	w26, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
LBB0_12:
	add	x23, x19, #32
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #36]
	bl	_IS_BLOCKED
	mov	x24, x0
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	cbz	x24, LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	cbz	w26, LBB0_18
; %bb.15:
Lloh29:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmn	w26, w8
	b.eq	LBB0_18
; %bb.16:
	cmp	w25, #1
	b.eq	LBB0_18
; %bb.17:
	ldr	x0, [x19, #16]
	ldr	w2, [x20, #12]
	stp	x25, x21, [sp, #8]
	str	x26, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_24
LBB0_18:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_24
; %bb.19:
	cmp	w25, #3
	b.lt	LBB0_24
; %bb.20:
	sub	w8, w25, #2
	cmp	w21, w8
	b.le	LBB0_22
; %bb.21:
	ldr	x0, [x19, #16]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	ldr	x0, [x19, #16]
	and	w2, w21, #0x7ff
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #16]
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_24
LBB0_22:
	add	w0, w21, #2
	bl	_dev_alloc_skb
	cbz	x0, LBB0_24
; %bb.23:
	mov	x22, x0
	mov	w1, #2
	bl	_skb_reserve
	ldr	x8, [x19, #8]
	add	x1, x8, #2
	mov	x0, x22
	mov	x2, x21
	bl	_skb_copy_to_linear_data
	mov	x0, x22
	mov	x1, x21
	bl	_skb_put
	mov	x0, x22
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x22]
	mov	x0, x22
	bl	_netif_rx
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w21
	add.2s	v0, v0, v1
	str	d0, [x20]
LBB0_24:
Lloh40:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_kaweth_resubmit_rx_urb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_EPIPE,4,2                      ; @EPIPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Status was -EPIPE.\n"

	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
l_.str.1:                               ; @.str.1
	.asciz	"Status was -ECONNRESET or -ESHUTDOWN.\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_ETIME,4,2                      ; @ETIME
	.comm	_EILSEQ,4,2                     ; @EILSEQ
l_.str.2:                               ; @.str.2
	.asciz	"Status was -EPROTO, -ETIME, or -EILSEQ.\n"

	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
l_.str.3:                               ; @.str.3
	.asciz	"Status was -EOVERFLOW.\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
l_.str.4:                               ; @.str.4
	.asciz	"%s RX status: %d count: %d packet_len: %d\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.5:                               ; @.str.5
	.asciz	"Packet length too long for USB frame (pkt_len: %x, count: %x)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Packet len & 2047: %x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Count 2: %x\n"

	.no_dead_strip	_kaweth_usb_receive
.subsections_via_symbols
