	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8180_free_tx_ring
_rtl8180_free_tx_ring:                  ## @rtl8180_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movl	%esi, %ecx
	shlq	$5, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %rbx
	addq	$28, %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, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	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	-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	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	(%r12), %r13
	movq	%rbx, %rdi
	callq	___skb_dequeue
	movq	%rax, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	movl	(%r14,%r13,4), %edi
	callq	_le32_to_cpu
	movl	(%rbx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	(%r12), %rax
	incq	%rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movslq	-8(%rcx), %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:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%r14,%rbx), %esi
	shll	$2, %esi
	movq	16(%r14,%rbx), %rdx
	movl	24(%r14,%rbx), %ecx
	callq	_pci_free_consistent
	movq	$0, 16(%r14,%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_rtl8180_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 rtl8180_free_tx_ring
_rtl8180_free_tx_ring:                  ; @rtl8180_free_tx_ring
	.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
	ldr	x23, [x0]
	ldr	x8, [x23, #8]
	mov	w9, w1
	add	x22, x8, x9, lsl #5
	add	x19, x22, #28
	mov	x0, x19
	bl	_skb_queue_len
	cbz	x0, LBB0_3
; %bb.1:
	add	x24, x22, #16
	add	x25, x22, #8
Lloh0:
	adrp	x26, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PCI_DMA_TODEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x24]
	ldr	x28, [x22]
	mov	x0, x19
	bl	___skb_dequeue
	mov	x20, x0
	ldr	w21, [x23]
	ldr	w0, [x27, x28, lsl #2]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	w2, [x20]
	ldr	w3, [x26]
	mov	x0, x21
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_kfree_skb
	ldr	x8, [x22]
	add	x8, x8, #1
	ldrsw	x9, [x25]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x22]
	mov	x0, x19
	bl	_skb_queue_len
	cbnz	x0, LBB0_2
LBB0_3:
	ldr	w0, [x23]
	ldr	w8, [x22, #8]
	lsl	w1, w8, #2
	ldr	x2, [x22, #16]
	ldr	w3, [x22, #24]
	bl	_pci_free_consistent
	str	xzr, [x22, #16]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_rtl8180_free_tx_ring
.subsections_via_symbols
