	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdq_task_remove_wfe
_cmdq_task_remove_wfe:                  ## @cmdq_task_remove_wfe
	.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	%rdi, %r13
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movl	8(%rdi), %esi
	movl	8(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_dma_sync_single_for_cpu
	movq	(%r13), %rdi
	callq	_CMDQ_NUM_CMD
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	callq	_cmdq_command_is_wfe
	incq	%rbx
	movq	(%r13), %rdi
	callq	_CMDQ_NUM_CMD
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	8(%r13), %esi
	movq	(%r13), %rax
	movl	8(%rax), %edx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_sync_single_for_device     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_CMDQ_JUMP_BY_OFFSET,8,3        ## @CMDQ_JUMP_BY_OFFSET
	.comm	_CMDQ_JUMP_PASS,4,2             ## @CMDQ_JUMP_PASS
	.no_dead_strip	_cmdq_task_remove_wfe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdq_task_remove_wfe
_cmdq_task_remove_wfe:                  ; @cmdq_task_remove_wfe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	w1, [x0, #8]
	ldr	w2, [x8, #8]
Lloh0:
	adrp	x21, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_dma_sync_single_for_cpu
	ldr	x0, [x20]
	bl	_CMDQ_NUM_CMD
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, x23, lsl #2]
	bl	_cmdq_command_is_wfe
	add	x23, x23, #1
	ldr	x0, [x20]
	bl	_CMDQ_NUM_CMD
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	w1, [x20, #8]
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	ldr	w3, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dma_sync_single_for_device
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_CMDQ_JUMP_BY_OFFSET,8,3        ; @CMDQ_JUMP_BY_OFFSET
	.comm	_CMDQ_JUMP_PASS,4,2             ; @CMDQ_JUMP_PASS
	.no_dead_strip	_cmdq_task_remove_wfe
.subsections_via_symbols
