	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_free_tx_ring_info
_niu_free_tx_ring_info:                 ## @niu_free_tx_ring_info
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	56(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movl	(%r14), %edi
	movl	64(%r15), %ecx
	movl	$4, %esi
	callq	*(%rax)
	movq	$0, 56(%r15)
LBB0_2:
	movq	32(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.3:
	movq	_MAX_TX_RING_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%esi, %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_release_tx_packet
	movl	(%r12), %esi
	jmp	LBB0_7
LBB0_8:
	movq	32(%r15), %rdx
LBB0_9:
	movq	8(%r14), %rax
	movl	(%r14), %edi
	shll	$2, %esi
	movl	40(%r15), %ecx
	callq	*(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movups	%xmm0, 16(%r15)
	movq	$0, 32(%r15)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TX_RING_SIZE,4,2           ## @MAX_TX_RING_SIZE
	.no_dead_strip	_niu_free_tx_ring_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_free_tx_ring_info
_niu_free_tx_ring_info:                 ; @niu_free_tx_ring_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x2, [x1, #56]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x20]
	ldr	w3, [x19, #64]
	mov	w1, #4
	blr	x8
	str	xzr, [x19, #56]
LBB0_2:
	ldr	x2, [x19, #32]
	cbz	x2, LBB0_10
; %bb.3:
Lloh0:
	adrp	x22, _MAX_TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	ldr	x9, [x9, x21, lsl #3]
	cbz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_release_tx_packet
	ldr	w8, [x22]
	b	LBB0_5
LBB0_8:
	ldr	x2, [x19, #32]
LBB0_9:
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
	ldr	w0, [x20]
	lsl	w1, w8, #2
	ldr	w3, [x19, #40]
	blr	x9
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
	str	xzr, [x19, #32]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TX_RING_SIZE,4,2           ; @MAX_TX_RING_SIZE
	.no_dead_strip	_niu_free_tx_ring_info
.subsections_via_symbols
