	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdq_prepare_wqe_ctrl
_cmdq_prepare_wqe_ctrl:                 ## @cmdq_prepare_wqe_ctrl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	24(%rbp), %edx
	movq	_DATA_SGE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	16(%r14), %r13
	movq	$0, 24(%r14)
	movq	_CTRL_SECT_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	$0, 8(%r14)
	movq	_CTRL_DIRECT_SECT_LEN@GOTPCREL(%rip), %rax
	movq	%r14, %r13
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_PI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r9d, %edi
	callq	_HINIC_CMDQ_CTRL_SET
	movl	%eax, %ebx
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_HINIC_CMDQ_CTRL_SET
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_MOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_HINIC_CMDQ_CTRL_SET
	movl	%eax, %ebx
	movq	_ACK_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_CMDQ_CTRL_SET
	orl	%ebx, %eax
	orl	%r15d, %eax
	movl	%eax, (%r13)
	movq	_BUFDESC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbp), %edi
	callq	_HINIC_CMDQ_WQE_HEADER_SET
	movl	%eax, %ebx
	movq	_COMPLETE_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbp), %edi
	callq	_HINIC_CMDQ_WQE_HEADER_SET
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_DATA_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbp), %edi
	callq	_HINIC_CMDQ_WQE_HEADER_SET
	movl	%eax, %r12d
	movq	_CEQ_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_COMPLETE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_CMDQ_WQE_HEADER_SET
	movl	%eax, %r13d
	orl	%r12d, %r13d
	orl	%r15d, %r13d
	movq	_COMPLETE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_COMPLETE_SECT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_CMDQ_WQE_HEADER_SET
	movl	%eax, %r15d
	movq	_CTRL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_CMDQ_WQE_HEADER_SET
	movl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_TOGGLED_WRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_CMDQ_WQE_HEADER_SET
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r13d, %ebx
	movq	%r14, %rdi
	callq	_CMDQ_WQE_HEADER
	movl	%ebx, (%rax)
	movq	%r14, %rdi
	callq	_CMDQ_WQE_HEADER
	movl	4(%rax), %edi
	movq	_ARM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_HINIC_SAVED_DATA_CLEAR
	movl	%eax, %ebx
	movq	_CMDQ_SET_ARM_CMD@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_HINIC_MOD_COMM@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	movl	$1, %edi
	callq	_HINIC_SAVED_DATA_SET
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_CMDQ_WQE_HEADER
	orl	%ebx, 4(%rax)
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_CMDQ_WQE_HEADER
	movl	%ebx, 4(%rax)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_SGE,4,2                   ## @DATA_SGE
	.comm	_CTRL_SECT_LEN,4,2              ## @CTRL_SECT_LEN
	.comm	_CTRL_DIRECT_SECT_LEN,4,2       ## @CTRL_DIRECT_SECT_LEN
	.comm	_PI,4,2                         ## @PI
	.comm	_CMD,4,2                        ## @CMD
	.comm	_MOD,4,2                        ## @MOD
	.comm	_ACK_TYPE,4,2                   ## @ACK_TYPE
	.comm	_BUFDESC_LEN,4,2                ## @BUFDESC_LEN
	.comm	_COMPLETE_FMT,4,2               ## @COMPLETE_FMT
	.comm	_DATA_FMT,4,2                   ## @DATA_FMT
	.comm	_CEQ_SET,4,2                    ## @CEQ_SET
	.comm	_COMPLETE_REQ,4,2               ## @COMPLETE_REQ
	.comm	_COMPLETE_LEN,4,2               ## @COMPLETE_LEN
	.comm	_COMPLETE_SECT_LEN,4,2          ## @COMPLETE_SECT_LEN
	.comm	_CTRL_LEN,4,2                   ## @CTRL_LEN
	.comm	_TOGGLED_WRAPPED,4,2            ## @TOGGLED_WRAPPED
	.comm	_ARM,4,2                        ## @ARM
	.comm	_CMDQ_SET_ARM_CMD,8,3           ## @CMDQ_SET_ARM_CMD
	.comm	_HINIC_MOD_COMM,4,2             ## @HINIC_MOD_COMM
	.no_dead_strip	_cmdq_prepare_wqe_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdq_prepare_wqe_ctrl
