	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_close_bnx2x_conn
_cnic_close_bnx2x_conn:                 ## @cnic_close_bnx2x_conn
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r14
	movq	(%r14), %r15
	movq	(%r15), %r13
	leal	-130(%rsi), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_cnic_ready_to_close
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	_SK_F_HW_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	_SK_F_PG_OFFLD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	movl	$129, %r12d
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	cmpl	$128, %esi
	je	LBB0_8
## %bb.2:
	movl	$128, %r12d
	cmpl	$129, %esi
	jne	LBB0_7
LBB0_6:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	12(%rbx), %edx
	movq	_ISCSI_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %r8
	callq	_cnic_submit_kwqe_16
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%r13,%rcx,4)
	movq	%rbx, %rdi
	callq	_cnic_close_conn
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cnic_cm_upcall                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SK_F_HW_ERR,4,2                ## @SK_F_HW_ERR
	.comm	_SK_F_PG_OFFLD_COMPLETE,4,2     ## @SK_F_PG_OFFLD_COMPLETE
	.comm	_ISCSI_CONNECTION_TYPE,4,2      ## @ISCSI_CONNECTION_TYPE
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_cnic_close_bnx2x_conn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_close_bnx2x_conn
_cnic_close_bnx2x_conn:                 ; @cnic_close_bnx2x_conn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x21, [x20]
	ldr	x23, [x21]
	ldr	x24, [x0]
	sub	w8, w1, #130
	cmp	w8, #3
	b.hs	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_cnic_ready_to_close
	cbz	w0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _SK_F_HW_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SK_F_HW_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #16
	mov	x1, x22
	bl	_test_bit
	cbnz	w0, LBB0_10
; %bb.3:
Lloh3:
	adrp	x8, _SK_F_PG_OFFLD_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SK_F_PG_OFFLD_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	w0, LBB0_10
; %bb.4:
	mov	w21, #129
	b	LBB0_8
LBB0_5:
	cmp	w1, #128
	b.eq	LBB0_10
; %bb.6:
	cmp	w1, #129
	b.ne	LBB0_9
; %bb.7:
	mov	w21, #128
LBB0_8:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w2, [x19, #12]
Lloh6:
	adrp	x8, _ISCSI_CONNECTION_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISCSI_CONNECTION_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_cnic_submit_kwqe_16
LBB0_9:
	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
	add	sp, sp, #80
	ret
LBB0_10:
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x23, x24, lsl #2]
	mov	x0, x19
	bl	_cnic_close_conn
	ldr	w2, [x19, #8]
	mov	x0, x21
	mov	x1, x19
	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
	add	sp, sp, #80
	b	_cnic_cm_upcall
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SK_F_HW_ERR,4,2                ; @SK_F_HW_ERR
	.comm	_SK_F_PG_OFFLD_COMPLETE,4,2     ; @SK_F_PG_OFFLD_COMPLETE
	.comm	_ISCSI_CONNECTION_TYPE,4,2      ; @ISCSI_CONNECTION_TYPE
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_cnic_close_bnx2x_conn
.subsections_via_symbols
