	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_handle_synack_pkt
_i40iw_handle_synack_pkt:               ## @i40iw_handle_synack_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	%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, %r15
	movq	(%rsi), %rbx
	movl	(%rbx), %r12d
	movl	8(%rbx), %edi
	callq	_ntohl
	movq	%rax, %r14
	movl	$-129, %eax
	addl	(%r15), %eax
	cmpl	$10, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	%r15, %rdi
	callq	_i40iw_cleanup_retrans_entry
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i40iw_check_syn
	testl	%eax, %eax
	je	LBB0_3
## %bb.14:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_pr_err                   ## TAILCALL
LBB0_8:
	movq	%r15, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_passive_open_err         ## TAILCALL
LBB0_9:
	movl	4(%rbx), %edi
	callq	_ntohl
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_i40iw_cleanup_retrans_entry
	movl	$139, (%r15)
	jmp	LBB0_10
LBB0_11:
	movl	4(%rbx), %edi
	callq	_ntohl
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_i40iw_cleanup_retrans_entry
	leaq	4(%r15), %rdi
	callq	_atomic_inc
LBB0_10:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_send_reset               ## TAILCALL
LBB0_3:
	leal	-12(,%r12,4), %r12d
	movl	4(%rbx), %edi
	callq	_ntohl
	movq	%rax, 24(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_i40iw_handle_tcp_options
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	32(%r15), %edi
	movq	_I40IW_DEBUG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_i40iw_cleanup_retrans_entry
	incl	%r14d
	movl	%r14d, 16(%r15)
	movq	%r15, %rdi
	callq	_i40iw_send_ack
	movq	%r15, %rdi
	callq	_i40iw_send_mpa_request
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	32(%r15), %edi
	movq	_I40IW_DEBUG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_5:
	movq	%r15, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_debug                    ## TAILCALL
LBB0_12:
	movl	$131, (%r15)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check syn fail\n"

	.comm	_I40IW_DEBUG_CM,4,2             ## @I40IW_DEBUG_CM
L_.str.1:                               ## @.str.1
	.asciz	"cm_node=%p tcp_options failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"cm_node=%p i40iw_send_mpa_request failed\n"

	.no_dead_strip	_i40iw_handle_synack_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_synack_pkt
_i40iw_handle_synack_pkt:               ; @i40iw_handle_synack_pkt
	.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
	mov	x19, x0
	ldr	x21, [x1]
	ldr	w22, [x21]
	ldr	w0, [x21, #8]
	bl	_ntohl
	ldr	w8, [x19]
	sub	w8, w8, #129
	cmp	w8, #10
	b.hi	LBB0_14
; %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:
	mov	x20, x0
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
	mov	x0, x19
	mov	x1, x21
	bl	_i40iw_check_syn
	cbz	w0, LBB0_8
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_i40iw_pr_err
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	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
	b	_i40iw_passive_open_err
LBB0_5:
	ldr	w0, [x21, #4]
	bl	_ntohl
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
	mov	w8, #139
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x21, #4]
	bl	_ntohl
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
	add	x0, x19, #4
	bl	_atomic_inc
LBB0_7:
	mov	x0, x19
	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
	b	_i40iw_send_reset
LBB0_8:
	lsl	w8, w22, #2
	sub	w22, w8, #12
	ldr	w0, [x21, #4]
	bl	_ntohl
	str	x0, [x19, #24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	bl	_i40iw_handle_tcp_options
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #32]
Lloh4:
	adrp	x8, _I40IW_DEBUG_CM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I40IW_DEBUG_CM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
	add	w8, w20, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_i40iw_send_ack
	mov	x0, x19
	bl	_i40iw_send_mpa_request
	cbz	w0, LBB0_13
; %bb.11:
	ldr	w0, [x19, #32]
Lloh9:
	adrp	x8, _I40IW_DEBUG_CM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40IW_DEBUG_CM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_12:
	mov	x3, x19
	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
	b	_i40iw_debug
LBB0_13:
	mov	w8, #131
	str	w8, [x19]
LBB0_14:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check syn fail\n"

	.comm	_I40IW_DEBUG_CM,4,2             ; @I40IW_DEBUG_CM
l_.str.1:                               ; @.str.1
	.asciz	"cm_node=%p tcp_options failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"cm_node=%p i40iw_send_mpa_request failed\n"

	.no_dead_strip	_i40iw_handle_synack_pkt
.subsections_via_symbols