_cmdq_prepare_wqe_ctrl:                 ; @cmdq_prepare_wqe_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x7
	mov	x25, x6
	mov	x21, x4
	mov	x20, x3
	mov	x27, x2
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x19, x0
	ldr	w26, [x29, #16]
Lloh0:
	adrp	x8, _DATA_SGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA_SGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w7
	b.ne	LBB0_2
; %bb.1:
	add	x22, x19, #16
	str	xzr, [x19, #24]
Lloh3:
	adrp	x8, _CTRL_SECT_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTRL_SECT_LEN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	str	xzr, [x19, #8]
Lloh5:
	adrp	x8, _CTRL_DIRECT_SECT_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTRL_DIRECT_SECT_LEN@GOTPAGEOFF]
	mov	x22, x19
LBB0_3:
	ldr	w24, [x8]
Lloh7:
	adrp	x8, _PI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PI@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x5
	bl	_HINIC_CMDQ_CTRL_SET
	mov	x28, x0
Lloh10:
	adrp	x8, _CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_HINIC_CMDQ_CTRL_SET
	orr	w28, w0, w28
Lloh13:
	adrp	x8, _MOD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MOD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_HINIC_CMDQ_CTRL_SET
	orr	w28, w28, w0
Lloh16:
	adrp	x8, _ACK_TYPE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACK_TYPE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_HINIC_CMDQ_CTRL_SET
	orr	w8, w28, w0
	str	w8, [x22]
Lloh19:
	adrp	x8, _BUFDESC_LEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BUFDESC_LEN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_HINIC_CMDQ_WQE_HEADER_SET
	mov	x26, x0
Lloh22:
	adrp	x8, _COMPLETE_FMT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _COMPLETE_FMT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_HINIC_CMDQ_WQE_HEADER_SET
	orr	w22, w0, w26
Lloh25:
	adrp	x8, _DATA_FMT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DATA_FMT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_HINIC_CMDQ_WQE_HEADER_SET
	orr	w22, w22, w0
Lloh28:
	adrp	x8, _CEQ_SET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CEQ_SET@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _COMPLETE_REQ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _COMPLETE_REQ@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_HINIC_CMDQ_WQE_HEADER_SET
	orr	w22, w22, w0
Lloh34:
	adrp	x8, _COMPLETE_LEN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _COMPLETE_LEN@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _COMPLETE_SECT_LEN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _COMPLETE_SECT_LEN@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_HINIC_CMDQ_WQE_HEADER_SET
	orr	w22, w22, w0
Lloh40:
	adrp	x8, _CTRL_LEN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CTRL_LEN@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_HINIC_CMDQ_WQE_HEADER_SET
	orr	w22, w22, w0
Lloh43:
	adrp	x8, _TOGGLED_WRAPPED@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TOGGLED_WRAPPED@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_HINIC_CMDQ_WQE_HEADER_SET
	orr	w22, w22, w0
	mov	x0, x19
	bl	_CMDQ_WQE_HEADER
	str	w22, [x0]
	mov	x0, x19
	bl	_CMDQ_WQE_HEADER
	ldr	w0, [x0, #4]
Lloh46:
	adrp	x23, _ARM@GOTPAGE
Lloh47:
	ldr	x23, [x23, _ARM@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_HINIC_SAVED_DATA_CLEAR
	mov	x22, x0
Lloh48:
	adrp	x8, _CMDQ_SET_ARM_CMD@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CMDQ_SET_ARM_CMD@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.4:
Lloh51:
	adrp	x8, _HINIC_MOD_COMM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _HINIC_MOD_COMM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x23]
	mov	w0, #1
	bl	_HINIC_SAVED_DATA_SET
	mov	x20, x0
	mov	x0, x19
	bl	_CMDQ_WQE_HEADER
	ldr	w8, [x0, #4]
	orr	w8, w8, w20
	str	w8, [x0, #4]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_CMDQ_WQE_HEADER
	str	w22, [x0, #4]
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_SGE,4,2                   ; @DATA_SGE
	.comm	_CTRL_SECT_LEN,4,2              ; @CTRL_SECT_LEN
	.comm	_CTRL_DIRECT_SECT_LEN,4,2       ; @CTRL_DIRECT_SECT_LEN
	.comm	_PI,4,2                         ; @PI
	.comm	_CMD,4,2                        ; @CMD
	.comm	_MOD,4,2                        ; @MOD
	.comm	_ACK_TYPE,4,2                   ; @ACK_TYPE
	.comm	_BUFDESC_LEN,4,2                ; @BUFDESC_LEN
	.comm	_COMPLETE_FMT,4,2               ; @COMPLETE_FMT
	.comm	_DATA_FMT,4,2                   ; @DATA_FMT
	.comm	_CEQ_SET,4,2                    ; @CEQ_SET
	.comm	_COMPLETE_REQ,4,2               ; @COMPLETE_REQ
	.comm	_COMPLETE_LEN,4,2               ; @COMPLETE_LEN
	.comm	_COMPLETE_SECT_LEN,4,2          ; @COMPLETE_SECT_LEN
	.comm	_CTRL_LEN,4,2                   ; @CTRL_LEN
	.comm	_TOGGLED_WRAPPED,4,2            ; @TOGGLED_WRAPPED
	.comm	_ARM,4,2                        ; @ARM
	.comm	_CMDQ_SET_ARM_CMD,8,3           ; @CMDQ_SET_ARM_CMD
	.comm	_HINIC_MOD_COMM,4,2             ; @HINIC_MOD_COMM
	.no_dead_strip	_cmdq_prepare_wqe_ctrl
.subsections_via_symbols
