	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_pci_free_tx_ring
__rtl_pci_free_tx_ring:                 ## @_rtl_pci_free_tx_ring
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r14
	movq	8(%rax), %rcx
	movl	%r15d, %eax
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax), %rbx
	addq	$44, %rbx
	movq	%rbx, %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdx
	addq	$16, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %r12
	leaq	32(%rax,%rcx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rdx, (%r12)
	movq	%rbx, %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	___skb_dequeue
	movq	%rax, %rbx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx)
	movq	%r15, %rax
	cmoveq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	movq	(%r12), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%r14, %r13
	movl	(%r14), %r14d
	movq	8(%rcx), %rax
	movq	(%rax), %rax
	movq	_HW_DESC_TXBUFF_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	*(%rax)
	movl	(%rbx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	(%r12), %rax
	incq	%rax
	movslq	-8(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_5
LBB0_6:
	movl	(%r14), %edi
	movq	%r14, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%r14,%rbx), %esi
	shll	$2, %esi
	movq	32(%r14,%rbx), %rdx
	movl	40(%r14,%rbx), %ecx
	callq	_pci_free_consistent
	movq	$0, 32(%r14,%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	(%r14,%rbx), %rax
	addq	$8, %rax
	movl	(%r15), %edi
	movl	(%rax), %esi
	shll	$2, %esi
	movq	16(%r14,%rbx), %rdx
	movl	24(%r14,%rbx), %ecx
	callq	_pci_free_consistent
	movq	$0, 16(%r14,%rbx)
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_DESC_TXBUFF_ADDR,4,2        ## @HW_DESC_TXBUFF_ADDR
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	__rtl_pci_free_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_pci_free_tx_ring
__rtl_pci_free_tx_ring:                 ; @_rtl_pci_free_tx_ring
	.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	x22, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x21
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x20, x0
	ldr	x9, [x0, #8]
	mov	w8, w22
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
	mov	w8, #48
	umaddl	x8, w22, w8, x9
	add	x22, x8, #44
	mov	x0, x22
	bl	_skb_queue_len
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #48
	ldp	x10, x9, [sp]                   ; 16-byte Folded Reload
	madd	x27, x10, x8, x9
	add	x28, x27, #16
	add	x26, x27, #32
	add	x25, x27, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	___skb_dequeue
	mov	x23, x0
	ldp	x8, x9, [x19]
	cmp	x8, #0
	csel	x8, x26, x28, eq
	ldr	x8, [x8]
	ldr	x10, [x27]
	add	x1, x8, x10, lsl #2
	ldr	w24, [x20]
	ldr	x8, [x9]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _HW_DESC_TXBUFF_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_DESC_TXBUFF_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x21
	mov	w2, #1
	blr	x8
	mov	x1, x0
	ldr	w2, [x23]
Lloh3:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x24
	bl	_pci_unmap_single
	mov	x0, x23
	bl	_kfree_skb
	ldr	x8, [x27]
	add	x8, x8, #1
	ldrsw	x9, [x25]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x27]
	mov	x0, x22
	bl	_skb_queue_len
	cbnz	x0, LBB0_2
LBB0_3:
	ldr	w0, [x20]
	mov	w8, #48
	ldp	x23, x22, [sp]                  ; 16-byte Folded Reload
	madd	x21, x23, x8, x22
	ldr	w8, [x21, #8]!
	lsl	w1, w8, #2
	ldr	x2, [x21, #24]
	ldr	w3, [x21, #32]
	bl	_pci_free_consistent
	str	xzr, [x21, #24]
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	ldr	w8, [x21]
	lsl	w1, w8, #2
	mov	w8, #48
	madd	x19, x23, x8, x22
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #24]
	bl	_pci_free_consistent
	str	xzr, [x19, #16]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_DESC_TXBUFF_ADDR,4,2        ; @HW_DESC_TXBUFF_ADDR
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	__rtl_pci_free_tx_ring
.subsections_via_symbols
