	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_handle_close_entry
_i40iw_handle_close_entry:              ## @i40iw_handle_close_entry
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_I40IW_TCP_STATE_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_I40IW_QP_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_I40IW_AE_RESET_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_i40iw_cm_disconn
	testq	%r15, %r15
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_i40iw_rem_ref_cm_node
LBB0_7:
	testq	%r15, %r15
	je	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	*(%r15)
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
	movq	$0, (%r12)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r15, %r15
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_TCP_STATE_CLOSED,4,2     ## @I40IW_TCP_STATE_CLOSED
	.comm	_I40IW_QP_STATE_ERROR,4,2       ## @I40IW_QP_STATE_ERROR
	.comm	_I40IW_AE_RESET_SENT,4,2        ## @I40IW_AE_RESET_SENT
	.comm	_IB_QPS_ERR,4,2                 ## @IB_QPS_ERR
	.no_dead_strip	_i40iw_handle_close_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_handle_close_entry
_i40iw_handle_close_entry:              ; @i40iw_handle_close_entry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x22, [x20]
	cbz	x22, LBB0_4
; %bb.2:
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _I40IW_TCP_STATE_CLOSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_TCP_STATE_CLOSED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _I40IW_QP_STATE_ERROR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I40IW_QP_STATE_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #12]
Lloh6:
	adrp	x8, _I40IW_AE_RESET_SENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_AE_RESET_SENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IB_QPS_ERR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_QPS_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #4]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	bl	_i40iw_cm_disconn
	cbnz	x21, LBB0_7
	b	LBB0_8
LBB0_4:
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_i40iw_rem_ref_cm_node
LBB0_6:
	cbz	x21, LBB0_8
LBB0_7:
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
LBB0_8:
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbnz	x21, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_TCP_STATE_CLOSED,4,2     ; @I40IW_TCP_STATE_CLOSED
	.comm	_I40IW_QP_STATE_ERROR,4,2       ; @I40IW_QP_STATE_ERROR
	.comm	_I40IW_AE_RESET_SENT,4,2        ; @I40IW_AE_RESET_SENT
	.comm	_IB_QPS_ERR,4,2                 ; @IB_QPS_ERR
	.no_dead_strip	_i40iw_handle_close_entry
.subsections_via_symbols
