	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_xmit_reclaim
_hix5hd2_xmit_reclaim:                  ## @hix5hd2_xmit_reclaim
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_netif_tx_lock
	movq	_TX_RQ_RD_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, %edi
	callq	_dma_cnt
	movq	%rax, %r13
	movq	_TX_RQ_WR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, %edi
	callq	_dma_cnt
	movq	_TX_DESC_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_CIRC_CNT
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12,%r13,4), %edi
	callq	_le32_to_cpu
	movl	24(%r15), %edi
	movq	(%r14), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_dma_unmap_single
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%r15), %rax
	movq	$0, (%rax,%r13,8)
	movq	%r14, %rdi
	callq	_dev_consume_skb_any
	movq	_TX_DESC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dma_ring_incr
	movq	%rax, %r13
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%r13,8), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addl	(%r14), %r12d
	movq	%r12, %rbx
	movq	32(%r15), %r12
	movq	%r14, %rdi
	callq	_skb_shinfo
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_hix5hd2_clean_sg_desc
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_11
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netdev_err
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_11:
	movq	%r13, %rdi
	callq	_dma_byte
	movq	_TX_RQ_RD_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%r15), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
LBB0_12:
	movq	%r14, %rdi
	callq	_netif_tx_unlock
	movl	%ebx, %eax
	orl	%r12d, %eax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_netdev_completed_queue
LBB0_14:
	movl	(%r15), %edi
	callq	_netif_queue_stopped
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.17:
	movl	(%r15), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RQ_RD_ADDR,8,3              ## @TX_RQ_RD_ADDR
	.comm	_TX_RQ_WR_ADDR,8,3              ## @TX_RQ_WR_ADDR
	.comm	_TX_DESC_NUM,4,2                ## @TX_DESC_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inconsistent tx_skb\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_hix5hd2_xmit_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_xmit_reclaim
_hix5hd2_xmit_reclaim:                  ; @hix5hd2_xmit_reclaim
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_tx_lock
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _TX_RQ_RD_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_RQ_RD_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	bl	_dma_cnt
	mov	x24, x0
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _TX_RQ_WR_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_RQ_WR_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	bl	_dma_cnt
Lloh6:
	adrp	x28, _TX_DESC_NUM@GOTPAGE
Lloh7:
	ldr	x28, [x28, _TX_DESC_NUM@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x1, x24
	bl	_CIRC_CNT
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x25, x0
	mov	w22, #0
	mov	x21, #0
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, x24, lsl #2]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	w0, [x19, #24]
	ldr	x2, [x26]
Lloh8:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	bl	_dma_unmap_single
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	add	w22, w22, w27
	ldr	x8, [x19, #16]
	str	xzr, [x8, x24, lsl #3]
	mov	x0, x26
	bl	_dev_consume_skb_any
	ldr	w1, [x28]
	mov	x0, x24
	bl	_dma_ring_incr
	mov	x24, x0
	cmp	x25, x21
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x26, [x8, x24, lsl #3]
	cmp	x26, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w27, [x26]
	ldr	x23, [x19, #32]
	mov	x0, x26
	bl	_skb_shinfo
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x24
	bl	_hix5hd2_clean_sg_desc
	b	LBB0_3
LBB0_7:
	mov	w22, #0
	mov	w21, #0
	b	LBB0_12
LBB0_8:
	mov	x21, x25
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_10:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x24, x8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x24
	bl	_dma_byte
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _TX_RQ_RD_ADDR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TX_RQ_RD_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_12:
	mov	x0, x20
	bl	_netif_tx_unlock
	orr	w8, w21, w22
	cbz	w8, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_netdev_completed_queue
LBB0_14:
	ldr	w0, [x19]
	bl	_netif_queue_stopped
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.15:
	cbz	w21, LBB0_17
; %bb.16:
	ldr	w0, [x19]
	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	_netif_wake_queue
LBB0_17:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RQ_RD_ADDR,8,3              ; @TX_RQ_RD_ADDR
	.comm	_TX_RQ_WR_ADDR,8,3              ; @TX_RQ_WR_ADDR
	.comm	_TX_DESC_NUM,4,2                ; @TX_DESC_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inconsistent tx_skb\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_hix5hd2_xmit_reclaim
.subsections_via_symbols
