	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_bnx2x_iscsi_destroy
_cnic_bnx2x_iscsi_destroy:              ## @cnic_bnx2x_iscsi_destroy
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movq	8(%r12), %r13
	movq	_CTX_FL_OFFLD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %r14
	shlq	$4, %r14
	leaq	(%r14,%r13), %rsi
	addq	$8, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	%rsi, %rsi
	addq	(%r13,%r14), %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cnic_bnx2x_destroy_ramrod
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cnic_free_bnx2x_conn_resc
	testl	%r14d, %r14d
	jne	LBB0_6
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cnic_free_bnx2x_conn_resc
LBB0_5:
	movq	%r12, %rdi
	callq	_atomic_dec
	movq	_CTX_FL_OFFLD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_bit
	jmp	LBB0_6
LBB0_2:
	addq	%r14, %r13
	movq	(%r13), %rax
	subq	(%rbx), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,2), %rax
	addq	%rcx, %rcx
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	cmovbeq	%rax, %rbx
	movq	_CTX_FL_DELETE_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	movq	_cnic_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r12
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_queue_delayed_work
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_ISCSI_KCQE_OPCODE_DESTROY_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	%r15, -104(%rbp)
	movq	_ISCSI_KCQE_COMPLETION_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	%r14, -56(%rbp)
	movq	_CNIC_ULP_ISCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %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_8
## %bb.7:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTX_FL_OFFLD_START,4,2         ## @CTX_FL_OFFLD_START
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_CTX_FL_DELETE_WAIT,4,2         ## @CTX_FL_DELETE_WAIT
	.comm	_cnic_wq,4,2                    ## @cnic_wq
	.comm	_ISCSI_KCQE_OPCODE_DESTROY_CONN,4,2 ## @ISCSI_KCQE_OPCODE_DESTROY_CONN
	.comm	_ISCSI_KCQE_COMPLETION_STATUS_SUCCESS,4,2 ## @ISCSI_KCQE_COMPLETION_STATUS_SUCCESS
	.comm	_CNIC_ULP_ISCSI,4,2             ## @CNIC_ULP_ISCSI
	.no_dead_strip	_cnic_bnx2x_iscsi_destroy
.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_destroy
_cnic_bnx2x_iscsi_destroy:              ; @cnic_bnx2x_iscsi_destroy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	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, #40]
	ldr	x22, [x0]
	ldr	x21, [x1]
	ldr	x8, [x22, #8]
Lloh3:
	adrp	x25, _CTX_FL_OFFLD_START@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CTX_FL_OFFLD_START@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x24, x8, x21, lsl #4
	add	x23, x24, #8
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x26, _jiffies@GOTPAGE
Lloh6:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	ldr	x0, [x26]
	ldr	x8, [x24]
Lloh7:
	adrp	x27, _HZ@GOTPAGE
Lloh8:
	ldr	x27, [x27, _HZ@GOTPAGEOFF]
	ldrsw	x9, [x27]
	add	x1, x8, x9, lsl #1
	bl	_time_after
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_cnic_bnx2x_destroy_ramrod
	mov	x24, x0
	mov	x0, x19
	mov	x1, x21
	bl	_cnic_free_bnx2x_conn_resc
	cbnz	w24, LBB0_6
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_cnic_free_bnx2x_conn_resc
LBB0_4:
	mov	x0, x22
	bl	_atomic_dec
	ldr	w0, [x25]
	mov	x1, x23
	bl	_clear_bit
	b	LBB0_6
LBB0_5:
	ldr	x8, [x24]
	ldrsw	x9, [x27]
	lsl	x9, x9, #1
	ldr	x10, [x26]
	sub	x8, x8, x10
	add	x8, x8, x9
	cmp	x8, x9
	csel	x24, xzr, x8, hi
Lloh9:
	adrp	x8, _CTX_FL_DELETE_WAIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTX_FL_DELETE_WAIT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_set_bit
Lloh12:
	adrp	x8, _cnic_wq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cnic_wq@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, x22, #4
	mov	x2, x24
	bl	_queue_delayed_work
LBB0_6:
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh15:
	adrp	x8, _ISCSI_KCQE_OPCODE_DESTROY_CONN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ISCSI_KCQE_OPCODE_DESTROY_CONN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x21, [sp, #8]
Lloh18:
	adrp	x8, _ISCSI_KCQE_COMPLETION_STATUS_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ISCSI_KCQE_COMPLETION_STATUS_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	stp	w9, w8, [sp, #16]
	str	x22, [sp, #32]
Lloh21:
	adrp	x8, _CNIC_ULP_ISCSI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CNIC_ULP_ISCSI@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	mov	w3, #1
	bl	_cnic_reply_bnx2x_kcqes
	ldr	x8, [sp, #40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CTX_FL_OFFLD_START,4,2         ; @CTX_FL_OFFLD_START
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_CTX_FL_DELETE_WAIT,4,2         ; @CTX_FL_DELETE_WAIT
	.comm	_cnic_wq,4,2                    ; @cnic_wq
	.comm	_ISCSI_KCQE_OPCODE_DESTROY_CONN,4,2 ; @ISCSI_KCQE_OPCODE_DESTROY_CONN
	.comm	_ISCSI_KCQE_COMPLETION_STATUS_SUCCESS,4,2 ; @ISCSI_KCQE_COMPLETION_STATUS_SUCCESS
	.comm	_CNIC_ULP_ISCSI,4,2             ; @CNIC_ULP_ISCSI
	.no_dead_strip	_cnic_bnx2x_iscsi_destroy
.subsections_via_symbols
