	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_spq_hw_initialize
_qed_spq_hw_initialize:                 ## @qed_spq_hw_initialize
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	4(%rsi), %eax
	movl	%eax, -32(%rbp)
	leaq	-40(%rbp), %rsi
	callq	_qed_cxt_get_cid_info
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rbx
	movl	24(%rbx), %edi
	movq	_E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_SET_FIELD
	movl	20(%rbx), %edi
	movq	_E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_SET_FIELD
	movl	16(%rbx), %edi
	movq	_E4_XSTORM_CORE_CONN_AG_CTX_CONSOLID_PROD_CF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_SET_FIELD
	movq	_PQ_FLAGS_LB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qed_get_cm_pq_idx
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, 12(%rbx)
	movl	(%r15), %edi
	callq	_DMA_LO_LE
	movl	%eax, 8(%rbx)
	movl	(%r15), %edi
	callq	_DMA_HI_LE
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	callq	_DMA_REGPAIR_LE
	jmp	LBB0_3
LBB0_1:
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find context info for cid=%d\n"

	.comm	_E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_EN,4,2 ## @E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_EN
	.comm	_E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_ACTIVE,4,2 ## @E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_ACTIVE
	.comm	_E4_XSTORM_CORE_CONN_AG_CTX_CONSOLID_PROD_CF_EN,4,2 ## @E4_XSTORM_CORE_CONN_AG_CTX_CONSOLID_PROD_CF_EN
	.comm	_PQ_FLAGS_LB,4,2                ## @PQ_FLAGS_LB
	.no_dead_strip	_qed_spq_hw_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_spq_hw_initialize
_qed_spq_hw_initialize:                 ; @qed_spq_hw_initialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1, #4]
	str	w8, [sp, #8]
	mov	x1, sp
	bl	_qed_cxt_get_cid_info
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x21, [sp]
	ldr	w0, [x21, #24]
Lloh0:
	adrp	x8, _E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_SET_FIELD
	ldr	w0, [x21, #20]
Lloh3:
	adrp	x8, _E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_SET_FIELD
	ldr	w0, [x21, #16]
Lloh6:
	adrp	x8, _E4_XSTORM_CORE_CONN_AG_CTX_CONSOLID_PROD_CF_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E4_XSTORM_CORE_CONN_AG_CTX_CONSOLID_PROD_CF_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_SET_FIELD
Lloh9:
	adrp	x8, _PQ_FLAGS_LB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PQ_FLAGS_LB@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qed_get_cm_pq_idx
	bl	_cpu_to_le16
	str	w0, [x21, #12]
	ldr	w0, [x20]
	bl	_DMA_LO_LE
	str	w0, [x21, #8]
	ldr	w0, [x20]
	bl	_DMA_HI_LE
	str	w0, [x21, #4]
	ldr	w0, [x21]
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_DMA_REGPAIR_LE
	b	LBB0_3
LBB0_2:
	ldr	w2, [x20, #4]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find context info for cid=%d\n"

	.comm	_E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_EN,4,2 ; @E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_EN
	.comm	_E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_ACTIVE,4,2 ; @E4_XSTORM_CORE_CONN_AG_CTX_DQ_CF_ACTIVE
	.comm	_E4_XSTORM_CORE_CONN_AG_CTX_CONSOLID_PROD_CF_EN,4,2 ; @E4_XSTORM_CORE_CONN_AG_CTX_CONSOLID_PROD_CF_EN
	.comm	_PQ_FLAGS_LB,4,2                ; @PQ_FLAGS_LB
	.no_dead_strip	_qed_spq_hw_initialize
.subsections_via_symbols
