	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_syn
_send_syn:                              ## @send_syn
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TCP_OPTIONS_PADDING@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	_SET_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$4, (%rbx)
	movl	4(%r12), %edi
	callq	_htons
	movq	_OPTION_NUMBER_WINDOW_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$4, 4(%rbx)
	movl	(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	$8, %r13d
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	movq	_NES_DRV_OPT_SUPRESS_OPTION_BC@GOTPCREL(%rip), %rax
	movq	_nes_drv_opt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_5
## %bb.4:
	movabsq	$4294967300, %rax               ## imm = 0x100000004
	movq	%rax, 8(%rbx)
	movl	$1, 13(%rbx)
	movl	$14, %r13d
LBB0_5:
	movl	%r13d, %eax
	movq	_OPTION_NUMBER_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx,%rax)
	testq	%r14, %r14
	jne	LBB0_8
## %bb.6:
	movq	_MAX_CM_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dev_alloc_skb
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	orl	$1, %r13d
	movl	$0, %eax
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	_SET_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	orl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_form_cm_frame
	addq	$16, %rsp
	movq	_NES_TIMER_TYPE_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_schedule_nes_timer
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_SYN,4,2                    ## @SET_SYN
	.comm	_TCP_OPTIONS_PADDING,4,2        ## @TCP_OPTIONS_PADDING
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OPTION_NUMBER_MSS,4,2          ## @OPTION_NUMBER_MSS
	.comm	_OPTION_NUMBER_WINDOW_SCALE,4,2 ## @OPTION_NUMBER_WINDOW_SCALE
	.comm	_NES_DRV_OPT_SUPRESS_OPTION_BC,4,2 ## @NES_DRV_OPT_SUPRESS_OPTION_BC
	.comm	_nes_drv_opt,4,2                ## @nes_drv_opt
	.comm	_OPTION_NUMBER_WRITE0,4,2       ## @OPTION_NUMBER_WRITE0
	.comm	_OPTION_NUMBER_END,4,2          ## @OPTION_NUMBER_END
	.comm	_MAX_CM_BUFFER,4,2              ## @MAX_CM_BUFFER
	.comm	_NES_DBG_CM,4,2                 ## @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get a Free pkt\n"

	.comm	_SET_ACK,4,2                    ## @SET_ACK
	.comm	_NES_TIMER_TYPE_SEND,4,2        ## @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_syn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function send_syn
lCPI0_0:
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_send_syn:                              ; @send_syn
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SET_SYN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SET_SYN@GOTPAGEOFF]
	stur	x8, [x29, #-56]
Lloh5:
	ldr	w23, [x9]
Lloh6:
	adrp	x8, _TCP_OPTIONS_PADDING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCP_OPTIONS_PADDING@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x9, x8, #12
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #27
	and	x8, x8, #0xfffffffffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_htons
Lloh11:
	adrp	x8, _OPTION_NUMBER_WINDOW_SCALE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPTION_NUMBER_WINDOW_SCALE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	movi.2s	v0, #4
	str	d0, [x22]
	ldr	w9, [x19]
	stp	w9, w8, [x22, #8]
	cbz	x21, LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _NES_DRV_OPT_SUPRESS_OPTION_BC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NES_DRV_OPT_SUPRESS_OPTION_BC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _nes_drv_opt@GOTPAGE
Lloh18:
	ldr	x9, [x9, _nes_drv_opt@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	w24, #8
	b	LBB0_6
LBB0_4:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
Lloh23:
	adrp	x8, lCPI0_0@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22, #8]
	mov	w8, #1
	stur	w8, [x22, #13]
	mov	w24, #14
LBB0_6:
Lloh25:
	adrp	x8, _OPTION_NUMBER_END@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OPTION_NUMBER_END@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x22, w24, uxtw]
	cbnz	x20, LBB0_8
; %bb.7:
Lloh28:
	adrp	x8, _MAX_CM_BUFFER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAX_CM_BUFFER@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_dev_alloc_skb
	mov	x20, x0
	cbz	x0, LBB0_11
LBB0_8:
	orr	w3, w24, #0x1
Lloh31:
	adrp	x8, _SET_ACK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SET_ACK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	x21, #0
	csel	w8, wzr, w8, eq
	orr	w6, w8, w23
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	bl	_form_cm_frame
Lloh34:
	adrp	x8, _NES_TIMER_TYPE_SEND@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NES_TIMER_TYPE_SEND@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	mov	w4, #0
	bl	_schedule_nes_timer
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	sub	sp, x29, #48
	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_11:
Lloh40:
	adrp	x8, _NES_DBG_CM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NES_DBG_CM@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
	mov	w0, #-1
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_SYN,4,2                    ; @SET_SYN
	.comm	_TCP_OPTIONS_PADDING,4,2        ; @TCP_OPTIONS_PADDING
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OPTION_NUMBER_MSS,4,2          ; @OPTION_NUMBER_MSS
	.comm	_OPTION_NUMBER_WINDOW_SCALE,4,2 ; @OPTION_NUMBER_WINDOW_SCALE
	.comm	_NES_DRV_OPT_SUPRESS_OPTION_BC,4,2 ; @NES_DRV_OPT_SUPRESS_OPTION_BC
	.comm	_nes_drv_opt,4,2                ; @nes_drv_opt
	.comm	_OPTION_NUMBER_WRITE0,4,2       ; @OPTION_NUMBER_WRITE0
	.comm	_OPTION_NUMBER_END,4,2          ; @OPTION_NUMBER_END
	.comm	_MAX_CM_BUFFER,4,2              ; @MAX_CM_BUFFER
	.comm	_NES_DBG_CM,4,2                 ; @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get a Free pkt\n"

	.comm	_SET_ACK,4,2                    ; @SET_ACK
	.comm	_NES_TIMER_TYPE_SEND,4,2        ; @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_syn
.subsections_via_symbols
