	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_ring_tx_init
_ag71xx_ring_tx_init:                   ## @ag71xx_ring_tx_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movl	40(%rdi), %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	40(%r12), %edi
	callq	_BIT
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	decl	%r15d
	movl	%ebx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ag71xx_ring_desc
	movq	_AG71XX_DESC_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	1(%rbx), %rdx
	movl	%r15d, %esi
	andl	%edx, %esi
	movslq	%esi, %rsi
	imulq	%rcx, %rsi
	addq	32(%r12), %rsi
	movq	%rsi, 8(%rax)
	movq	_DESC_EMPTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	24(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	%rdx, %rbx
	cmpq	%rdx, %r13
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_wmb
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movl	(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_reset_queue             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AG71XX_DESC_SIZE,4,2           ## @AG71XX_DESC_SIZE
	.comm	_DESC_EMPTY,4,2                 ## @DESC_EMPTY
	.no_dead_strip	_ag71xx_ring_tx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_ring_tx_init
_ag71xx_ring_tx_init:                   ; @ag71xx_ring_tx_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	add	x20, x0, #8
	ldr	w0, [x0, #40]
	bl	_BIT
	mov	x22, x0
	ldr	w0, [x19, #40]
	bl	_BIT
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	sub	w23, w0, #1
Lloh0:
	adrp	x24, _AG71XX_DESC_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AG71XX_DESC_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _DESC_EMPTY@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DESC_EMPTY@GOTPAGEOFF]
	mov	w22, w22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ag71xx_ring_desc
	ldrsw	x8, [x24]
	ldp	x10, x9, [x19, #24]
	str	xzr, [x10, x21, lsl #3]
	add	x10, x21, #1
	and	w11, w23, w10
	sxtw	x11, w11
	madd	x8, x8, x11, x9
	str	x8, [x0, #8]
	ldr	w8, [x25]
	str	w8, [x0]
	mov	x21, x10
	cmp	x22, x10
	b.ne	LBB0_2
LBB0_3:
	bl	_wmb
	stp	xzr, xzr, [x20]
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netdev_reset_queue
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AG71XX_DESC_SIZE,4,2           ; @AG71XX_DESC_SIZE
	.comm	_DESC_EMPTY,4,2                 ; @DESC_EMPTY
	.no_dead_strip	_ag71xx_ring_tx_init
.subsections_via_symbols
