	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdq_ceq_handler
_cmdq_ceq_handler:                      ## @cmdq_ceq_handler
	.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
	movl	%esi, %eax
	movq	%rdi, %r15
	movq	_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_CMDQ_CEQE_GET
	movq	8(%r15), %r13
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %r12d
	movl	(%r13,%r12,4), %edi
	movq	_WQE_SCMD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_hinic_read_wqe
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	testl	%r14d, %r14d
	je	LBB0_12
LBB0_10:
	movq	(%r15), %rax
	movq	(%rax), %rbx
	movq	_HINIC_SET_ARM_CMDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_hinic_set_arm_bit
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	(%r13,%r12,4), %r13
	movq	_ARM@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_CMDQ_WQE_HEADER
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_HINIC_SAVED_DATA_GET
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_cmdq_arm_ceq_handler
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	movq	_WQE_LCMD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_hinic_read_wqe
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_cmdq_cmd_ceq_handler
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	movq	_WQE_SCMD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_hinic_read_wqe
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE,4,2                       ## @TYPE
	.comm	_WQE_SCMD_SIZE,4,2              ## @WQE_SCMD_SIZE
	.comm	_ARM,4,2                        ## @ARM
	.comm	_WQE_LCMD_SIZE,4,2              ## @WQE_LCMD_SIZE
	.comm	_HINIC_SET_ARM_CMDQ,4,2         ## @HINIC_SET_ARM_CMDQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set arm for CMDQ\n"

	.no_dead_strip	_cmdq_ceq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdq_ceq_handler
_cmdq_ceq_handler:                      ; @cmdq_ceq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_CMDQ_CEQE_GET
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x21, x8, w0, uxtw #2
	ldr	w0, [x21]
Lloh3:
	adrp	x23, _WQE_SCMD_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WQE_SCMD_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_hinic_read_wqe
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	mov	w26, #0
LBB0_3:
	cbz	w26, LBB0_6
LBB0_4:
	ldr	x8, [x19]
	ldr	x21, [x8]
Lloh5:
	adrp	x8, _HINIC_SET_ARM_CMDQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HINIC_SET_ARM_CMDQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_hinic_set_arm_bit
	cbz	w0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_6:
	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
	add	sp, sp, #96
	ret
LBB0_7:
Lloh10:
	adrp	x24, _ARM@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ARM@GOTPAGEOFF]
Lloh12:
	adrp	x25, _WQE_LCMD_SIZE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _WQE_LCMD_SIZE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_CMDQ_WQE_HEADER
	ldr	w0, [x0]
	bl	_be32_to_cpu
	ldr	w1, [x24]
	bl	_HINIC_SAVED_DATA_GET
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_cmdq_arm_ceq_handler
	cbnz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w26, #0
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x25]
	add	x2, sp, #12
	bl	_hinic_read_wqe
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, x22
	bl	_cmdq_cmd_ceq_handler
	cbnz	x0, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w26, #1
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_hinic_read_wqe
	cbz	x0, LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE,4,2                       ; @TYPE
	.comm	_WQE_SCMD_SIZE,4,2              ; @WQE_SCMD_SIZE
	.comm	_ARM,4,2                        ; @ARM
	.comm	_WQE_LCMD_SIZE,4,2              ; @WQE_LCMD_SIZE
	.comm	_HINIC_SET_ARM_CMDQ,4,2         ; @HINIC_SET_ARM_CMDQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set arm for CMDQ\n"

	.no_dead_strip	_cmdq_ceq_handler
.subsections_via_symbols
