	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rdx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movslq	(%r12), %rdi
	testq	%rdi, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	leaq	4(%rdi), %rax
	movslq	(%rdx), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_4
## %bb.2:
	incl	%edi
	andl	$65534, %edi                    ## imm = 0xFFFE
	addq	8(%rdx), %rdi
	callq	_get_unaligned_le32
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 4(%r12)
	movl	%eax, %ecx
	andl	$2047, %ecx                     ## imm = 0x7FF
	shrl	$16, %eax
	notl	%eax
	andl	$2047, %eax                     ## imm = 0x7FF
	cmpl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	%r12, %rdi
	callq	_reset_asix_rx_fixup_info
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_4:
	movl	(%rdx), %ebx
	xorl	%r14d, %r14d
	cmpl	$4, %ebx
	jae	LBB0_5
LBB0_22:
	movl	$1, %eax
	cmpl	%r14d, %ebx
	je	LBB0_26
## %bb.23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
LBB0_24:
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_25:
	movq	%r12, %rdi
	callq	_reset_asix_rx_fixup_info
	xorl	%eax, %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$4, %r13d
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	andl	$65534, %ebx                    ## imm = 0xFFFE
	addl	%ebx, %r14d
	movslq	%r14d, %rdi
	leaq	4(%rdi), %r13
	movslq	(%rdx), %rbx
	cmpq	%rbx, %r13
	ja	LBB0_22
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r15d
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	subl	%r14d, %ebx
	cmpl	$4, %ebx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	8(%rdx), %rdi
	cmpl	$1, 8(%r12)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	callq	_get_unaligned_le16
                                        ## kill: def $eax killed $eax def $rax
	shll	$16, %eax
	orl	4(%r12), %eax
	movl	%eax, 4(%r12)
	movl	$0, 8(%r12)
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_get_unaligned_le32
	movl	%eax, 4(%r12)
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r15d
	andl	$2047, %r15d                    ## imm = 0x7FF
	movl	%eax, %ecx
	shrl	$16, %ecx
	notl	%ecx
	andl	$2047, %ecx                     ## imm = 0x7FF
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdi
	cmpl	%ecx, %r15d
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rdi), %eax
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	%eax, %r15d
	jg	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %esi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %rdi
	movq	%rax, 16(%r12)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ebx
	movl	%r13d, %r14d
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	subl	%r14d, %ebx
	movl	%r15d, %eax
	subl	%ebx, %eax
	movl	$0, %ecx
	cmovlel	%ecx, %eax
	cmovll	%r15d, %ebx
	movl	%eax, (%r12)
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r14d, %rsi
	addq	8(%rdx), %rsi
	movl	%ebx, %edx
	callq	_skb_put_data
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, (%r12)
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_usbnet_skb_return
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	$0, 16(%r12)
	jmp	LBB0_21
LBB0_9:
	addq	8(%rdx), %rdi
	movq	%rdx, %rbx
	callq	_get_unaligned_le16
	movl	%eax, 4(%r12)
	movl	$1, 8(%r12)
	movl	(%rbx), %ebx
	movl	%r13d, %r14d
	jmp	LBB0_22
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	%r13d, %ecx
	jmp	LBB0_24
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	callq	_netdev_dbg
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asix_rx_fixup() Data Header synchronisation was lost, remaining %d\n"

L_.str.1:                               ## @.str.1
	.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.2:                               ## @.str.2
	.asciz	"asix_rx_fixup() Bad RX Length %d\n"

L_.str.3:                               ## @.str.3
	.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	x21, x1
	mov	x20, x0
	ldrsw	x8, [x2]
	cbz	w8, LBB0_4
; %bb.1:
	add	x9, x8, #4
	ldrsw	x10, [x21]
	cmp	x9, x10
	b.hi	LBB0_4
; %bb.2:
	add	w8, w8, #1
	and	w8, w8, #0xfffe
	ldr	x9, [x21, #8]
	add	x0, x9, x8
	bl	_get_unaligned_le32
	str	w0, [x19, #4]
	and	w8, w0, #0x7ff
	mov	w9, #2047
	bic	w9, w9, w0, lsr #16
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x20]
	ldr	w2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	x0, x19
	bl	_reset_asix_rx_fixup_info
LBB0_4:
	ldr	w2, [x21]
	cmp	w2, #4
	b.hs	LBB0_8
; %bb.5:
	mov	w27, #0
LBB0_6:
	cmp	w2, w27
	b.ne	LBB0_22
; %bb.7:
	mov	w0, #1
	b	LBB0_25
LBB0_8:
	mov	x8, #0
	mov	w27, #0
	mov	w26, #4
	mov	w23, #2047
Lloh2:
	adrp	x24, _ETH_HLEN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ETH_HLEN@GOTPAGEOFF]
Lloh4:
	adrp	x25, _VLAN_HLEN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _VLAN_HLEN@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w22, #1
	and	w8, w8, #0xfffe
	add	w27, w8, w27
	sxtw	x8, w27
	add	x26, x8, #4
	ldrsw	x2, [x21]
	cmp	x26, x2
	b.hi	LBB0_6
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19]
	cbz	w22, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x19, #16]
	b	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	w9, w2, w27
	cmp	w9, #4
	b.eq	LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x19, #8]
	ldr	x10, [x21, #8]
	add	x0, x10, x8
	cmp	w9, #1
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_get_unaligned_le16
	ldr	w8, [x19, #4]
	orr	w2, w8, w0, lsl #16
	stp	w2, wzr, [x19, #4]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_get_unaligned_le32
	mov	x2, x0
	str	w2, [x19, #4]
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	and	w22, w2, #0x7ff
	bic	w8, w23, w2, lsr #16
	ldr	x0, [x20]
	cmp	w22, w8
	b.ne	LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x24]
	ldr	w10, [x25]
	add	w8, w9, w8
	add	w8, w8, w10
	cmp	w22, w8
	b.gt	LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x22
	bl	_netdev_alloc_skb_ip_align
	str	x0, [x19, #16]
	ldr	w2, [x21]
	mov	x27, x26
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	w8, w2, w27
	subs	w9, w22, w8
	csel	w9, w9, wzr, gt
	csel	w22, w22, w8, lt
	str	w9, [x19]
	cbz	x0, LBB0_9
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #8]
	add	x1, x8, w27, sxtw
	mov	x2, x22
	bl	_skb_put_data
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_usbnet_skb_return
	str	xzr, [x19, #16]
	b	LBB0_9
LBB0_22:
	ldr	x0, [x20]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	str	x27, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_23:
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_netdev_err
LBB0_24:
	mov	x0, x19
	bl	_reset_asix_rx_fixup_info
	mov	w0, #0
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	x9, [x21, #8]
	add	x0, x9, x8
	bl	_get_unaligned_le16
	mov	w8, #1
	stp	w0, w8, [x19, #4]
	ldr	w2, [x21]
	mov	x27, x26
	b	LBB0_6
LBB0_27:
	str	x26, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_28:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_netdev_dbg
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asix_rx_fixup() Data Header synchronisation was lost, remaining %d\n"

l_.str.1:                               ; @.str.1
	.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.2:                               ; @.str.2
	.asciz	"asix_rx_fixup() Bad RX Length %d\n"

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

.subsections_via_symbols
