	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_bnx2x_iscsi_init2
_cnic_bnx2x_iscsi_init2:                ## @cnic_bnx2x_iscsi_init2
	.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	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rdi), %edi
	callq	_netdev_priv
	movl	(%rax), %r12d
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.2:
	movq	_BAR_TSTRORM_INTMEM@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movl	%r12d, %edi
	callq	_TSTORM_ISCSI_ERROR_BITMAP_OFFSET
	addq	%rax, %rbx
	movq	8(%r15), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR
	movq	(%r14), %rbx
	movl	%r12d, %edi
	callq	_TSTORM_ISCSI_ERROR_BITMAP_OFFSET
	leaq	(%rbx,%rax), %rsi
	addq	$4, %rsi
	movq	8(%r15), %rax
	movl	4(%rax), %edx
	movq	%r13, %rdi
	callq	_CNIC_WR
	movq	_BAR_USTRORM_INTMEM@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movl	%r12d, %edi
	callq	_USTORM_ISCSI_CQ_SQN_SIZE_OFFSET
	addq	%rax, %rbx
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR16
	movq	(%r14), %rbx
	movl	%r12d, %edi
	callq	_USTORM_ISCSI_ERROR_BITMAP_OFFSET
	addq	%rax, %rbx
	movq	8(%r15), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR
	movq	(%r14), %rbx
	movl	%r12d, %edi
	callq	_USTORM_ISCSI_ERROR_BITMAP_OFFSET
	leaq	(%rbx,%rax), %rsi
	addq	$4, %rsi
	movq	8(%r15), %rax
	movl	4(%rax), %edx
	movq	%r13, %rdi
	callq	_CNIC_WR
	movq	_BAR_CSTRORM_INTMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r12d, %edi
	callq	_CSTORM_ISCSI_CQ_SQN_SIZE_OFFSET
	addq	%rax, %rbx
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-64(%rbp), %rbx
	callq	_CNIC_WR16
	movq	_ISCSI_KCQE_COMPLETION_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ISCSI_KCQE_COMPLETION_STATUS_ISCSI_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_ISCSI_KCQE_OPCODE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%rbx, -56(%rbp)
	movq	_CNIC_ULP_ISCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_cnic_reply_bnx2x_kcqes
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ISCSI_KCQE_COMPLETION_STATUS_ISCSI_NOT_SUPPORTED,4,2 ## @ISCSI_KCQE_COMPLETION_STATUS_ISCSI_NOT_SUPPORTED
	.comm	_BAR_TSTRORM_INTMEM,8,3         ## @BAR_TSTRORM_INTMEM
	.comm	_BAR_USTRORM_INTMEM,8,3         ## @BAR_USTRORM_INTMEM
	.comm	_BAR_CSTRORM_INTMEM,8,3         ## @BAR_CSTRORM_INTMEM
	.comm	_ISCSI_KCQE_COMPLETION_STATUS_SUCCESS,4,2 ## @ISCSI_KCQE_COMPLETION_STATUS_SUCCESS
	.comm	_ISCSI_KCQE_OPCODE_INIT,4,2     ## @ISCSI_KCQE_OPCODE_INIT
	.comm	_CNIC_ULP_ISCSI,4,2             ## @CNIC_ULP_ISCSI
	.no_dead_strip	_cnic_bnx2x_iscsi_init2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_bnx2x_iscsi_init2
_cnic_bnx2x_iscsi_init2:                ; @cnic_bnx2x_iscsi_init2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0, #4]
	bl	_netdev_priv
	ldr	w21, [x0]
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x23, _BAR_TSTRORM_INTMEM@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BAR_TSTRORM_INTMEM@GOTPAGEOFF]
	ldr	x24, [x23]
	mov	x0, x21
	bl	_TSTORM_ISCSI_ERROR_BITMAP_OFFSET
	add	x1, x0, x24
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CNIC_WR
	ldr	x23, [x23]
	mov	x0, x21
	bl	_TSTORM_ISCSI_ERROR_BITMAP_OFFSET
	add	x8, x23, x0
	add	x1, x8, #4
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_CNIC_WR
Lloh5:
	adrp	x23, _BAR_USTRORM_INTMEM@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BAR_USTRORM_INTMEM@GOTPAGEOFF]
	ldr	x24, [x23]
	mov	x0, x21
	bl	_USTORM_ISCSI_CQ_SQN_SIZE_OFFSET
	add	x1, x0, x24
	ldr	w2, [x20]
	mov	x0, x19
	bl	_CNIC_WR16
	ldr	x24, [x23]
	mov	x0, x21
	bl	_USTORM_ISCSI_ERROR_BITMAP_OFFSET
	add	x1, x0, x24
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CNIC_WR
	ldr	x23, [x23]
	mov	x0, x21
	bl	_USTORM_ISCSI_ERROR_BITMAP_OFFSET
	add	x8, x23, x0
	add	x1, x8, #4
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_CNIC_WR
Lloh7:
	adrp	x8, _BAR_CSTRORM_INTMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BAR_CSTRORM_INTMEM@GOTPAGEOFF]
Lloh9:
	ldr	x23, [x8]
	mov	x0, x21
	bl	_CSTORM_ISCSI_CQ_SQN_SIZE_OFFSET
	add	x1, x0, x23
	ldr	w2, [x20]
	mov	x0, x19
	bl	_CNIC_WR16
Lloh10:
	adrp	x8, _ISCSI_KCQE_COMPLETION_STATUS_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISCSI_KCQE_COMPLETION_STATUS_SUCCESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _ISCSI_KCQE_COMPLETION_STATUS_ISCSI_NOT_SUPPORTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISCSI_KCQE_COMPLETION_STATUS_ISCSI_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ISCSI_KCQE_OPCODE_INIT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ISCSI_KCQE_OPCODE_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	str	x22, [sp, #16]
Lloh17:
	adrp	x8, _CNIC_ULP_ISCSI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CNIC_ULP_ISCSI@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #1
	bl	_cnic_reply_bnx2x_kcqes
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ISCSI_KCQE_COMPLETION_STATUS_ISCSI_NOT_SUPPORTED,4,2 ; @ISCSI_KCQE_COMPLETION_STATUS_ISCSI_NOT_SUPPORTED
	.comm	_BAR_TSTRORM_INTMEM,8,3         ; @BAR_TSTRORM_INTMEM
	.comm	_BAR_USTRORM_INTMEM,8,3         ; @BAR_USTRORM_INTMEM
	.comm	_BAR_CSTRORM_INTMEM,8,3         ; @BAR_CSTRORM_INTMEM
	.comm	_ISCSI_KCQE_COMPLETION_STATUS_SUCCESS,4,2 ; @ISCSI_KCQE_COMPLETION_STATUS_SUCCESS
	.comm	_ISCSI_KCQE_OPCODE_INIT,4,2     ; @ISCSI_KCQE_OPCODE_INIT
	.comm	_CNIC_ULP_ISCSI,4,2             ; @CNIC_ULP_ISCSI
	.no_dead_strip	_cnic_bnx2x_iscsi_init2
.subsections_via_symbols
