	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_rx_queue_reset          ## -- Begin function il4965_rx_queue_reset
	.p2align	4, 0x90
_il4965_rx_queue_reset:                 ## @il4965_rx_queue_reset
	.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, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	leaq	64(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%rbx), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	_RX_FREE_BUFFERS@GOTPCREL(%rip), %rcx
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jle	LBB0_5
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	incq	%r13
	movq	_RX_FREE_BUFFERS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %rcx
	addq	$24, %r12
	cmpq	%rcx, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%rbx), %rdi
	cmpq	$0, 8(%rdi,%r12)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %eax
	movl	16(%rdi,%r12), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzbl	(%r14), %ecx
	shll	%cl, %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_pci_unmap_page
	movq	56(%rbx), %rax
	movq	8(%rax,%r12), %rsi
	movq	%r14, %rdi
	callq	___il_free_pages
	movq	56(%rbx), %rdi
	movq	$0, 8(%rdi,%r12)
	jmp	LBB0_4
LBB0_5:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.6:
	movl	%eax, %edx
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_8:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rsi
	movq	$0, (%rsi,%rcx,8)
	movq	40(%rbx), %rsi
	movq	$0, 8(%rsi,%rcx,8)
	movq	40(%rbx), %rsi
	movq	$0, 16(%rsi,%rcx,8)
	movq	40(%rbx), %rsi
	movq	$0, 24(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_9
LBB0_10:
	testq	%rax, %rax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rdx
	movq	$0, (%rdx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_11
LBB0_12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_FREE_BUFFERS,4,2            ## @RX_FREE_BUFFERS
	.comm	_RX_QUEUE_SIZE,4,2              ## @RX_QUEUE_SIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_rx_queue_reset          ; -- Begin function il4965_rx_queue_reset
	.p2align	2
_il4965_rx_queue_reset:                 ; @il4965_rx_queue_reset
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_spin_lock_irqsave
	add	x0, x19, #64
	bl	_INIT_LIST_HEAD
	add	x21, x19, #48
	mov	x0, x21
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x22, _RX_FREE_BUFFERS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RX_FREE_BUFFERS@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	adrp	x23, _RX_QUEUE_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RX_QUEUE_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w9, w8, w9
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x25, #0
Lloh4:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, x24
	mov	x1, x21
	bl	_list_add_tail
	add	x25, x25, #1
	ldrsw	x9, [x22]
	ldrsw	x8, [x23]
	add	x24, x24, #24
	add	x9, x8, x9
	cmp	x25, x9
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x9, x8, x24
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x9, #16]
	ldr	w8, [x26]
	ldp	w9, w0, [x20]
	lsl	w2, w8, w9
	ldr	w3, [x27]
	bl	_pci_unmap_page
	ldr	x8, [x19, #56]
	add	x8, x8, x24
	ldr	x1, [x8, #8]
	mov	x0, x20
	bl	___il_free_pages
	ldr	x8, [x19, #56]
	add	x9, x8, x24
	str	xzr, [x9, #8]
	b	LBB0_2
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x9, #0
	mov	w8, w8
	lsl	x8, x8, #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #40]
	str	xzr, [x10, x9]
	add	x9, x9, #8
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_8:
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #8]
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_FREE_BUFFERS,4,2            ; @RX_FREE_BUFFERS
	.comm	_RX_QUEUE_SIZE,4,2              ; @RX_QUEUE_SIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
.subsections_via_symbols
