	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqc111_rx_fixup
_aqc111_rx_fixup:                       ## @aqc111_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_22
## %bb.2:
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	-4(%r12), %esi
	movq	%rbx, %rdi
	callq	_skb_trim
	movq	%rbx, %rdi
	callq	_skb_tail_pointer
	movq	%rax, %rdi
	callq	_le64_to_cpup
	movl	%eax, %r14d
	movq	_AQ_RX_DH_DESC_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r14d, %edx
	movq	_AQ_RX_DH_DESC_OFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_AQ_RX_DH_PKT_CNT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	leal	(,%r14,4), %eax
	negl	%eax
	addl	%r12d, %eax
	addl	$-4, %eax
	cmpl	%eax, %edx
	jne	LBB0_22
## %bb.3:
	cmpl	%r12d, %edx
	jge	LBB0_22
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.5:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rdi
	addq	16(%rbx), %rdi
	xorl	%r12d, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	_AQ_RX_PD_DROP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	decl	%r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_skb_pull
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	addq	$4, %rdi
	testl	%r14d, %r14d
	je	LBB0_19
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_le64_to_cpup
	movl	%eax, %ebx
	movq	_AQ_RX_PD_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%ebx, %r13d
	movq	_AQ_RX_PD_LEN_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %r13d
	leal	7(%r13), %r15d
	andl	$524280, %r15d                  ## imm = 0x7FFF8
	addl	%r15d, %r12d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r12d
	jg	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$1, %r14d
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %r12d
	je	LBB0_6
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_AQ_RX_PD_RX_OK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_AQ_RX_HW_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rcx), %eax
	cmpl	%eax, %r13d
	jg	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_clone
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rcx
	movslq	%r13d, %rax
	movq	%rax, (%rcx)
	movq	_AQ_RX_HW_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %r13
	movq	%rcx, %rdi
	callq	_skb_pull
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_skb_set_tail_pointer
	movl	(%r13), %edi
	callq	_SKB_TRUESIZE
	movl	%eax, 8(%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_aqc111_rx_checksum
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_AQ_RX_PD_VLAN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_AQ_RX_PD_VLAN_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %ebx
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	_VLAN_VID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	___vlan_hwaccel_put_tag
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rsi
	callq	_usbnet_skb_return
	cmpl	$1, %r14d
	jne	LBB0_7
LBB0_19:
	movl	$1, %r15d
	jmp	LBB0_22
LBB0_21:
	xorl	%r15d, %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AQ_RX_DH_DESC_OFFSET_MASK,4,2  ## @AQ_RX_DH_DESC_OFFSET_MASK
	.comm	_AQ_RX_DH_DESC_OFFSET_SHIFT,4,2 ## @AQ_RX_DH_DESC_OFFSET_SHIFT
	.comm	_AQ_RX_DH_PKT_CNT_MASK,4,2      ## @AQ_RX_DH_PKT_CNT_MASK
	.comm	_AQ_RX_PD_LEN_MASK,4,2          ## @AQ_RX_PD_LEN_MASK
	.comm	_AQ_RX_PD_LEN_SHIFT,4,2         ## @AQ_RX_PD_LEN_SHIFT
	.comm	_AQ_RX_PD_DROP,4,2              ## @AQ_RX_PD_DROP
	.comm	_AQ_RX_PD_RX_OK,4,2             ## @AQ_RX_PD_RX_OK
	.comm	_AQ_RX_HW_PAD,4,2               ## @AQ_RX_HW_PAD
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_AQ_RX_PD_VLAN,4,2              ## @AQ_RX_PD_VLAN
	.comm	_AQ_RX_PD_VLAN_SHIFT,4,2        ## @AQ_RX_PD_VLAN_SHIFT
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
	.no_dead_strip	_aqc111_rx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqc111_rx_fixup
_aqc111_rx_fixup:                       ; @aqc111_rx_fixup
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x21, [x1]
	cbz	x21, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x22, [x0, #8]
	sub	w1, w21, #4
	mov	x0, x19
	bl	_skb_trim
	mov	x0, x19
	bl	_skb_tail_pointer
	bl	_le64_to_cpup
Lloh0:
	adrp	x8, _AQ_RX_DH_DESC_OFFSET_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AQ_RX_DH_DESC_OFFSET_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _AQ_RX_DH_DESC_OFFSET_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AQ_RX_DH_DESC_OFFSET_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AQ_RX_DH_PKT_CNT_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AQ_RX_DH_PKT_CNT_MASK@GOTPAGEOFF]
	asr	w26, w8, w9
Lloh8:
	ldr	w8, [x10]
	and	w27, w8, w0
	sub	w8, w21, w27, lsl #2
	sub	w8, w8, #4
	cmp	w26, w8
	b.ne	LBB0_4
; %bb.3:
	cmp	w26, w21
	ccmp	w27, #0, #4, lt
	b.ne	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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_6:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	w28, #0
	ldr	x8, [x19, #16]
	add	x21, x8, w26, sxtw
Lloh9:
	adrp	x24, _AQ_RX_PD_LEN_MASK@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AQ_RX_PD_LEN_MASK@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh11:
	adrp	x8, _AQ_RX_PD_DROP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AQ_RX_PD_DROP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	w27, w27, #1
	mov	x0, x19
	mov	x1, x22
	bl	_skb_pull
	add	x21, x21, #4
	cbz	w27, LBB0_20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_le64_to_cpup
	ldr	w8, [x24]
	and	w8, w8, w0
Lloh14:
	adrp	x9, _AQ_RX_PD_LEN_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AQ_RX_PD_LEN_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	asr	w25, w8, w9
	add	w8, w25, #7
	and	w22, w8, #0x7fff8
	add	w28, w22, w28
	cmp	w28, w26
	b.gt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x0
	cmp	w27, #1
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w28, w26
	b.eq	LBB0_7
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh17:
	adrp	x8, _AQ_RX_PD_RX_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AQ_RX_PD_RX_OK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20]
Lloh20:
	adrp	x9, _AQ_RX_HW_PAD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AQ_RX_HW_PAD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w25, w8
	b.gt	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh23:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_clone
	cbz	x0, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	sxtw	x8, w25
	str	x8, [x0]
Lloh26:
	adrp	x8, _AQ_RX_HW_PAD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AQ_RX_HW_PAD@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_skb_pull
	ldr	w1, [x24]
	mov	x0, x24
	bl	_skb_set_tail_pointer
	ldr	w0, [x24]
	bl	_SKB_TRUESIZE
	str	w0, [x24, #8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_aqc111_rx_checksum
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh29:
	adrp	x8, _AQ_RX_PD_VLAN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AQ_RX_PD_VLAN@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh32:
	adrp	x8, _AQ_RX_PD_VLAN_SHIFT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AQ_RX_PD_VLAN_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	asr	w23, w23, w8
Lloh35:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_htons
	mov	x1, x0
Lloh38:
	adrp	x8, _VLAN_VID_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VLAN_VID_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	and	w2, w8, w23
	mov	x0, x24
	bl	___vlan_hwaccel_put_tag
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_usbnet_skb_return
	cmp	w27, #1
Lloh41:
	adrp	x24, _AQ_RX_PD_LEN_MASK@GOTPAGE
Lloh42:
	ldr	x24, [x24, _AQ_RX_PD_LEN_MASK@GOTPAGEOFF]
	b.ne	LBB0_8
LBB0_20:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_AQ_RX_DH_DESC_OFFSET_MASK,4,2  ; @AQ_RX_DH_DESC_OFFSET_MASK
	.comm	_AQ_RX_DH_DESC_OFFSET_SHIFT,4,2 ; @AQ_RX_DH_DESC_OFFSET_SHIFT
	.comm	_AQ_RX_DH_PKT_CNT_MASK,4,2      ; @AQ_RX_DH_PKT_CNT_MASK
	.comm	_AQ_RX_PD_LEN_MASK,4,2          ; @AQ_RX_PD_LEN_MASK
	.comm	_AQ_RX_PD_LEN_SHIFT,4,2         ; @AQ_RX_PD_LEN_SHIFT
	.comm	_AQ_RX_PD_DROP,4,2              ; @AQ_RX_PD_DROP
	.comm	_AQ_RX_PD_RX_OK,4,2             ; @AQ_RX_PD_RX_OK
	.comm	_AQ_RX_HW_PAD,4,2               ; @AQ_RX_HW_PAD
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_AQ_RX_PD_VLAN,4,2              ; @AQ_RX_PD_VLAN
	.comm	_AQ_RX_PD_VLAN_SHIFT,4,2        ; @AQ_RX_PD_VLAN_SHIFT
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
	.no_dead_strip	_aqc111_rx_fixup
.subsections_via_symbols
