	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88179_rx_fixup
_ax88179_rx_fixup:                      ## @ax88179_rx_fixup
	.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	%rsi, %r12
	movq	(%rsi), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	addq	$-4, %rsi
	movq	%r12, %rdi
	callq	_skb_trim
	movq	%r12, %rdi
	callq	_skb_tail_pointer
	movl	%eax, %edi
	callq	_get_unaligned_le32
	movl	%eax, %r13d
	movl	$1, %eax
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.3:
	movslq	8(%r12), %rax
	movl	%r13d, %ecx
	sarl	$16, %ecx
	movslq	%ecx, %rbx
	addq	%rax, %rbx
	movq	_AX_RXHDR_CRC_ERR@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%r13d
	addl	$7, %r14d
	andl	$-8, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_pull
	addq	$4, %rbx
	testl	%r13d, %r13d
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_le32_to_cpus
	movl	(%rbx), %eax
	movl	%eax, %r14d
	shrl	$16, %r14d
	andl	$8191, %r14d                    ## imm = 0x1FFF
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_AX_RXHDR_DROP_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, %r13d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_clone
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	movl	%r14d, %eax
	movq	%rax, (%r15)
	movl	8(%r12), %eax
	addl	$2, %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_skb_set_tail_pointer
	leal	16(%r14), %eax
	movl	%eax, 12(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ax88179_rx_checksum
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_usbnet_skb_return
	movq	_AX_RXHDR_CRC_ERR@GOTPCREL(%rip), %r15
	jmp	LBB0_4
LBB0_10:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_skb_pull
	movq	%r14, (%r12)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_set_tail_pointer
	addl	$16, %r14d
	movl	%r14d, 12(%r12)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ax88179_rx_checksum
LBB0_11:
	movl	$1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AX_RXHDR_CRC_ERR,4,2           ## @AX_RXHDR_CRC_ERR
	.comm	_AX_RXHDR_DROP_ERR,4,2          ## @AX_RXHDR_DROP_ERR
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_ax88179_rx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88179_rx_fixup
_ax88179_rx_fixup:                      ; @ax88179_rx_fixup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x1]
	ldr	x9, [x0]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_12
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	sub	x1, x8, #4
	mov	x0, x19
	bl	_skb_trim
	mov	x0, x19
	bl	_skb_tail_pointer
	bl	_get_unaligned_le32
	cbz	w0, LBB0_11
; %bb.3:
	mov	x22, x0
	ldrsw	x8, [x19, #8]
	asr	w9, w0, #16
	add	x21, x8, w9, sxtw
Lloh0:
	adrp	x25, _AX_RXHDR_CRC_ERR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AX_RXHDR_CRC_ERR@GOTPAGEOFF]
Lloh2:
	adrp	x26, _AX_RXHDR_DROP_ERR@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AX_RXHDR_DROP_ERR@GOTPAGEOFF]
Lloh4:
	adrp	x27, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x27, [x27, _GFP_ATOMIC@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	mov	w8, w23
	str	x8, [x0]
	ldr	w8, [x19, #8]
	add	w8, w8, #2
	str	w8, [x0, #8]
	mov	x1, x23
	bl	_skb_set_tail_pointer
	add	w8, w23, #16
	str	w8, [x24, #12]
	mov	x0, x24
	mov	x1, x21
	bl	_ax88179_rx_checksum
	mov	x0, x20
	mov	x1, x24
	bl	_usbnet_skb_return
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w22, w22, #1
	add	w8, w23, #7
	and	w1, w8, #0x3ff8
	mov	x0, x19
	bl	_skb_pull
	add	x21, x21, #4
	cbz	w22, LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_le32_to_cpus
	ldr	w8, [x21]
	ubfx	x23, x8, #16, #13
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_skb_clone
	cbnz	x0, LBB0_4
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	mov	w1, #2
	bl	_skb_pull
	str	x23, [x19]
	mov	x0, x19
	mov	x1, x23
	bl	_skb_set_tail_pointer
	add	w8, w23, #16
	str	w8, [x19, #12]
	mov	x0, x19
	mov	x1, x21
	bl	_ax88179_rx_checksum
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AX_RXHDR_CRC_ERR,4,2           ; @AX_RXHDR_CRC_ERR
	.comm	_AX_RXHDR_DROP_ERR,4,2          ; @AX_RXHDR_DROP_ERR
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_ax88179_rx_fixup
.subsections_via_symbols
