	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_cnic_sp_post
_bnx2x_cnic_sp_post:                    ## @bnx2x_cnic_sp_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$4, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	xorl	%edi, %edi
	cmpl	%r14d, (%rbx)
	setl	%dil
	callq	_BUG_ON
	subl	%r14d, (%rbx)
	cmpq	$0, 32(%rbx)
	je	LBB0_19
## %bb.1:
	leaq	44(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	48(%rbx), %r13
	movq	8(%rbx), %rax
	movq	_SPE_HDR_CONN_TYPE@GOTPCREL(%rip), %r15
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rbx)
	decq	32(%rbx)
	je	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, %r12
	andq	(%r15), %r12
	movq	_SPE_HDR_CONN_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarq	%cl, %r12
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	_ETH_CONNECTION_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %r12
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SPE_HDR_CMD_ID_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movzbl	%al, %eax
	movq	_RAMROD_CMD_ID_ETH_CLIENT_SETUP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_BNX2X_ISCSI_ETH_CID
	cltd
	movq	_ILT_PAGE_CIDS@GOTPCREL(%rip), %r15
	idivl	(%r15)
	movl	%r14d, %r13d
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_BNX2X_ISCSI_ETH_CID
	movslq	%r14d, %rcx
	imull	(%r15), %r14d
	subl	%r14d, %eax
	movq	56(%rbx), %rdx
	movslq	%eax, %r14
	shlq	$2, %r14
	addq	(%rdx,%rcx,8), %r14
	movq	%rbx, %rdi
	callq	_BNX2X_ISCSI_ETH_CID
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	_SPE_HDR_CONN_TYPE@GOTPCREL(%rip), %r15
	movl	%r13d, %r14d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_bnx2x_set_ctx_validation
	movq	_ETH_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %r12
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_atomic_dec
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_NONE_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ISCSI_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_FCOE_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	cmpl	40(%rbx), %eax
	jge	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movl	%eax, (%rbx)
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_bnx2x_sp_get_next
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movq	32(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %r8d
	callq	_DP
	movq	8(%rbx), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rax
	jmp	LBB0_18
LBB0_20:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_BNX2X_ERR
	xorl	%eax, %eax
	callq	_bnx2x_panic
LBB0_19:
	movq	%rbx, %rdi
	callq	_bnx2x_sp_prod_update
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPE_HDR_CONN_TYPE,8,3          ## @SPE_HDR_CONN_TYPE
	.comm	_SPE_HDR_CONN_TYPE_SHIFT,8,3    ## @SPE_HDR_CONN_TYPE_SHIFT
	.comm	_SPE_HDR_CMD_ID_SHIFT,4,2       ## @SPE_HDR_CMD_ID_SHIFT
	.comm	_ETH_CONNECTION_TYPE,8,3        ## @ETH_CONNECTION_TYPE
	.comm	_RAMROD_CMD_ID_ETH_CLIENT_SETUP,8,3 ## @RAMROD_CMD_ID_ETH_CLIENT_SETUP
	.comm	_ILT_PAGE_CIDS,4,2              ## @ILT_PAGE_CIDS
	.comm	_NONE_CONNECTION_TYPE,8,3       ## @NONE_CONNECTION_TYPE
	.comm	_ISCSI_CONNECTION_TYPE,8,3      ## @ISCSI_CONNECTION_TYPE
	.comm	_FCOE_CONNECTION_TYPE,8,3       ## @FCOE_CONNECTION_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown SPE type: %d\n"

	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
L_.str.1:                               ## @.str.1
	.asciz	"pending on SPQ %d, on KWQ %d count %d\n"

	.no_dead_strip	_bnx2x_cnic_sp_post
.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_post
_bnx2x_cnic_sp_post:                    ; @bnx2x_cnic_sp_post
	.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	x21, x1
	mov	x20, x0
	add	x0, x0, #4
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_spin_lock_bh
	ldr	w8, [x20]
	cmp	w8, w21
	cset	w0, lt
	bl	_BUG_ON
	ldr	w8, [x20]
	sub	w8, w8, w21
	str	w8, [x20]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_19
; %bb.1:
	add	x8, x20, #44
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x20, #8]
	add	x23, x20, #48
Lloh0:
	adrp	x27, _SPE_HDR_CONN_TYPE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SPE_HDR_CONN_TYPE@GOTPAGEOFF]
Lloh2:
	adrp	x28, _SPE_HDR_CONN_TYPE_SHIFT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SPE_HDR_CONN_TYPE_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x19, _ETH_CONNECTION_TYPE@GOTPAGE
Lloh5:
	ldr	x19, [x19, _ETH_CONNECTION_TYPE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _SPE_HDR_CMD_ID_SHIFT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SPE_HDR_CMD_ID_SHIFT@GOTPAGEOFF]
