	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_pci_free_rx_ring
__rtl_pci_free_rx_ring:                 ## @_rtl_pci_free_rx_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r15
	movl	(%rax), %esi
	movslq	%r12d, %r12
	testl	%esi, %esi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	shlq	$5, %r12
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%esi, %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	24(%rax,%r12), %rax
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edi
	movl	20(%r15), %edx
	movl	(%r14), %ecx
	callq	_pci_unmap_single
	movq	%r13, %rdi
	callq	_kfree_skb
	movl	(%r15), %esi
	jmp	LBB0_4
LBB0_5:
	shll	$2, %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	movl	16(%r15), %edi
	movq	8(%r15), %rax
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	shlq	$5, %rbx
	movq	16(%rax,%rbx), %rdx
	movl	8(%rax,%rbx), %ecx
	callq	_pci_free_consistent
	movq	8(%r15), %rax
	addq	%rax, %rbx
	addq	$16, %rbx
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	shlq	$5, %rbx
	movq	(%rax,%rbx), %rdx
	movl	8(%rax,%rbx), %ecx
	callq	_pci_free_consistent
	addq	8(%r15), %rbx
LBB0_8:
	movq	$0, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	__rtl_pci_free_rx_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_rx_ring
__rtl_pci_free_rx_ring:                 ; @_rtl_pci_free_rx_ring
	.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	x20, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	x9, x20
	sxtw	x24, w9
Lloh0:
	adrp	x25, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x9, x9, x24, lsl #5
	ldr	x9, [x9, #24]
	ldr	x22, [x9, x23, lsl #3]
	cbz	x22, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8]
	ldp	w0, w2, [x19, #16]
	ldr	w3, [x25]
	bl	_pci_unmap_single
	mov	x0, x22
	bl	_kfree_skb
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	ldr	x10, [x21]
	ldr	w0, [x19, #16]
	lsl	w1, w8, #2
	sxtw	x9, w20
	ldr	x8, [x19, #8]
	lsl	x20, x9, #5
	add	x8, x8, x20
	cbz	x10, LBB0_7
; %bb.6:
	ldr	x2, [x8, #16]
	ldr	w3, [x8, #8]
	bl	_pci_free_consistent
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	add	x8, x8, #16
	b	LBB0_8
LBB0_7:
	ldr	x2, [x8]
	ldr	w3, [x8, #8]
	bl	_pci_free_consistent
	ldr	x8, [x19, #8]
	add	x8, x8, x20
LBB0_8:
	str	xzr, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	__rtl_pci_free_rx_ring
.subsections_via_symbols
