	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MSSFixup
_MSSFixup:                              ## @MSSFixup
	.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
	movl	(%rdi), %eax
	shll	$2, %eax
	cmpl	$13, %eax
	jb	LBB0_15
## %bb.1:
	movslq	%eax, %r15
	cmpq	%rsi, %r15
	ja	LBB0_15
## %bb.2:
	movq	%rdi, %rbx
	movq	_TH_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_15
## %bb.3:
	addq	$-12, %r15
	je	LBB0_15
## %bb.4:
	movl	%edx, %r13d
	leaq	12(%rbx), %r14
	movq	_TCPOPT_EOL@GOTPCREL(%rip), %rcx
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %rdx
	movq	_TCPOPT_MAXSEG@GOTPCREL(%rip), %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_TCPOPT_EOL@GOTPCREL(%rip), %rcx
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %rdx
	movq	_TCPOPT_MAXSEG@GOTPCREL(%rip), %rsi
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r14,%r12,8), %r14
	subq	%r12, %r15
	je	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r12d
	cmpq	(%rdx), %rax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, %r12
	ja	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%rsi), %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_TCPOLEN_MAXSEG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r14), %edi
	callq	_ntohs
	cmpl	%r13d, %eax
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	16(%r14), %edi
	callq	_ntohs
	movl	%ebx, %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%r13d, %ecx
	callq	_log_Printf
	movl	16(%r14), %ebx
	movl	%r13d, %edi
	callq	_htons
	movl	%eax, 16(%r14)
	subl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movl	%ebx, %edi
	callq	_ADJUST_CHECKSUM
	jmp	LBB0_13
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TH_SYN,4,2                     ## @TH_SYN
	.comm	_TCPOPT_EOL,8,3                 ## @TCPOPT_EOL
	.comm	_TCPOPT_NOP,8,3                 ## @TCPOPT_NOP
	.comm	_TCPOPT_MAXSEG,8,3              ## @TCPOPT_MAXSEG
	.comm	_TCPOLEN_MAXSEG,8,3             ## @TCPOLEN_MAXSEG
	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSS: %u -> %u\n"

	.no_dead_strip	_MSSFixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MSSFixup
_MSSFixup:                              ; @MSSFixup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	lsl	w9, w8, #2
	sxtw	x8, w9
	cmp	w9, #13
	ccmp	x8, x1, #2, hs
	b.hi	LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	w9, [x0, #4]
Lloh0:
	adrp	x10, _TH_SYN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TH_SYN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.2:
	subs	x23, x8, #12
	b.eq	LBB0_12
; %bb.3:
	mov	x19, x2
	add	x24, x20, #12
Lloh3:
	adrp	x25, _TCPOPT_EOL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TCPOPT_EOL@GOTPAGEOFF]
Lloh5:
	adrp	x26, _TCPOPT_NOP@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TCPOPT_NOP@GOTPAGEOFF]
Lloh7:
	adrp	x27, _TCPOPT_MAXSEG@GOTPAGE
Lloh8:
	ldr	x27, [x27, _TCPOPT_MAXSEG@GOTPAGEOFF]
Lloh9:
	adrp	x28, _TCPOLEN_MAXSEG@GOTPAGE
Lloh10:
	ldr	x28, [x28, _TCPOLEN_MAXSEG@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w21, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, x21, lsl #3
	subs	x23, x23, x21
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x21, [x24, #8]
	cmp	x21, #0
	ccmp	x21, x23, #2, ne
	b.hi	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x21, x10, #0, eq
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24, #16]
	bl	_ntohs
	cmp	w0, w19
	b.le	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x8, _LogDEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LogDEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	ldr	w0, [x24, #16]
	bl	_ntohs
	mov	x2, x0
	mov	x0, x22
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_log_Printf
	ldr	w22, [x24, #16]
	mov	x0, x19
	bl	_htons
	str	w0, [x24, #16]
	sub	w0, w22, w0
	ldr	w1, [x20, #8]
	bl	_ADJUST_CHECKSUM
	b	LBB0_5
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TH_SYN,4,2                     ; @TH_SYN
	.comm	_TCPOPT_EOL,8,3                 ; @TCPOPT_EOL
	.comm	_TCPOPT_NOP,8,3                 ; @TCPOPT_NOP
	.comm	_TCPOPT_MAXSEG,8,3              ; @TCPOPT_MAXSEG
	.comm	_TCPOLEN_MAXSEG,8,3             ; @TCPOLEN_MAXSEG
	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSS: %u -> %u\n"

	.no_dead_strip	_MSSFixup
.subsections_via_symbols
