	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_rx_fixup_internal         ## -- Begin function asix_rx_fixup_internal
	.p2align	4, 0x90
_asix_rx_fixup_internal:                ## @asix_rx_fixup_internal
	.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	%rdx, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edx
	xorl	%r13d, %r13d
	cmpl	$8, %edx
	jae	LBB0_1
LBB0_22:
	movl	$1, %r12d
	cmpl	%r13d, %edx
	je	LBB0_24
## %bb.23:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_24
LBB0_1:
	movq	%rsi, %r12
	movl	(%r15), %eax
	xorl	%r13d, %r13d
	movl	$8, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	incl	%eax
	andl	$65534, %eax                    ## imm = 0xFFFE
	movslq	%r13d, %rcx
	leaq	(%rax,%rcx), %r13
	movl	%r14d, (%r15)
	leaq	(%rax,%rcx), %rbx
	addq	$8, %rbx
	movslq	(%r12), %rdx
	movl	%r14d, %eax
	cmpq	%rdx, %rbx
	ja	LBB0_22
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	%r13d, %edx
	movl	4(%r15), %eax
	cmpl	$8, %edx
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	4(%r12), %r13d
	movl	%r13d, %edi
	callq	_get_unaligned_le16
	shll	$16, %eax
	orl	8(%r15), %eax
	movl	%eax, 8(%r15)
	movl	$0, 4(%r15)
	movl	%ebx, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	andl	$2047, %esi                     ## imm = 0x7FF
	movl	%esi, (%r15)
	movl	%eax, %ecx
	shrl	$16, %ecx
	notl	%ecx
	andl	$2047, %ecx                     ## imm = 0x7FF
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdi
	cmpl	%ecx, %esi
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rdi), %ecx
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %ecx
	subl	%r13d, %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	jle	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edx, %r14
	movl	%ecx, (%r15)
	movl	%ecx, %eax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rdi
	movl	%eax, %esi
	callq	_skb_put
	movl	4(%r12), %esi
	addl	%r13d, %esi
	movl	(%r15), %edx
	movq	%rax, %rdi
	callq	_memcpy
	testq	%r14, %r14
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_usbnet_skb_return
	jmp	LBB0_21
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %edi
	addl	%r13d, %edi
	callq	_get_unaligned_le32
	movl	%eax, 8(%r15)
	addl	$4, %r13d
	jmp	LBB0_9
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	16(%r15), %rdi
	callq	_kfree_skb
	movq	$0, 16(%r15)
	movl	$0, (%r15)
	jmp	LBB0_24
LBB0_10:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	movl	$0, (%r15)
	jmp	LBB0_24
LBB0_12:
	xorl	%r12d, %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addl	4(%r12), %r13d
	movl	%r13d, %edi
	callq	_get_unaligned_le16
	movl	%eax, 8(%r15)
	movl	$1, 4(%r15)
	movl	(%r12), %edx
	movl	%ebx, %r13d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asix_rx_fixup() Bad Header Length 0x%x, offset %d\n"

	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
L_.str.1:                               ## @.str.1
	.asciz	"asix_rx_fixup() Bad RX Length %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"asix_rx_fixup() Bad SKB Length %d, %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_rx_fixup_internal         ; -- Begin function asix_rx_fixup_internal
	.p2align	2
_asix_rx_fixup_internal:                ; @asix_rx_fixup_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x0
	ldr	w2, [x1]
	cmp	w2, #8
	b.hs	LBB0_4
; %bb.1:
	mov	w22, #0
LBB0_2:
	cmp	w2, w22
	b.ne	LBB0_21
; %bb.3:
	mov	w0, #1
	b	LBB0_25
LBB0_4:
	mov	x21, x1
	mov	w22, #0
	ldr	w8, [x19]
	mov	w26, #8
	mov	w23, #2047
Lloh0:
	adrp	x24, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	adrp	x25, _VLAN_HLEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _VLAN_HLEN@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	and	x8, x8, #0xfffe
	add	x22, x8, w22, sxtw
	str	w27, [x19]
	add	x26, x22, #8
	ldrsw	x2, [x21]
	mov	x8, x27
	cmp	x26, x2
	b.hi	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w8, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w9, w2, w22
	ldr	w8, [x19, #4]
	cmp	w9, #8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w8, LBB0_10
	b	LBB0_26
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_20
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #4]
	add	w0, w8, w22
	bl	_get_unaligned_le16
	ldr	w8, [x19, #8]
	orr	w2, w8, w0, lsl #16
	stp	wzr, w2, [x19, #4]
	mov	x22, x26
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w1, w2, #0x7ff
	str	w1, [x19]
	bic	w8, w23, w2, lsr #16
	ldr	x0, [x20]
	cmp	w1, w8
	b.ne	LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_netdev_alloc_skb_ip_align
	str	x0, [x19, #16]
	cbz	x0, LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	ldr	w9, [x0]
	ldr	w10, [x24]
	ldr	w11, [x25]
	add	w9, w10, w9
	add	w9, w9, w11
	cmp	w8, w9
	b.gt	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21]
	sub	w9, w9, w22
	subs	w10, w8, w9
	b.le	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x27, w10
	str	w9, [x19]
	mov	x8, x9
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, #0
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, #16]
	mov	x1, x8
	bl	_skb_put
	ldr	w8, [x21, #4]
	add	w1, w8, w22
	ldr	w2, [x19]
	bl	_memcpy
	cbnz	x27, LBB0_5
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_usbnet_skb_return
	b	LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #4]
	add	w0, w8, w22
	bl	_get_unaligned_le32
	mov	x2, x0
	str	w0, [x19, #8]
	add	w22, w22, #4
	b	LBB0_11
LBB0_21:
	ldr	x0, [x20]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_netdev_err
	mov	w0, #0
	b	LBB0_25
LBB0_22:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x8
	bl	_netdev_err
	ldr	x0, [x19, #16]
	bl	_kfree_skb
	mov	w0, #0
	str	xzr, [x19, #16]
	b	LBB0_24
LBB0_23:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	w0, #0
LBB0_24:
	str	wzr, [x19]
LBB0_25:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	ldr	w8, [x21, #4]
	add	w0, w8, w22
	bl	_get_unaligned_le16
	mov	w8, #1
	stp	w8, w0, [x19, #4]
	ldr	w2, [x21]
	mov	x22, x26
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asix_rx_fixup() Bad Header Length 0x%x, offset %d\n"

	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
l_.str.1:                               ; @.str.1
	.asciz	"asix_rx_fixup() Bad RX Length %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"asix_rx_fixup() Bad SKB Length %d, %d\n"

.subsections_via_symbols
