	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_send_syn                 ## -- Begin function i40iw_send_syn
	.p2align	4, 0x90
_i40iw_send_syn:                        ## @i40iw_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SET_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	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
	movq	%rbx, -56(%rbp)
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	_OPTION_NUMBER_MSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	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)
	movq	_OPTION_NUMBER_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%r8d, %r8d
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	_SET_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_4:
	orl	%r15d, %r8d
	movl	$9, -48(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_i40iw_form_cm_frame
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_I40IW_TIMER_TYPE_SEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_i40iw_schedule_cm_timer
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_i40iw_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_i40iw_pr_err
	movl	$-1, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_SYN,4,2                    ## @SET_SYN
	.comm	_TCP_OPTIONS_PADDING,4,2        ## @TCP_OPTIONS_PADDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no cm_node\n"

	.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	_OPTION_NUMBER_END,4,2          ## @OPTION_NUMBER_END
	.comm	_SET_ACK,4,2                    ## @SET_ACK
L_.str.1:                               ## @.str.1
	.asciz	"no sqbuf\n"

	.comm	_I40IW_TIMER_TYPE_SEND,4,2      ## @I40IW_TIMER_TYPE_SEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_send_syn                 ; -- Begin function i40iw_send_syn
	.p2align	2
_i40iw_send_syn:                        ; @i40iw_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, #32
	mov	x20, 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	w21, [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
	stur	x22, [x29, #-72]
	cbz	x0, LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _OPTION_NUMBER_MSS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPTION_NUMBER_MSS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	mov	w23, #4
	str	w23, [x22]
	ldr	w0, [x19, #4]
	bl	_htons
Lloh14:
	adrp	x8, _OPTION_NUMBER_WINDOW_SCALE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OPTION_NUMBER_WINDOW_SCALE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x8]
Lloh17:
	adrp	x9, _OPTION_NUMBER_END@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OPTION_NUMBER_END@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x9]
	str	w23, [x22, #4]
	stp	w8, w10, [x22, #8]
Lloh20:
	adrp	x8, _SET_ACK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SET_ACK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	x20, #0
	csel	w8, wzr, w8, eq
	orr	w4, w8, w21
	mov	w8, #9
	stur	w8, [x29, #-64]
	sub	x1, x29, #72
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_i40iw_form_cm_frame
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
Lloh23:
	adrp	x8, _I40IW_TIMER_TYPE_SEND@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I40IW_TIMER_TYPE_SEND@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	mov	w4, #0
	bl	_i40iw_schedule_cm_timer
	b	LBB0_5
LBB0_3:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_i40iw_pr_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_i40iw_pr_err
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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_7:
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_SYN,4,2                    ; @SET_SYN
	.comm	_TCP_OPTIONS_PADDING,4,2        ; @TCP_OPTIONS_PADDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no cm_node\n"

	.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	_OPTION_NUMBER_END,4,2          ; @OPTION_NUMBER_END
	.comm	_SET_ACK,4,2                    ; @SET_ACK
l_.str.1:                               ; @.str.1
	.asciz	"no sqbuf\n"

	.comm	_I40IW_TIMER_TYPE_SEND,4,2      ; @I40IW_TIMER_TYPE_SEND
.subsections_via_symbols