Lloh8:
	adrp	x22, _RAMROD_CMD_ID_ETH_CLIENT_SETUP@GOTPAGE
Lloh9:
	ldr	x22, [x22, _RAMROD_CMD_ID_ETH_CLIENT_SETUP@GOTPAGEOFF]
Lloh10:
	adrp	x24, l_.str.1@PAGE
Lloh11:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x20, #8]
	ldr	x9, [x20, #32]
	subs	x9, x9, #1
	str	x9, [x20, #32]
	b.eq	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	ldr	x8, [x27]
	and	x8, x8, x0
	ldr	x9, [x28]
	asr	x25, x8, x9
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [x19]
	cmp	x25, x8
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	asr	w8, w0, w8
	and	w8, w8, #0xff
	ldr	x9, [x22]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_BNX2X_ISCSI_ETH_CID
Lloh12:
	adrp	x22, _ILT_PAGE_CIDS@GOTPAGE
Lloh13:
	ldr	x22, [x22, _ILT_PAGE_CIDS@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x28, x27
	mov	x27, x26
	sdiv	w26, w0, w8
	mov	x0, x20
	bl	_BNX2X_ISCSI_ETH_CID
	ldr	w8, [x22]
	msub	w8, w8, w26, w0
	ldr	x9, [x20, #56]
	ldr	x9, [x9, w26, sxtw #3]
	add	x26, x9, w8, sxtw #2
	mov	x0, x20
	bl	_BNX2X_ISCSI_ETH_CID
	mov	x2, x0
	mov	x0, x20
	mov	x1, x26
	mov	x26, x27
	mov	x27, x28
Lloh14:
	adrp	x28, _SPE_HDR_CONN_TYPE_SHIFT@GOTPAGE
Lloh15:
	ldr	x28, [x28, _SPE_HDR_CONN_TYPE_SHIFT@GOTPAGEOFF]
Lloh16:
	adrp	x22, _RAMROD_CMD_ID_ETH_CLIENT_SETUP@GOTPAGE
Lloh17:
	ldr	x22, [x22, _RAMROD_CMD_ID_ETH_CLIENT_SETUP@GOTPAGEOFF]
	bl	_bnx2x_set_ctx_validation
	ldr	x8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, x8
	b.ne	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_atomic_read
	cbz	w0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_atomic_dec
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x8, _NONE_CONNECTION_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NONE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_atomic_read
	cbz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_atomic_dec
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh21:
	adrp	x8, _ISCSI_CONNECTION_TYPE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ISCSI_CONNECTION_TYPE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _FCOE_CONNECTION_TYPE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FCOE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x25, x8
	ccmp	x25, x9, #4, ne
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x20, #40]
	cmp	w8, w9
	b.ge	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	str	w8, [x20]
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_bnx2x_sp_get_next
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	str	x8, [x0]
Lloh27:
	adrp	x8, _BNX2X_MSG_SP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w2, [x20]
	ldr	x3, [x20, #32]
	mov	x1, x24
	mov	x4, x21
	bl	_DP
	ldr	x8, [x20, #8]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #8
	b	LBB0_3
LBB0_18:
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_BNX2X_ERR
	bl	_bnx2x_panic
LBB0_19:
	mov	x0, x20
	bl	_bnx2x_sp_prod_update
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	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
	b	_spin_unlock_bh
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SPE_HDR_CONN_TYPE,8,3          ; @SPE_HDR_CONN_TYPE
	.comm	_SPE_HDR_CONN_TYPE_SHIFT,8,3    ; @SPE_HDR_CONN_TYPE_SHIFT
	.comm	_SPE_HDR_CMD_ID_SHIFT,4,2       ; @SPE_HDR_CMD_ID_SHIFT
	.comm	_ETH_CONNECTION_TYPE,8,3        ; @ETH_CONNECTION_TYPE
	.comm	_RAMROD_CMD_ID_ETH_CLIENT_SETUP,8,3 ; @RAMROD_CMD_ID_ETH_CLIENT_SETUP
	.comm	_ILT_PAGE_CIDS,4,2              ; @ILT_PAGE_CIDS
	.comm	_NONE_CONNECTION_TYPE,8,3       ; @NONE_CONNECTION_TYPE
	.comm	_ISCSI_CONNECTION_TYPE,8,3      ; @ISCSI_CONNECTION_TYPE
	.comm	_FCOE_CONNECTION_TYPE,8,3       ; @FCOE_CONNECTION_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown SPE type: %d\n"

	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
l_.str.1:                               ; @.str.1
	.asciz	"pending on SPQ %d, on KWQ %d count %d\n"

	.no_dead_strip	_bnx2x_cnic_sp_post
.subsections_via_symbols
