	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_bnx2x_fcoe_destroy
_cnic_bnx2x_fcoe_destroy:               ## @cnic_bnx2x_fcoe_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %rax
	cmpq	(%rdi), %rax
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rdx
	movq	_BNX2X_FCOE_L5_CID_BASE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	(%rsi), %r13
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rbx
	leaq	(%rax,%rax,2), %r15
	leaq	(%rbx,%r15,8), %rdi
	addq	$16, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_init_waitqueue_head
	movq	$0, 8(%rbx,%r15,8)
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_FCOE_KCQE_COMPLETION_STATUS_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_FCOE_RAMROD_CMD_ID_TERMINATE_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FCOE_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	leaq	-96(%rbp), %r8
	callq	_cnic_submit_kwqe_16
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	(%rbx,%r15,8), %rcx
	addq	$8, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	(%rcx), %rsi
	movq	_CNIC_RAMROD_TMO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	$0, -104(%rbp)
LBB0_5:
	movq	_CTX_FL_DELETE_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%rbx,%r15,8), %rsi
	callq	_set_bit
	movq	_cnic_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	movl	%ebx, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_queue_delayed_work
	movq	_FCOE_KCQE_OPCODE_DESTROY_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -128(%rbp)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -120(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	_CNIC_ULP_FCOE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_cnic_reply_bnx2x_kcqes
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r13d, %eax
	addq	$88, %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	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNX2X_FCOE_L5_CID_BASE,8,3     ## @BNX2X_FCOE_L5_CID_BASE
	.comm	_FCOE_KCQE_COMPLETION_STATUS_ERROR,8,3 ## @FCOE_KCQE_COMPLETION_STATUS_ERROR
	.comm	_FCOE_RAMROD_CMD_ID_TERMINATE_CONN,4,2 ## @FCOE_RAMROD_CMD_ID_TERMINATE_CONN
	.comm	_FCOE_CONNECTION_TYPE,4,2       ## @FCOE_CONNECTION_TYPE
	.comm	_CNIC_RAMROD_TMO,4,2            ## @CNIC_RAMROD_TMO
	.comm	_CTX_FL_DELETE_WAIT,4,2         ## @CTX_FL_DELETE_WAIT
	.comm	_cnic_wq,4,2                    ## @cnic_wq
	.comm	_FCOE_KCQE_OPCODE_DESTROY_CONN,4,2 ## @FCOE_KCQE_OPCODE_DESTROY_CONN
	.comm	_CNIC_ULP_FCOE,4,2              ## @CNIC_ULP_FCOE
	.no_dead_strip	_cnic_bnx2x_fcoe_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_fcoe_destroy
_cnic_bnx2x_fcoe_destroy:               ; @cnic_bnx2x_fcoe_destroy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x8, [x1, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x21, [x1]
Lloh3:
	adrp	x9, _BNX2X_FCOE_L5_CID_BASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2X_FCOE_L5_CID_BASE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x26, x9, x8
	ldr	x27, [x22, #8]
	mov	w8, #24
	madd	x28, x26, x8, x27
	add	x24, x28, #16
	mov	x0, x24
	bl	_init_waitqueue_head
	str	xzr, [x28, #8]!
	add	x25, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh6:
	adrp	x8, _FCOE_KCQE_COMPLETION_STATUS_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FCOE_KCQE_COMPLETION_STATUS_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #32]
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh9:
	adrp	x8, _FCOE_RAMROD_CMD_ID_TERMINATE_CONN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FCOE_RAMROD_CMD_ID_TERMINATE_CONN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _FCOE_CONNECTION_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FCOE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x4, sp, #40
	mov	x0, x19
	mov	x2, x21
	bl	_cnic_submit_kwqe_16
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x24]
	ldr	x1, [x28]
Lloh15:
	adrp	x8, _CNIC_RAMROD_TMO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CNIC_RAMROD_TMO@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	ldr	x8, [x28]
	cbz	x8, LBB0_4
; %bb.3:
	str	xzr, [sp, #32]
LBB0_4:
Lloh18:
	adrp	x8, _CTX_FL_DELETE_WAIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CTX_FL_DELETE_WAIT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w8, #24
	madd	x1, x26, x8, x27
	bl	_set_bit
Lloh21:
	adrp	x8, _cnic_wq@GOTPAGE
Lloh22:
	ldr	x8, [x8, _cnic_wq@GOTPAGEOFF]
Lloh23:
	ldr	w24, [x8]
	mov	w0, #2000
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x24
	mov	x1, x22
	bl	_queue_delayed_work
Lloh24:
	adrp	x8, _FCOE_KCQE_OPCODE_DESTROY_CONN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FCOE_KCQE_OPCODE_DESTROY_CONN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x20, #8]
	stp	x8, x21, [sp, #8]
	str	x25, [sp, #48]
Lloh27:
	adrp	x8, _CNIC_ULP_FCOE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CNIC_ULP_FCOE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, sp, #48
	mov	x0, x19
	mov	w3, #1
	bl	_cnic_reply_bnx2x_kcqes
	b	LBB0_6
LBB0_5:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	ldr	x8, [sp, #56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNX2X_FCOE_L5_CID_BASE,8,3     ; @BNX2X_FCOE_L5_CID_BASE
	.comm	_FCOE_KCQE_COMPLETION_STATUS_ERROR,8,3 ; @FCOE_KCQE_COMPLETION_STATUS_ERROR
	.comm	_FCOE_RAMROD_CMD_ID_TERMINATE_CONN,4,2 ; @FCOE_RAMROD_CMD_ID_TERMINATE_CONN
	.comm	_FCOE_CONNECTION_TYPE,4,2       ; @FCOE_CONNECTION_TYPE
	.comm	_CNIC_RAMROD_TMO,4,2            ; @CNIC_RAMROD_TMO
	.comm	_CTX_FL_DELETE_WAIT,4,2         ; @CTX_FL_DELETE_WAIT
	.comm	_cnic_wq,4,2                    ; @cnic_wq
	.comm	_FCOE_KCQE_OPCODE_DESTROY_CONN,4,2 ; @FCOE_KCQE_OPCODE_DESTROY_CONN
	.comm	_CNIC_ULP_FCOE,4,2              ; @CNIC_ULP_FCOE
	.no_dead_strip	_cnic_bnx2x_fcoe_destroy
.subsections_via_symbols
