	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_rx
_hix5hd2_rx:                            ## @hix5hd2_rx
	.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
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_RX_BQ_RD_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movl	%eax, %edi
	callq	_dma_cnt
	movl	%eax, %r12d
	movq	_RX_BQ_WR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movl	%eax, %edi
	callq	_dma_cnt
	movq	_RX_DESC_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_CIRC_CNT
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	xorl	%eax, %eax
	callq	_rmb
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.1:
	movq	%r14, %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%r14, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_eth_type_trans
	movl	%eax, 8(%r14)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_napi_gro_receive
	incl	4(%rbx)
	movl	(%r14), %eax
	addl	%eax, (%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_RX_DESC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_ring_incr
	movl	%eax, %r12d
	decl	%ebx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movslq	%r12d, %r13
	movq	(%rax,%r13,8), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	24(%r15), %rax
	movq	$0, (%rax,%r13,8)
	movq	16(%r15), %rbx
	movl	4(%rbx,%r13,8), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movq	_DESC_DATA_LEN_OFF@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %r12d
	movq	_DESC_DATA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	(%rbx,%r13,8), %edi
	callq	_le32_to_cpu
	movl	12(%r15), %edi
	movq	_MAC_MAX_FRAME_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_dma_unmap_single
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_skb_put
	movq	(%r14), %rdx
	cmpq	(%rbx), %rdx
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	incl	12(%rbx)
	incl	8(%rbx)
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_8:
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	movq	%r15, %r14
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movq	_RX_BQ_RD_ADDR@GOTPCREL(%rip), %r15
	je	LBB0_10
## %bb.9:
	movl	%r12d, %edi
	callq	_dma_byte
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
LBB0_10:
	movq	%r14, %rdi
	callq	_hix5hd2_rx_refill
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_BQ_RD_ADDR,8,3              ## @RX_BQ_RD_ADDR
	.comm	_RX_BQ_WR_ADDR,8,3              ## @RX_BQ_WR_ADDR
	.comm	_RX_DESC_NUM,4,2                ## @RX_DESC_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inconsistent rx_skb\n"

	.comm	_DESC_DATA_LEN_OFF,4,2          ## @DESC_DATA_LEN_OFF
	.comm	_DESC_DATA_MASK,4,2             ## @DESC_DATA_MASK
	.comm	_MAC_MAX_FRAME_SIZE,8,3         ## @MAC_MAX_FRAME_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"rcv len err, len = %d\n"

	.no_dead_strip	_hix5hd2_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_rx
_hix5hd2_rx:                            ; @hix5hd2_rx
	.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	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RX_BQ_RD_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RX_BQ_RD_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	bl	_dma_cnt
	mov	x23, x0
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _RX_BQ_WR_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RX_BQ_WR_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	bl	_dma_cnt
Lloh6:
	adrp	x8, _RX_DESC_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_DESC_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_CIRC_CNT
	cmp	w0, w22
	csel	w21, w0, w22, lt
	bl	_rmb
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.1:
Lloh9:
	adrp	x24, _MAC_MAX_FRAME_SIZE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MAC_MAX_FRAME_SIZE@GOTPAGEOFF]
	add	x25, x19, #8
Lloh11:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
	stp	w21, w23, [sp, #8]              ; 8-byte Folded Spill
                                        ; kill: def $w23 killed $w23 def $x23
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x26, #8]
	mov	x0, x25
	mov	x1, x26
	bl	_napi_gro_receive
	ldr	d0, [x20]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x26]
	add.2s	v0, v0, v1
	str	d0, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _RX_DESC_NUM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RX_DESC_NUM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_dma_ring_incr
	mov	x23, x0
	subs	w21, w21, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x26, [x8, w23, sxtw #3]
	cmp	x26, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w23
	ldr	x9, [x19, #24]
	lsl	x8, x8, #3
	str	xzr, [x9, x8]
	ldr	x9, [x19, #16]
	add	x22, x9, x8
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
Lloh16:
	adrp	x8, _DESC_DATA_LEN_OFF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DESC_DATA_LEN_OFF@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh19:
	adrp	x9, _DESC_DATA_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DESC_DATA_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	and	w27, w8, w9
	ldr	w0, [x22]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	w0, [x19, #12]
	ldr	x2, [x24]
	ldr	w3, [x28]
	bl	_dma_unmap_single
	mov	x0, x26
	mov	x1, x27
	bl	_skb_put
	ldr	x8, [x26]
	ldr	x9, [x24]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [sp]
	mov	x0, x20
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	ldr	d0, [x20, #8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x20, #8]
	mov	x0, x26
	bl	_dev_kfree_skb_any
	b	LBB0_3
LBB0_7:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_8:
	ldp	w21, w8, [sp, #8]               ; 8-byte Folded Reload
	cmp	w23, w8
Lloh26:
	adrp	x20, _RX_BQ_RD_ADDR@GOTPAGE
Lloh27:
	ldr	x20, [x20, _RX_BQ_RD_ADDR@GOTPAGEOFF]
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x23
	bl	_dma_byte
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_10:
	mov	x0, x19
	bl	_hix5hd2_rx_refill
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_BQ_RD_ADDR,8,3              ; @RX_BQ_RD_ADDR
	.comm	_RX_BQ_WR_ADDR,8,3              ; @RX_BQ_WR_ADDR
	.comm	_RX_DESC_NUM,4,2                ; @RX_DESC_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inconsistent rx_skb\n"

	.comm	_DESC_DATA_LEN_OFF,4,2          ; @DESC_DATA_LEN_OFF
	.comm	_DESC_DATA_MASK,4,2             ; @DESC_DATA_MASK
	.comm	_MAC_MAX_FRAME_SIZE,8,3         ; @MAC_MAX_FRAME_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"rcv len err, len = %d\n"

	.no_dead_strip	_hix5hd2_rx
.subsections_via_symbols
