	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_terminate_done           ## -- Begin function i40iw_terminate_done
	.p2align	4, 0x90
_i40iw_terminate_done:                  ## @i40iw_terminate_done
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_I40IW_QP_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	$0, 8(%rbx)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movl	(%r12), %r15d
	movq	_I40IW_TERM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %eax
	orl	%r15d, %eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r15d, %r14d
	je	LBB0_4
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.6:
	movq	_I40IW_QP_STATE_CLOSING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	callq	_i40iw_terminate_del_timer
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_7:
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_i40iw_next_iw_state
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_cm_disconn               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_QP_STATE_ERROR,4,2       ## @I40IW_QP_STATE_ERROR
	.comm	_I40IW_TERM_DONE,4,2            ## @I40IW_TERM_DONE
	.comm	_I40IW_QP_STATE_CLOSING,4,2     ## @I40IW_QP_STATE_CLOSING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_terminate_done           ; -- Begin function i40iw_terminate_done
	.p2align	2
_i40iw_terminate_done:                  ; @i40iw_terminate_done
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _I40IW_QP_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_QP_STATE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #8]
	mov	w22, #1
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _I40IW_TERM_DONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40IW_TERM_DONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w24, w9, w8
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	w24, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _I40IW_QP_STATE_CLOSING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_QP_STATE_CLOSING@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_i40iw_terminate_del_timer
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	mov	w4, #0
	bl	_i40iw_next_iw_state
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_i40iw_cm_disconn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_QP_STATE_ERROR,4,2       ; @I40IW_QP_STATE_ERROR
	.comm	_I40IW_TERM_DONE,4,2            ; @I40IW_TERM_DONE
	.comm	_I40IW_QP_STATE_CLOSING,4,2     ; @I40IW_QP_STATE_CLOSING
.subsections_via_symbols
