	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_rx_queue_free
_il3945_rx_queue_free:                  ## @il3945_rx_queue_free
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX_FREE_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	addl	%esi, %eax
	jle	LBB0_5
## %bb.1:
	movq	24(%r14), %rax
	xorl	%ebx, %ebx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	leal	(%rcx,%rsi), %edx
	movslq	%edx, %rdx
	addq	$16, %rbx
	cmpq	%rdx, %r12
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	movl	8(%rax,%rbx), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	8(%r13), %ecx
	shll	%cl, %edx
	movl	(%r15), %ecx
	callq	_pci_unmap_page
	movq	24(%r14), %rax
	movq	(%rax,%rbx), %rsi
	movq	%r13, %rdi
	callq	___il_free_pages
	movq	24(%r14), %rax
	movq	$0, (%rax,%rbx)
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_RX_FREE_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_4
LBB0_5:
	movq	(%r13), %rdi
	shll	$2, %esi
	movq	8(%r14), %rdx
	movl	20(%r14), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_free_coherent
	movq	(%r13), %rdi
	movq	(%r14), %rdx
	movl	16(%r14), %ecx
	movl	$4, %esi
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_QUEUE_SIZE,4,2              ## @RX_QUEUE_SIZE
	.comm	_RX_FREE_BUFFERS,4,2            ## @RX_FREE_BUFFERS
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_il3945_rx_queue_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_rx_queue_free
_il3945_rx_queue_free:                  ; @il3945_rx_queue_free
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _RX_QUEUE_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_QUEUE_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _RX_FREE_BUFFERS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RX_FREE_BUFFERS@GOTPAGEOFF]
	ldr	w10, [x22]
	add	w9, w10, w8
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	ldr	x9, [x19, #24]
Lloh4:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	w11, w10, w8
	add	x23, x23, #16
	cmp	x24, w11, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x23]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20]
	add	x8, x9, x23
	ldr	w1, [x8, #8]
	ldr	w8, [x25]
	ldr	w9, [x20, #8]
	lsl	w2, w8, w9
	ldr	w3, [x26]
	bl	_pci_unmap_page
	ldr	x8, [x19, #24]
	ldr	x1, [x8, x23]
	mov	x0, x20
	bl	___il_free_pages
	ldr	x9, [x19, #24]
	str	xzr, [x9, x23]
	ldr	w8, [x21]
	ldr	w10, [x22]
	b	LBB0_2
LBB0_5:
	ldr	x0, [x20]
	lsl	w1, w8, #2
	ldr	x2, [x19, #8]
	ldr	w3, [x19, #20]
	bl	_dma_free_coherent
	ldr	x0, [x20]
	ldr	x2, [x19]
	ldr	w3, [x19, #16]
	mov	w1, #4
	bl	_dma_free_coherent
	stp	xzr, xzr, [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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_QUEUE_SIZE,4,2              ; @RX_QUEUE_SIZE
	.comm	_RX_FREE_BUFFERS,4,2            ; @RX_FREE_BUFFERS
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_il3945_rx_queue_free
.subsections_via_symbols
