	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_prep                       ## -- Begin function tcp_prep
	.p2align	4, 0x90
_tcp_prep:                              ## @tcp_prep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_outp@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ident@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	movl	%eax, (%rbx)
	movq	_port@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_fixedPort@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	jmp	LBB0_3
LBB0_2:
	movq	(%r14), %rdi
LBB0_3:
	addq	%rax, %rdi
	callq	_htons
	movl	%eax, 4(%rbx)
	movl	(%rbx), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	%ecx, 8(%rbx)
	movq	$0, 32(%rbx)
	movl	$5, 12(%rbx)
	movq	_TH_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	_doipcksum@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_outip@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_protlen@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	movl	%ecx, %edx
	callq	_p_cksum
	movq	%rax, 16(%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_outp,8,3                       ## @outp
	.comm	_ident,8,3                      ## @ident
	.comm	_port,8,3                       ## @port
	.comm	_fixedPort,8,3                  ## @fixedPort
	.comm	_TH_SYN,4,2                     ## @TH_SYN
	.comm	_doipcksum,8,3                  ## @doipcksum
	.comm	_outip,4,2                      ## @outip
	.comm	_protlen,4,2                    ## @protlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_prep                       ; -- Begin function tcp_prep
	.p2align	2
_tcp_prep:                              ; @tcp_prep
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _outp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _outp@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _ident@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ident@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_htons
	str	w0, [x19]
Lloh6:
	adrp	x8, _port@GOTPAGE
Lloh7:
	ldr	x8, [x8, _port@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _fixedPort@GOTPAGE
Lloh10:
	ldr	x9, [x9, _fixedPort@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x9, #0
	b	LBB0_3
LBB0_2:
	ldr	x9, [x20]
LBB0_3:
	add	x0, x9, x8
	bl	_htons
	ldr	w8, [x19]
	orr	w8, w0, w8, lsl #16
	stp	w0, w8, [x19, #4]
	str	xzr, [x19, #32]
	mov	w8, #5
	str	w8, [x19, #12]
Lloh12:
	adrp	x8, _TH_SYN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TH_SYN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
Lloh15:
	adrp	x8, _doipcksum@GOTPAGE
Lloh16:
	ldr	x8, [x8, _doipcksum@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _outip@GOTPAGE
Lloh19:
	ldr	x8, [x8, _outip@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _protlen@GOTPAGE
Lloh22:
	ldr	x8, [x8, _protlen@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, x2
	bl	_p_cksum
	str	x0, [x19, #16]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_outp,8,3                       ; @outp
	.comm	_ident,8,3                      ; @ident
	.comm	_port,8,3                       ; @port
	.comm	_fixedPort,8,3                  ; @fixedPort
	.comm	_TH_SYN,4,2                     ; @TH_SYN
	.comm	_doipcksum,8,3                  ; @doipcksum
	.comm	_outip,4,2                      ; @outip
	.comm	_protlen,4,2                    ; @protlen
.subsections_via_symbols
