	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_emss
_set_emss:                              ## @set_emss
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movl	%esi, %edi
	callq	_TCPOPT_MSS_G
	movl	(%r15,%rax,4), %eax
	addl	$-8, %eax
	movl	%eax, (%rbx)
	movl	%eax, 4(%rbx)
	movl	%r14d, %edi
	callq	_TCPOPT_TSTAMP_G
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TCPOLEN_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_round_up
	movl	(%rbx), %ecx
	subl	%eax, %ecx
	movl	%ecx, (%rbx)
	cmpl	$127, %ecx
	jg	LBB0_5
LBB0_4:
	movl	$128, (%rbx)
	jmp	LBB0_7
LBB0_2:
	movl	(%rbx), %ecx
	cmpl	$127, %ecx
	jle	LBB0_4
LBB0_5:
	testb	$7, %cl
	je	LBB0_7
## %bb.6:
	movl	%r14d, %edi
	callq	_TCPOPT_MSS_G
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_debug
LBB0_7:
	movl	%r14d, %edi
	callq	_TCPOPT_MSS_G
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_TCPOLEN_TIMESTAMP,4,2          ## @TCPOLEN_TIMESTAMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: misaligned mtu idx %u mss %u emss=%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"mss_idx %u mss %u emss=%u\n"

	.no_dead_strip	_set_emss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_emss
_set_emss:                              ; @set_emss
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
	mov	x0, x1
	bl	_TCPOPT_MSS_G
	ldr	w8, [x21, x0, lsl #2]
	sub	w8, w8, #8
	stp	w8, w8, [x19]
	mov	x0, x20
	bl	_TCPOPT_TSTAMP_G
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _TCPOLEN_TIMESTAMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCPOLEN_TIMESTAMP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_round_up
	ldr	w8, [x19]
	sub	w8, w8, w0
	str	w8, [x19]
	cmp	w8, #127
	b.gt	LBB0_4
LBB0_2:
	mov	w8, #128
	str	w8, [x19]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #127
	b.le	LBB0_2
LBB0_4:
	tst	w8, #0x7
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_TCPOPT_MSS_G
	mov	x1, x0
	ldp	w3, w2, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_6:
	mov	x0, x20
	bl	_TCPOPT_MSS_G
	mov	x1, x0
	ldp	w3, w2, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pr_debug
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_TCPOLEN_TIMESTAMP,4,2          ; @TCPOLEN_TIMESTAMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: misaligned mtu idx %u mss %u emss=%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"mss_idx %u mss %u emss=%u\n"

	.no_dead_strip	_set_emss
.subsections_via_symbols
