	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_rx_refill
_hix5hd2_rx_refill:                     ## @hix5hd2_rx_refill
	.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
	movq	%rdi, %rbx
	movq	_MAC_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_RX_FQ_WR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movl	%eax, %edi
	callq	_dma_cnt
	movq	%rax, %r13
	movq	_RX_FQ_RD_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %r12
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movl	%eax, %edi
	callq	_dma_cnt
	movq	_RX_DESC_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_CIRC_SPACE
	testq	%rax, %rax
	jle	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	decq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	cmpq	$0, (%rax,%r13,8)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%r12), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movl	24(%r12), %edi
	movl	(%r14), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_map_single
	movq	%rax, %r15
	movl	24(%r12), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	movq	16(%r12), %r12
	movq	%r15, %rdi
	callq	_cpu_to_le32
	movq	%rbx, %r15
	movq	%r13, %rbx
	shlq	$4, %rbx
	movq	%rax, 8(%r12,%rbx)
	movq	8(%r15), %rax
	movq	%r14, (%rax,%r13,8)
	movq	_DESC_BUFF_LEN_OFF@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	shlq	%cl, %rdi
	movq	_DESC_VLD_FREE@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	callq	_cpu_to_le32
	movq	%rax, (%r12,%rbx)
	movq	%r15, %r12
	movq	_RX_DESC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dma_ring_incr
	movq	%rax, %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	decq	%rbx
	jne	LBB0_2
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
LBB0_7:
	xorl	%eax, %eax
	callq	_wmb
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r13, %rdi
	callq	_dma_byte
	movq	_RX_FQ_WR_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_MAX_FRAME_SIZE,8,3         ## @MAC_MAX_FRAME_SIZE
	.comm	_RX_FQ_WR_ADDR,8,3              ## @RX_FQ_WR_ADDR
	.comm	_RX_FQ_RD_ADDR,8,3              ## @RX_FQ_RD_ADDR
	.comm	_RX_DESC_NUM,4,2                ## @RX_DESC_NUM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DESC_VLD_FREE,8,3              ## @DESC_VLD_FREE
	.comm	_DESC_BUFF_LEN_OFF,8,3          ## @DESC_BUFF_LEN_OFF
	.no_dead_strip	_hix5hd2_rx_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_rx_refill
_hix5hd2_rx_refill:                     ; @hix5hd2_rx_refill
	.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, x0
Lloh0:
	adrp	x8, _MAC_MAX_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _RX_FQ_WR_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RX_FQ_WR_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	bl	_dma_cnt
	mov	x22, x0
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _RX_FQ_RD_ADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RX_FQ_RD_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	bl	_dma_cnt
	mov	x1, x0
Lloh9:
	adrp	x27, _RX_DESC_NUM@GOTPAGE
Lloh10:
	ldr	x27, [x27, _RX_DESC_NUM@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x22
	bl	_CIRC_SPACE
	cmp	x0, #0
	b.le	LBB0_6
; %bb.1:
	mov	x23, x0
	sub	x26, x21, #1
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
Lloh11:
	adrp	x20, _DESC_BUFF_LEN_OFF@GOTPAGE
Lloh12:
	ldr	x20, [x20, _DESC_BUFF_LEN_OFF@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x22, lsl #3]
	cbnz	x8, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #28]
	mov	x1, x21
	bl	_netdev_alloc_skb_ip_align
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #24]
	ldr	w1, [x24]
Lloh13:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x2, x21
	bl	_dma_map_single
	mov	x25, x0
	ldr	w0, [x19, #24]
	mov	x1, x25
	bl	_dma_mapping_error
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x28, [x19, #16]
	mov	x0, x25
	bl	_cpu_to_le32
	add	x25, x28, x22, lsl #4
	str	x0, [x25, #8]
	ldr	x8, [x19, #8]
	str	x24, [x8, x22, lsl #3]
Lloh16:
	adrp	x8, _DESC_VLD_FREE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DESC_VLD_FREE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x20]
	lsl	x9, x26, x9
	orr	x0, x9, x8
	bl	_cpu_to_le32
	str	x0, [x25]
	ldr	w1, [x27]
	mov	x0, x22
	bl	_dma_ring_incr
	mov	x22, x0
	subs	x23, x23, #1
	b.ne	LBB0_2
	b	LBB0_8
LBB0_6:
	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
	b	_wmb
LBB0_7:
	mov	x0, x24
	bl	_dev_kfree_skb_any
LBB0_8:
	bl	_wmb
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x22, x8
	b.ne	LBB0_10
; %bb.9:
	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_10:
	mov	x0, x22
	bl	_dma_byte
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _RX_FQ_WR_ADDR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RX_FQ_WR_ADDR@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	b	_writel_relaxed
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_MAX_FRAME_SIZE,8,3         ; @MAC_MAX_FRAME_SIZE
	.comm	_RX_FQ_WR_ADDR,8,3              ; @RX_FQ_WR_ADDR
	.comm	_RX_FQ_RD_ADDR,8,3              ; @RX_FQ_RD_ADDR
	.comm	_RX_DESC_NUM,4,2                ; @RX_DESC_NUM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DESC_VLD_FREE,8,3              ; @DESC_VLD_FREE
	.comm	_DESC_BUFF_LEN_OFF,8,3          ; @DESC_BUFF_LEN_OFF
	.no_dead_strip	_hix5hd2_rx_refill
.subsections_via_symbols
