	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdq_set_arm_bit
_cmdq_set_arm_bit:                      ## @cmdq_set_arm_bit
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_WQE_SCMD_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-88(%rbp), %rdx
	movq	%r13, %rdi
	callq	_hinic_get_wqe
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_5
LBB0_2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_ALIGN
	cltd
	idivl	(%r13)
	movq	-88(%rbp), %r10
	movslq	%eax, %r12
	addq	%r10, %r12
	movq	%r12, %rax
	subq	8(%r13), %rax
	jl	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	cmpl	$0, (%r14)
	sete	%cl
	movl	%ecx, (%r14)
	movq	%rax, %r12
LBB0_4:
	movq	_CMDQ_CMD_SYNC_DIRECT_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HINIC_CMD_ACK_TYPE_CMDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_HINIC_MOD_COMM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_CMDQ_SET_ARM_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r10
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	callq	_cmdq_set_direct_wqe
	addq	$32, %rsp
	movq	_WQE_SCMD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hinic_cpu_to_be32
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_cmdq_wqe_fill
	movq	_HINIC_CMDQ_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_cmdq_set_db
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
LBB0_5:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WQE_SCMD_SIZE,4,2              ## @WQE_SCMD_SIZE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMDQ_CMD_SYNC_DIRECT_RESP,4,2  ## @CMDQ_CMD_SYNC_DIRECT_RESP
	.comm	_HINIC_CMD_ACK_TYPE_CMDQ,4,2    ## @HINIC_CMD_ACK_TYPE_CMDQ
	.comm	_HINIC_MOD_COMM,4,2             ## @HINIC_MOD_COMM
	.comm	_CMDQ_SET_ARM_CMD,4,2           ## @CMDQ_SET_ARM_CMD
	.comm	_HINIC_CMDQ_SYNC,4,2            ## @HINIC_CMDQ_SYNC
	.no_dead_strip	_cmdq_set_arm_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdq_set_arm_bit
_cmdq_set_arm_bit:                      ; @cmdq_set_arm_bit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x26, [x0, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x27, _WQE_SCMD_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _WQE_SCMD_SIZE@GOTPAGEOFF]
	ldr	w1, [x27]
	add	x2, sp, #16
	mov	x0, x26
	bl	_hinic_get_wqe
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_unlock
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	ldr	w25, [x20]
	ldr	w0, [x27]
	ldr	w1, [x26]
	bl	_ALIGN
	ldr	w8, [x26]
	sdiv	w9, w0, w8
	ldr	x8, [sp, #16]
	add	x24, x8, w9, sxtw
	ldr	x9, [x26, #8]
	subs	x9, x24, x9
	b.lt	LBB0_4
; %bb.3:
	ldr	w10, [x20]
	cmp	w10, #0
	cset	w10, eq
	str	w10, [x20]
	mov	x24, x9
LBB0_4:
Lloh5:
	adrp	x9, _CMDQ_CMD_SYNC_DIRECT_RESP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CMDQ_CMD_SYNC_DIRECT_RESP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
Lloh8:
	adrp	x9, _HINIC_CMD_ACK_TYPE_CMDQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HINIC_CMD_ACK_TYPE_CMDQ@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x9]
Lloh11:
	adrp	x9, _HINIC_MOD_COMM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HINIC_MOD_COMM@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x9]
Lloh14:
	adrp	x9, _CMDQ_SET_ARM_CMD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CMDQ_SET_ARM_CMD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	x8, [sp, #8]
	str	w9, [sp]
	add	x0, sp, #24
	mov	x2, x22
	mov	x3, x21
	mov	x4, #0
	mov	x5, x25
	bl	_cmdq_set_direct_wqe
	ldr	w1, [x27]
	add	x0, sp, #24
	bl	_hinic_cpu_to_be32
	add	x1, sp, #24
	mov	x0, x23
	bl	_cmdq_wqe_fill
Lloh17:
	adrp	x8, _HINIC_CMDQ_SYNC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HINIC_CMDQ_SYNC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x24
	bl	_cmdq_set_db
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WQE_SCMD_SIZE,4,2              ; @WQE_SCMD_SIZE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMDQ_CMD_SYNC_DIRECT_RESP,4,2  ; @CMDQ_CMD_SYNC_DIRECT_RESP
	.comm	_HINIC_CMD_ACK_TYPE_CMDQ,4,2    ; @HINIC_CMD_ACK_TYPE_CMDQ
	.comm	_HINIC_MOD_COMM,4,2             ; @HINIC_MOD_COMM
	.comm	_CMDQ_SET_ARM_CMD,4,2           ; @CMDQ_SET_ARM_CMD
	.comm	_HINIC_CMDQ_SYNC,4,2            ; @HINIC_CMDQ_SYNC
	.no_dead_strip	_cmdq_set_arm_bit
.subsections_via_symbols
