	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_free_cqp_request           ## -- Begin function nes_free_cqp_request
	.p2align	4, 0x90
_nes_free_cqp_request:                  ## @nes_free_cqp_request
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_NES_DBG_CQP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	16(%rsi), %rax
	movq	_NES_CQP_WQE_OPCODE_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	andl	$63, %eax
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_nes_debug
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_DBG_CQP,4,2                ## @NES_DBG_CQP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQP request %p (opcode 0x%02X) freed.\n"

	.comm	_NES_CQP_WQE_OPCODE_IDX,8,3     ## @NES_CQP_WQE_OPCODE_IDX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_free_cqp_request           ; -- Begin function nes_free_cqp_request
	.p2align	2
_nes_free_cqp_request:                  ; @nes_free_cqp_request
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NES_DBG_CQP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NES_DBG_CQP@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x8, [x1, #16]
Lloh3:
	adrp	x9, _NES_CQP_WQE_OPCODE_IDX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NES_CQP_WQE_OPCODE_IDX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	and	w3, w0, #0x3f
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_nes_debug
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x1, x19, #4
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_DBG_CQP,4,2                ; @NES_DBG_CQP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQP request %p (opcode 0x%02X) freed.\n"

	.comm	_NES_CQP_WQE_OPCODE_IDX,8,3     ; @NES_CQP_WQE_OPCODE_IDX
.subsections_via_symbols
