	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_options_write
_tcp_options_write:                     ## @tcp_options_write
	.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	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_OPTION_MD5@GOTPCREL(%rip), %rax
	movl	(%rdx), %edi
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$24, %ecx
	shll	$16, %eax
	orl	%ecx, %eax
	movq	_TCPOPT_MD5SIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$8, %edi
	orl	%eax, %edi
	movq	_TCPOLEN_MD5SIG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_htonl
	leaq	4(%r13), %rcx
	movl	%eax, (%r13)
	movq	%rcx, (%r12)
	addq	$20, %r13
	jmp	LBB0_3
LBB0_2:
	movq	$0, (%r12)
LBB0_3:
	movl	4(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_TCPOPT_MSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movq	_TCPOLEN_MSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$16, %edi
	orl	%eax, %edi
	orl	4(%r15), %edi
	callq	_htonl
	movl	%eax, (%r13)
	addq	$4, %r13
LBB0_5:
	movq	_OPTION_TS@GOTPCREL(%rip), %r12
	movl	(%r15), %edi
	andl	(%r12), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_OPTION_SACK_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%r15), %edi
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_TCPOPT_SACK_PERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movq	_TCPOLEN_SACK_PERM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	jmp	LBB0_9
LBB0_8:
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$24, %ecx
	shll	$16, %eax
LBB0_9:
	orl	%ecx, %eax
	movq	_TCPOPT_TIMESTAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$8, %edi
	orl	%eax, %edi
	movq	_TCPOLEN_TIMESTAMP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_htonl
	movl	%eax, (%r13)
	movl	8(%r15), %edi
	callq	_htonl
	movl	%eax, 4(%r13)
	movl	12(%r15), %edi
	callq	_htonl
	movl	%eax, 8(%r13)
	addq	$12, %r13
LBB0_10:
	movq	_OPTION_SACK_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	movl	(%rax), %eax
	andl	%ecx, %eax
	setne	%al
	andl	(%r12), %ecx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$24, %ecx
	shll	$16, %eax
	orl	%ecx, %eax
	movq	_TCPOPT_SACK_PERM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$8, %edi
	orl	%eax, %edi
	movq	_TCPOLEN_SACK_PERM@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_htonl
	movl	%eax, (%r13)
	addq	$4, %r13
LBB0_12:
	movq	_OPTION_WSCALE@GOTPCREL(%rip), %rax
	movl	(%r15), %edi
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movq	_TCPOPT_WINDOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	_TCPOLEN_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	%ecx, %edi
	orl	16(%r15), %edi
	callq	_htonl
	movl	%eax, (%r13)
	addq	$4, %r13
LBB0_14:
	movl	20(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	setne	%al
	movq	8(%r14,%rax,8), %r12
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$24, %ecx
	shll	$16, %eax
	orl	%ecx, %eax
	movq	_TCPOPT_SACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	movq	_TCPOLEN_SACK_PERBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	20(%r15), %edi
	movq	_TCPOLEN_SACK_BASE@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	orl	%ecx, %edi
	callq	_htonl
	movl	%eax, (%r13)
	cmpl	$0, 20(%r15)
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,8), %edi
	callq	_htonl
	movl	%eax, 4(%r13,%rbx,8)
	movl	4(%r12,%rbx,8), %edi
	callq	_htonl
	movl	%eax, 8(%r13,%rbx,8)
	incq	%rbx
	movslq	20(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_18:
	movq	$0, (%r14)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPTION_MD5,4,2                 ## @OPTION_MD5
	.comm	_TCPOPT_NOP,4,2                 ## @TCPOPT_NOP
	.comm	_TCPOPT_MD5SIG,4,2              ## @TCPOPT_MD5SIG
	.comm	_TCPOLEN_MD5SIG,4,2             ## @TCPOLEN_MD5SIG
	.comm	_TCPOPT_MSS,4,2                 ## @TCPOPT_MSS
	.comm	_TCPOLEN_MSS,4,2                ## @TCPOLEN_MSS
	.comm	_OPTION_TS,4,2                  ## @OPTION_TS
	.comm	_OPTION_SACK_ADVERTISE,4,2      ## @OPTION_SACK_ADVERTISE
	.comm	_TCPOPT_SACK_PERM,4,2           ## @TCPOPT_SACK_PERM
	.comm	_TCPOLEN_SACK_PERM,4,2          ## @TCPOLEN_SACK_PERM
	.comm	_TCPOPT_TIMESTAMP,4,2           ## @TCPOPT_TIMESTAMP
	.comm	_TCPOLEN_TIMESTAMP,4,2          ## @TCPOLEN_TIMESTAMP
	.comm	_OPTION_WSCALE,4,2              ## @OPTION_WSCALE
	.comm	_TCPOPT_WINDOW,4,2              ## @TCPOPT_WINDOW
	.comm	_TCPOLEN_WINDOW,4,2             ## @TCPOLEN_WINDOW
	.comm	_TCPOPT_SACK,4,2                ## @TCPOPT_SACK
	.comm	_TCPOLEN_SACK_BASE,4,2          ## @TCPOLEN_SACK_BASE
	.comm	_TCPOLEN_SACK_PERBLOCK,4,2      ## @TCPOLEN_SACK_PERBLOCK
	.no_dead_strip	_tcp_options_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_options_write
_tcp_options_write:                     ; @tcp_options_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _OPTION_MD5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPTION_MD5@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x2]
	and	w0, w9, w8
	bl	_unlikely
