	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_spq_post                   ## -- Begin function qed_spq_post
	.p2align	4, 0x90
_qed_spq_post:                          ## @qed_spq_post
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	%rdx, %r13
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_QED_MSG_SPQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %r8d
	movl	16(%r14), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_DP_VERBOSE
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_qed_spq_recov_set_ret_code
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_NOTICE
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r12), %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_qed_spq_fill_entry
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_lock_bh
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.7:
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	40(%r14), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_qed_spq_add_entry
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
LBB0_16:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	___qed_spq_return_entry
LBB0_17:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_18
LBB0_9:
	movq	%r12, %rdi
	callq	_qed_spq_pend_post
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_18
## %bb.11:
	leaq	4(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	cmpq	%rax, 32(%r14)
	sete	%cl
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_qed_spq_block
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 32(%r14)
	jne	LBB0_13
## %bb.12:
	movq	24(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_kfree
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.15:
	movq	%r15, %rdi
	callq	_spin_lock_bh
	leaq	20(%r14), %rdi
	callq	_list_del
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_qed_spq_comp_bmap_update
	movl	%r13d, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_qed_spq_return_entry
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got a NULL pointer\n"

	.comm	_QED_MSG_SPQ,4,2                ## @QED_MSG_SPQ
L_.str.1:                               ## @.str.1
	.asciz	"Recovery is in progress. Skip spq post [cmd %02x protocol %02x]\n"

	.comm	_QED_SPQ_MODE_EBLOCK,8,3        ## @QED_SPQ_MODE_EBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_spq_post                   ; -- Begin function qed_spq_post
	.p2align	2
_qed_spq_post:                          ; @qed_spq_post
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_4
; %bb.2:
	mov	x23, x2
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _QED_MSG_SPQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_MSG_SPQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w4, w3, [x19, #12]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
	mov	x0, x19
	mov	x1, x23
	bl	_qed_spq_recov_set_ret_code
	mov	w22, #0
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_DP_NOTICE
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x21, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_qed_spq_fill_entry
	mov	x22, x0
	mov	x0, x21
	bl	_spin_lock_bh
	cbnz	w22, LBB0_10
; %bb.8:
	ldr	x24, [x19]
Lloh10:
	adrp	x8, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh12:
	ldr	x25, [x8]
	ldr	w2, [x19, #40]
	mov	x0, x20
	mov	x1, x19
	bl	_qed_spq_add_entry
	cbz	w0, LBB0_12
; %bb.9:
	mov	x22, x0
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	___qed_spq_return_entry
LBB0_11:
	mov	x0, x21
	bl	_spin_unlock_bh
	b	LBB0_6
LBB0_12:
	mov	x0, x20
	bl	_qed_spq_pend_post
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.13:
	mov	x0, x21
	bl	_spin_unlock_bh
	cmp	x24, x25
	b.ne	LBB0_18
; %bb.14:
	ldr	x8, [x19, #32]
	add	x24, x21, #4
	cmp	x8, x24
	cset	w3, eq
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_qed_spq_block
	mov	x22, x0
	ldr	x8, [x19, #32]
	cmp	x8, x24
	b.ne	LBB0_16
; %bb.15:
	ldr	x23, [x19, #24]
	mov	x0, x19
	bl	_kfree
	mov	x19, x23
LBB0_16:
	cbz	w22, LBB0_19
; %bb.17:
	mov	x0, x21
	bl	_spin_lock_bh
	add	x0, x19, #20
	bl	_list_del
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_qed_spq_comp_bmap_update
	b	LBB0_10
LBB0_18:
	mov	w22, #0
	b	LBB0_6
LBB0_19:
	mov	x0, x20
	mov	x1, x19
	bl	_qed_spq_return_entry
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got a NULL pointer\n"

	.comm	_QED_MSG_SPQ,4,2                ; @QED_MSG_SPQ
l_.str.1:                               ; @.str.1
	.asciz	"Recovery is in progress. Skip spq post [cmd %02x protocol %02x]\n"

	.comm	_QED_SPQ_MODE_EBLOCK,8,3        ; @QED_SPQ_MODE_EBLOCK
.subsections_via_symbols
