	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_handle_syn_pkt
_i40iw_handle_syn_pkt:                  ## @i40iw_handle_syn_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
	subq	$16, %rsp
	.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	4(%rbx), %edi
	callq	_ntohl
	movl	$-129, %ecx
	addl	(%r15), %ecx
	rorl	%ecx
	cmpl	$2, %ecx
	jb	LBB0_4
## %bb.1:
	je	LBB0_5
## %bb.2:
	cmpl	$5, %ecx
	jne	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_i40iw_cleanup_retrans_entry
	leaq	12(%r15), %rdi
	callq	_atomic_inc
	movq	%r15, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_send_reset               ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	movl	$1, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_active_open_err          ## TAILCALL
LBB0_5:
	movl	%eax, %r14d
	movq	24(%r15), %rdi
	callq	_atomic_read
	movq	24(%r15), %rcx
	cmpl	4(%rcx), %eax
	jle	LBB0_8
## %bb.6:
	movq	40(%r15), %rax
	incl	(%rax)
	jmp	LBB0_7
LBB0_8:
	leal	-8(,%r12,4), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_i40iw_handle_tcp_options
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_passive_open_err         ## TAILCALL
LBB0_9:
	incl	%r14d
	movl	%r14d, 32(%r15)
	movl	$1, 4(%r15)
	movq	24(%r15), %rdi
	callq	_atomic_inc
	movq	_I40IW_CM_STATE_SYN_RCVD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	-40(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i40iw_get_addr_info
	movl	16(%r15), %edi
	movq	_I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_I40IW_QHASH_MANAGE_TYPE_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_i40iw_manage_qhash
	movl	$1, 8(%r15)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_CM_STATE_SYN_RCVD,4,2    ## @I40IW_CM_STATE_SYN_RCVD
	.comm	_I40IW_QHASH_TYPE_TCP_ESTABLISHED,4,2 ## @I40IW_QHASH_TYPE_TCP_ESTABLISHED
	.comm	_I40IW_QHASH_MANAGE_TYPE_ADD,4,2 ## @I40IW_QHASH_MANAGE_TYPE_ADD
	.no_dead_strip	_i40iw_handle_syn_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_syn_pkt
_i40iw_handle_syn_pkt:                  ; @i40iw_handle_syn_pkt
	.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, [x1]
	ldp	w8, w0, [x20]
	lsl	w8, w8, #2
	sub	w22, w8, #8
	bl	_ntohl
	ldr	w8, [x19]
	sub	w8, w8, #129
	ror	w8, w8, #1
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #5
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_i40iw_cleanup_retrans_entry
	add	x0, x19, #12
	bl	_atomic_inc
	mov	x0, 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	_i40iw_send_reset
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	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	_i40iw_active_open_err
LBB0_5:
	mov	x21, x0
	ldr	x0, [x19, #24]
	bl	_atomic_read
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #4]
	cmp	w0, w8
	b.le	LBB0_7
; %bb.6:
	ldr	x8, [x19, #40]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_8
LBB0_7:
	mov	w23, #1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w3, #1
	bl	_i40iw_handle_tcp_options
	cbz	w0, LBB0_9
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	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	_i40iw_passive_open_err
LBB0_9:
	add	w8, w21, #1
	str	w8, [x19, #32]
	str	w23, [x19, #4]
	ldr	x0, [x19, #24]
	bl	_atomic_inc
Lloh0:
	adrp	x8, _I40IW_CM_STATE_SYN_RCVD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_CM_STATE_SYN_RCVD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	add	x1, sp, #8
	mov	x0, x19
	bl	_i40iw_get_addr_info
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _I40IW_QHASH_MANAGE_TYPE_ADD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_QHASH_MANAGE_TYPE_ADD@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x4, x19
	mov	w5, #0
	bl	_i40iw_manage_qhash
	str	w23, [x19, #8]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_CM_STATE_SYN_RCVD,4,2    ; @I40IW_CM_STATE_SYN_RCVD
	.comm	_I40IW_QHASH_TYPE_TCP_ESTABLISHED,4,2 ; @I40IW_QHASH_TYPE_TCP_ESTABLISHED
	.comm	_I40IW_QHASH_MANAGE_TYPE_ADD,4,2 ; @I40IW_QHASH_MANAGE_TYPE_ADD
	.no_dead_strip	_i40iw_handle_syn_pkt
.subsections_via_symbols