Lloh3:
	adrp	x23, _TCPOPT_NOP@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TCPOPT_NOP@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	lsl	w9, w8, #24
	orr	w8, w9, w8, lsl #16
Lloh5:
	adrp	x9, _TCPOPT_MD5SIG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TCPOPT_MD5SIG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #8
Lloh8:
	adrp	x9, _TCPOLEN_MD5SIG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TCPOLEN_MD5SIG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_htonl
	add	x8, x21, #4
	str	w0, [x21], #20
	str	x8, [x22]
	b	LBB0_3
LBB0_2:
	str	xzr, [x22]
LBB0_3:
	ldr	w0, [x20, #4]
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _TCPOPT_MSS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCPOPT_MSS@GOTPAGEOFF]
Lloh13:
	adrp	x9, _TCPOLEN_MSS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TCPOLEN_MSS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldr	w9, [x20, #4]
	orr	w0, w8, w9
	bl	_htonl
	str	w0, [x21], #4
LBB0_5:
Lloh17:
	adrp	x25, _OPTION_TS@GOTPAGE
Lloh18:
	ldr	x25, [x25, _OPTION_TS@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x20]
	and	w0, w9, w8
	bl	_likely
Lloh19:
	adrp	x26, _OPTION_SACK_ADVERTISE@GOTPAGE
Lloh20:
	ldr	x26, [x26, _OPTION_SACK_ADVERTISE@GOTPAGEOFF]
Lloh21:
	adrp	x24, _TCPOPT_SACK_PERM@GOTPAGE
Lloh22:
	ldr	x24, [x24, _TCPOPT_SACK_PERM@GOTPAGEOFF]
Lloh23:
	adrp	x22, _TCPOLEN_SACK_PERM@GOTPAGE
Lloh24:
	ldr	x22, [x22, _TCPOLEN_SACK_PERM@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w8, [x26]
	ldr	w9, [x20]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x24]
	lsl	w8, w8, #24
	ldr	w9, [x22]
	lsl	w9, w9, #16
	b	LBB0_9
LBB0_8:
	ldr	w8, [x23]
	lsl	w9, w8, #24
	lsl	w8, w8, #16
LBB0_9:
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _TCPOPT_TIMESTAMP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TCPOPT_TIMESTAMP@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #8
Lloh28:
	adrp	x9, _TCPOLEN_TIMESTAMP@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TCPOLEN_TIMESTAMP@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_htonl
	str	w0, [x21]
	ldr	w0, [x20, #8]
	bl	_htonl
	str	w0, [x21, #4]
	ldr	w0, [x20, #12]
	bl	_htonl
	str	w0, [x21, #8]
	add	x21, x21, #12
LBB0_10:
	ldr	w8, [x26]
	ldr	w9, [x20]
	tst	w9, w8
	cset	w8, ne
	ldr	w10, [x25]
	tst	w10, w9
	cset	w9, eq
	and	w0, w8, w9
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w8, [x23]
	lsl	w9, w8, #24
	orr	w8, w9, w8, lsl #16
	ldr	w9, [x24]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x22]
	orr	w0, w8, w9
	bl	_htonl
	str	w0, [x21], #4
LBB0_12:
Lloh31:
	adrp	x8, _OPTION_WSCALE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OPTION_WSCALE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x20]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w8, [x23]
Lloh34:
	adrp	x9, _TCPOPT_WINDOW@GOTPAGE
Lloh35:
	ldr	x9, [x9, _TCPOPT_WINDOW@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
Lloh37:
	adrp	x9, _TCPOLEN_WINDOW@GOTPAGE
Lloh38:
	ldr	x9, [x9, _TCPOLEN_WINDOW@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x20, #16]
	orr	w0, w8, w9
	bl	_htonl
	str	w0, [x21], #4
LBB0_14:
	ldr	w0, [x20, #20]
	bl	_unlikely
	cbz	x0, LBB0_19
; %bb.15:
	ldr	x8, [x19]
	mov	w9, #16
	mov	w10, #8
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x24, [x19, x8]
	ldr	w8, [x23]
	lsl	w9, w8, #24
Lloh40:
	adrp	x10, _TCPOPT_SACK@GOTPAGE
Lloh41:
	ldr	x10, [x10, _TCPOPT_SACK@GOTPAGEOFF]
	orr	w8, w9, w8, lsl #16
Lloh42:
	ldr	w9, [x10]
	orr	w8, w8, w9, lsl #8
Lloh43:
	adrp	x9, _TCPOLEN_SACK_BASE@GOTPAGE
Lloh44:
	ldr	x9, [x9, _TCPOLEN_SACK_BASE@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	ldr	w10, [x20, #20]
Lloh46:
	adrp	x11, _TCPOLEN_SACK_PERBLOCK@GOTPAGE
Lloh47:
	ldr	x11, [x11, _TCPOLEN_SACK_PERBLOCK@GOTPAGEOFF]
Lloh48:
	ldr	w11, [x11]
	madd	w9, w11, w10, w9
	orr	w0, w8, w9
	bl	_htonl
	str	w0, [x21]
	ldr	w8, [x20, #20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x22, #0
	add	x21, x21, #4
	add	x23, x24, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x23, #-4]
	bl	_htonl
	str	w0, [x21]
	ldr	w0, [x23], #8
	bl	_htonl
	str	w0, [x21, #4]
	add	x22, x22, #1
	ldrsw	x8, [x20, #20]
	add	x21, x21, #8
	cmp	x22, x8
	b.lt	LBB0_17
LBB0_18:
	str	xzr, [x19]
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_OPTION_MD5,4,2                 ; @OPTION_MD5
	.comm	_TCPOPT_NOP,4,2                 ; @TCPOPT_NOP
	.comm	_TCPOPT_MD5SIG,4,2              ; @TCPOPT_MD5SIG
	.comm	_TCPOLEN_MD5SIG,4,2             ; @TCPOLEN_MD5SIG
	.comm	_TCPOPT_MSS,4,2                 ; @TCPOPT_MSS
	.comm	_TCPOLEN_MSS,4,2                ; @TCPOLEN_MSS
	.comm	_OPTION_TS,4,2                  ; @OPTION_TS
	.comm	_OPTION_SACK_ADVERTISE,4,2      ; @OPTION_SACK_ADVERTISE
	.comm	_TCPOPT_SACK_PERM,4,2           ; @TCPOPT_SACK_PERM
	.comm	_TCPOLEN_SACK_PERM,4,2          ; @TCPOLEN_SACK_PERM
	.comm	_TCPOPT_TIMESTAMP,4,2           ; @TCPOPT_TIMESTAMP
	.comm	_TCPOLEN_TIMESTAMP,4,2          ; @TCPOLEN_TIMESTAMP
	.comm	_OPTION_WSCALE,4,2              ; @OPTION_WSCALE
	.comm	_TCPOPT_WINDOW,4,2              ; @TCPOPT_WINDOW
	.comm	_TCPOLEN_WINDOW,4,2             ; @TCPOLEN_WINDOW
	.comm	_TCPOPT_SACK,4,2                ; @TCPOPT_SACK
	.comm	_TCPOLEN_SACK_BASE,4,2          ; @TCPOLEN_SACK_BASE
	.comm	_TCPOLEN_SACK_PERBLOCK,4,2      ; @TCPOLEN_SACK_PERBLOCK
	.no_dead_strip	_tcp_options_write
.subsections_via_symbols
