	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_handle_fin_pkt
_i40iw_handle_fin_pkt:                  ## @i40iw_handle_fin_pkt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	leal	-128(%rdx), %eax
	cmpl	$8, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_i40iw_cleanup_retrans_entry
	movq	_I40IW_CM_STATE_LAST_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i40iw_send_fin                 ## TAILCALL
LBB0_7:
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_i40iw_cleanup_retrans_entry
	movq	_I40IW_CM_STATE_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i40iw_rem_ref_cm_node          ## TAILCALL
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_9
LBB0_3:
	movq	_I40IW_CM_EVENT_ABORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i40iw_create_event
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_i40iw_cleanup_retrans_entry
	movq	_I40IW_CM_STATE_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i40iw_send_reset               ## TAILCALL
LBB0_5:
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_i40iw_cleanup_retrans_entry
	movl	$128, (%rbx)
	movq	%rbx, %rdi
	callq	_i40iw_send_ack
	movq	_I40IW_TIMER_TYPE_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_i40iw_schedule_cm_timer
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i40iw_pr_err                   ## TAILCALL
LBB0_4:
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_i40iw_cleanup_retrans_entry
	movq	_I40IW_CM_STATE_CLOSING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i40iw_send_ack                 ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_I40IW_CM_STATE_LAST_ACK,4,2    ## @I40IW_CM_STATE_LAST_ACK
	.comm	_I40IW_CM_EVENT_ABORTED,4,2     ## @I40IW_CM_EVENT_ABORTED
	.comm	_I40IW_CM_STATE_CLOSED,8,3      ## @I40IW_CM_STATE_CLOSED
	.comm	_I40IW_CM_STATE_CLOSING,4,2     ## @I40IW_CM_STATE_CLOSING
	.comm	_I40IW_TIMER_TYPE_CLOSE,4,2     ## @I40IW_TIMER_TYPE_CLOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node %p state = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad state node %p state = %d\n"

	.no_dead_strip	_i40iw_handle_fin_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_handle_fin_pkt
_i40iw_handle_fin_pkt:                  ; @i40iw_handle_fin_pkt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w2, [x0]
	sub	w8, w2, #128
	cmp	w8, #8
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
Lloh2:
	adrp	x8, _I40IW_CM_STATE_LAST_ACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IW_CM_STATE_LAST_ACK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i40iw_send_fin
LBB0_3:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
Lloh5:
	adrp	x8, _I40IW_CM_STATE_CLOSED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_CM_STATE_CLOSED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i40iw_rem_ref_cm_node
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _I40IW_CM_EVENT_ABORTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I40IW_CM_EVENT_ABORTED@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i40iw_create_event
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
Lloh13:
	adrp	x8, _I40IW_CM_STATE_CLOSED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40IW_CM_STATE_CLOSED@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	w8, [x19]
	add	x0, x19, #8
	bl	_atomic_inc
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i40iw_send_reset
LBB0_6:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
	mov	w8, #128
	str	w8, [x19]
	mov	x0, x19
	bl	_i40iw_send_ack
Lloh16:
	adrp	x8, _I40IW_TIMER_TYPE_CLOSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I40IW_TIMER_TYPE_CLOSE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #1
	mov	w4, #0
	bl	_i40iw_schedule_cm_timer
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w2, [x19]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i40iw_pr_err
LBB0_9:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
Lloh21:
	adrp	x8, _I40IW_CM_STATE_CLOSING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40IW_CM_STATE_CLOSING@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i40iw_send_ack
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_I40IW_CM_STATE_LAST_ACK,4,2    ; @I40IW_CM_STATE_LAST_ACK
	.comm	_I40IW_CM_EVENT_ABORTED,4,2     ; @I40IW_CM_EVENT_ABORTED
	.comm	_I40IW_CM_STATE_CLOSED,8,3      ; @I40IW_CM_STATE_CLOSED
	.comm	_I40IW_CM_STATE_CLOSING,4,2     ; @I40IW_CM_STATE_CLOSING
	.comm	_I40IW_TIMER_TYPE_CLOSE,4,2     ; @I40IW_TIMER_TYPE_CLOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node %p state = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad state node %p state = %d\n"

	.no_dead_strip	_i40iw_handle_fin_pkt
.subsections_via_symbols
