	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_cnic_sp_queue
_bnx2x_cnic_sp_queue:                   ## @bnx2x_cnic_sp_queue
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_BNX2X_RECOVERY_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_BNX2X_RECOVERY_NIC_LOADING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movq	%r14, %r12
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, 32(%r14)
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	56(%r14), %eax
	movq	_MAX_SP_DESC_CNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15,%rbx,8), %rax
	movq	32(%r14), %rcx
	movups	(%rax), %xmm0
	movups	%xmm0, (%rcx)
	movl	56(%r14), %esi
	incl	%esi
	movl	%esi, 56(%r14)
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	12(%rax), %edx
	movl	8(%rax), %ecx
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
	movl	%esi, (%rsp)
	movq	%r13, %rsi
	callq	_DP
	movq	32(%r14), %rax
	cmpq	48(%r14), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	40(%r14), %rax
	jmp	LBB0_10
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	movl	%r12d, %ebx
LBB0_12:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_13:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	8(%r14), %rax
	cmpq	16(%r14), %rax
	jge	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnx2x_cnic_sp_post
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_RECOVERY_DONE,8,3        ## @BNX2X_RECOVERY_DONE
	.comm	_BNX2X_RECOVERY_NIC_LOADING,8,3 ## @BNX2X_RECOVERY_NIC_LOADING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Handling parity error recovery. Try again later\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MAX_SP_DESC_CNT,4,2            ## @MAX_SP_DESC_CNT
	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
L_.str.1:                               ## @.str.1
	.asciz	"L5 SPQE %x %x %x:%x pos %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_bnx2x_cnic_sp_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_cnic_sp_queue
_bnx2x_cnic_sp_queue:                   ; @bnx2x_cnic_sp_queue
	.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
	mov	x23, x2
	mov	x21, x1
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BNX2X_RECOVERY_DONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2X_RECOVERY_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _BNX2X_RECOVERY_NIC_LOADING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BNX2X_RECOVERY_NIC_LOADING@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
	add	x22, x0, #24
	mov	x0, x22
	bl	_spin_lock_bh
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x20, #0
	mov	w24, w23
Lloh6:
	adrp	x25, _MAX_SP_DESC_CNT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MAX_SP_DESC_CNT@GOTPAGEOFF]
Lloh8:
	adrp	x26, _BNX2X_MSG_SP@GOTPAGE
Lloh9:
	ldr	x26, [x26, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #16
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x19, #32]
	add	x20, x20, #1
	cmp	x24, x20
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #56]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, x20, lsl #3]
	ldr	x9, [x19, #32]
	ldr	q0, [x8]
	str	q0, [x9]
	ldr	w9, [x19, #56]
	add	w6, w9, #1
	str	w6, [x19, #56]
	ldr	w0, [x26]
	ldp	w3, w2, [x8, #8]
	ldp	w5, w4, [x8]
	mov	x1, x23
	bl	_DP
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #48]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #40]
	b	LBB0_4
LBB0_8:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
Lloh14:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_9:
	mov	w20, #0
	b	LBB0_11
LBB0_10:
	mov	x20, x24
LBB0_11:
	mov	x0, x22
	bl	_spin_unlock_bh
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2x_cnic_sp_post
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_RECOVERY_DONE,8,3        ; @BNX2X_RECOVERY_DONE
	.comm	_BNX2X_RECOVERY_NIC_LOADING,8,3 ; @BNX2X_RECOVERY_NIC_LOADING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Handling parity error recovery. Try again later\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MAX_SP_DESC_CNT,4,2            ; @MAX_SP_DESC_CNT
	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
l_.str.1:                               ; @.str.1
	.asciz	"L5 SPQE %x %x %x:%x pos %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_bnx2x_cnic_sp_queue
.subsections_via_symbols
