	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_syn_pkt
_handle_syn_pkt:                        ## @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	%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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdx), %r13d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	movl	4(%rbx), %edi
	callq	_ntohl
	movl	%eax, %r12d
	movl	(%r15), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_4
## %bb.1:
	cmpl	$133, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$139, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_cleanup_retrans_entry
	movq	%r15, %rdi
	callq	_add_ref_cm_node
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_reset                     ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_active_open_err                ## TAILCALL
LBB0_5:
	movq	8(%r15), %rdi
	callq	_atomic_read
	movq	8(%r15), %rcx
	cmpl	4(%rcx), %eax
	jle	LBB0_8
## %bb.6:
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	movq	_cm_backlog_drops@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_7
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drop_packet                    ## TAILCALL
LBB0_8:
	leal	-8(,%r13,4), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$1, %r8d
	callq	_handle_tcp_options
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_passive_open_err               ## TAILCALL
LBB0_9:
	incl	%r12d
	movl	%r12d, 20(%r15)
	movl	16(%r15), %edi
	callq	_BUG_ON
	movl	$1, 4(%r15)
	movq	8(%r15), %rdi
	callq	_atomic_inc
	movq	_NES_CM_STATE_SYN_RCVD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_syn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_DBG_CM,4,2                 ## @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drop syn due to backlog pressure \n"

	.comm	_cm_backlog_drops,4,2           ## @cm_backlog_drops
	.comm	_NES_CM_STATE_SYN_RCVD,4,2      ## @NES_CM_STATE_SYN_RCVD
	.no_dead_strip	_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 handle_syn_pkt
_handle_syn_pkt:                        ; @handle_syn_pkt
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w23, [x2]
	mov	x0, x1
	mov	w1, #0
	bl	_skb_trim
	ldr	w0, [x21, #4]
	bl	_ntohl
	ldr	w8, [x20]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w8, #133
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #139
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_cleanup_retrans_entry
	mov	x0, x20
	bl	_add_ref_cm_node
	mov	x0, x20
	mov	x1, 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	_send_reset
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	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	_active_open_err
LBB0_5:
	mov	x22, x0
	ldr	x0, [x20, #8]
	bl	_atomic_read
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	cmp	w0, w8
	b.le	LBB0_8
; %bb.6:
Lloh0:
	adrp	x8, _NES_DBG_CM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NES_DBG_CM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
Lloh5:
	adrp	x8, _cm_backlog_drops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cm_backlog_drops@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_9
LBB0_7:
	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	_drop_packet
LBB0_8:
	lsl	w8, w23, #2
	sub	w3, w8, #8
	mov	w23, #1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_handle_tcp_options
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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	_passive_open_err
LBB0_10:
	add	w8, w22, #1
	str	w8, [x20, #20]
	ldr	w0, [x20, #16]
	bl	_BUG_ON
	str	w23, [x20, #4]
	ldr	x0, [x20, #8]
	bl	_atomic_inc
Lloh7:
	adrp	x8, _NES_CM_STATE_SYN_RCVD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NES_CM_STATE_SYN_RCVD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	mov	w1, #1
	mov	x2, 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	_send_syn
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_DBG_CM,4,2                 ; @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drop syn due to backlog pressure \n"

	.comm	_cm_backlog_drops,4,2           ; @cm_backlog_drops
	.comm	_NES_CM_STATE_SYN_RCVD,4,2      ; @NES_CM_STATE_SYN_RCVD
	.no_dead_strip	_handle_syn_pkt
.subsections_via_symbols
