	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_clean_cq
_nes_clean_cq:                          ## @nes_clean_cq
	.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	%rsi, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rbx
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_NES_CQE_OPCODE_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_le32_to_cpu
	movq	_NES_CQE_VALID@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_3
## %bb.1:
	movq	_NES_CQE_COMP_COMP_CTX_LOW_IDX@GOTPCREL(%rip), %r15
	movq	_NES_CQE_COMP_COMP_CTX_HIGH_IDX@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rmb
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_le32_to_cpu
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_le32_to_cpu
	incq	%rbx
	cmpq	16(%r14), %rbx
	movl	$0, %eax
	cmovaeq	%rax, %rbx
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_NES_CQE_OPCODE_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_le32_to_cpu
	testl	%eax, (%r13)
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	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	_NES_CQE_OPCODE_IDX,8,3         ## @NES_CQE_OPCODE_IDX
	.comm	_NES_CQE_VALID,4,2              ## @NES_CQE_VALID
	.comm	_NES_CQE_COMP_COMP_CTX_LOW_IDX,8,3 ## @NES_CQE_COMP_COMP_CTX_LOW_IDX
	.comm	_NES_CQE_COMP_COMP_CTX_HIGH_IDX,8,3 ## @NES_CQE_COMP_COMP_CTX_HIGH_IDX
	.comm	_NES_SW_CONTEXT_ALIGN,4,2       ## @NES_SW_CONTEXT_ALIGN
	.no_dead_strip	_nes_clean_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_clean_cq
_nes_clean_cq:                          ; @nes_clean_cq
	.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	x0, x1
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	x20, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x20, lsl #3]
Lloh0:
	adrp	x21, _NES_CQE_OPCODE_IDX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NES_CQE_OPCODE_IDX@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_le32_to_cpu
Lloh2:
	adrp	x22, _NES_CQE_VALID@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NES_CQE_VALID@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x23, _NES_CQE_COMP_COMP_CTX_LOW_IDX@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NES_CQE_COMP_COMP_CTX_LOW_IDX@GOTPAGEOFF]
Lloh6:
	adrp	x24, _NES_CQE_COMP_COMP_CTX_HIGH_IDX@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NES_CQE_COMP_COMP_CTX_HIGH_IDX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rmb
	ldr	x8, [x19, #24]
	lsl	x25, x20, #3
	ldr	x8, [x8, x25]
	ldr	x9, [x23]
	ldr	x0, [x8, x9, lsl #3]
	bl	_le32_to_cpu
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x25]
	ldr	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	bl	_le32_to_cpu
	add	x8, x20, #1
	ldp	x9, x10, [x19, #16]
	cmp	x8, x9
	csinc	x20, xzr, x20, hs
	ldr	x8, [x10, x20, lsl #3]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_le32_to_cpu
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	x1, #0
	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
	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	_NES_CQE_OPCODE_IDX,8,3         ; @NES_CQE_OPCODE_IDX
	.comm	_NES_CQE_VALID,4,2              ; @NES_CQE_VALID
	.comm	_NES_CQE_COMP_COMP_CTX_LOW_IDX,8,3 ; @NES_CQE_COMP_COMP_CTX_LOW_IDX
	.comm	_NES_CQE_COMP_COMP_CTX_HIGH_IDX,8,3 ; @NES_CQE_COMP_COMP_CTX_HIGH_IDX
	.comm	_NES_SW_CONTEXT_ALIGN,4,2       ; @NES_SW_CONTEXT_ALIGN
	.no_dead_strip	_nes_clean_cq
.subsections_via_symbols
