	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hip04_tx_reclaim
_hip04_tx_reclaim:                      ## @hip04_tx_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %r13d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	40(%rbx), %edi
	callq	_READ_ONCE
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_tx_count
	movl	$0, %esi
	movl	$0, %r15d
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	addl	(%rdi), %r12d
	callq	_dev_kfree_skb
	movq	8(%rbx), %rax
	movq	$0, (%rax,%r15,8)
	movl	%r13d, %edi
	callq	_TX_NEXT
	movl	%eax, %r13d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	32(%rbx), %rax
	movl	%r13d, %r15d
	cmpq	$0, (%rax,%r15,8)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax,%r15,8)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	movq	(%rax,%r15,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbx), %edi
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	16(%rbx), %rax
	movq	$0, (%rax,%r15,8)
	jmp	LBB0_8
LBB0_9:
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_10:
	movl	%r13d, (%rbx)
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_11:
	movl	%esi, %eax
	orl	%r12d, %eax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_netdev_completed_queue
LBB0_13:
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_TX_DESC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %r15d
	jae	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TX_DESC_NUM,4,2                ## @TX_DESC_NUM
	.no_dead_strip	_hip04_tx_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hip04_tx_reclaim
_hip04_tx_reclaim:                      ; @hip04_tx_reclaim
	.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
	mov	x25, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x23, x0
	ldr	w24, [x0]
	bl	_smp_rmb
	ldr	w0, [x23, #40]
	bl	_READ_ONCE
	mov	x1, x24
	bl	_tx_count
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.1:
	mov	w26, #0
	mov	w21, #0
Lloh0:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	mov	x20, x22
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	ldr	x8, [x23, #8]
	ldr	x0, [x8, x28]
	ldr	w8, [x0]
	add	w21, w21, w8
	bl	_dev_kfree_skb
	ldr	x8, [x23, #8]
	str	xzr, [x8, x28]
	mov	x0, x24
	bl	_TX_NEXT
	mov	x24, x0
	subs	w20, w20, #1
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #32]
	mov	w8, w24
	ldr	x10, [x9, w24, uxtw #3]
	cbz	x10, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w25, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x9, x8, lsl #3]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x23, #16]
	ldr	x1, [x9, x8, lsl #3]
	lsl	x28, x8, #3
	cbz	x1, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23, #24]
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x28]
	ldr	x2, [x8]
	ldr	w3, [x27]
	bl	_dma_unmap_single
	ldr	x8, [x23, #16]
	str	xzr, [x8, x28]
	b	LBB0_2
LBB0_8:
	mov	w21, #0
	mov	w20, #0
	orr	w8, w22, w21
	cbnz	w8, LBB0_11
	b	LBB0_12
LBB0_9:
	mov	x22, x26
LBB0_10:
	str	w24, [x23]
	bl	_smp_wmb
	orr	w8, w22, w21
	cbz	w8, LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_completed_queue
LBB0_12:
	mov	x0, x19
	bl	_netif_queue_stopped
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.13:
Lloh2:
	adrp	x8, _TX_DESC_NUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_DESC_NUM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w20, w8
	b.hs	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_15:
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TX_DESC_NUM,4,2                ; @TX_DESC_NUM
	.no_dead_strip	_hip04_tx_reclaim
.subsections_via_symbols
