	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CalcEtherIPTcpMss              ## -- Begin function CalcEtherIPTcpMss
	.p2align	4, 0x90
_CalcEtherIPTcpMss:                     ## @CalcEtherIPTcpMss
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_MTU_FOR_PPPOE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_IsIP4
	testq	%rax, %rax
	movl	$-40, %eax
	movl	$-20, %ebx
	cmovel	%eax, %ebx
	movl	(%r14), %eax
	addl	%r12d, %ebx
	addl	%eax, %eax
	subl	%eax, %ebx
	addl	$-28, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_IsIP4
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addl	$-20, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	addl	$-40, %ebx
LBB0_6:
	addl	$-56, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTU_FOR_PPPOE,4,2              ## @MTU_FOR_PPPOE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CalcEtherIPTcpMss              ; -- Begin function CalcEtherIPTcpMss
	.p2align	2
_CalcEtherIPTcpMss:                     ; @CalcEtherIPTcpMss
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	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	x19, x0
Lloh0:
	adrp	x8, _MTU_FOR_PPPOE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTU_FOR_PPPOE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	add	x20, x0, #4
	mov	x0, x20
	bl	_IsIP4
	cmp	x0, #0
	mov	w8, #-20
	mov	w9, #-40
	csel	w8, w9, w8, eq
	ldr	w9, [x19]
	add	w8, w21, w8
	sub	w8, w8, w9, lsl #1
	sub	w21, w8, #28
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_IsIP4
	sub	w8, w21, #40
	sub	w9, w21, #20
	cmp	x0, #0
	csel	w21, w8, w9, eq
LBB0_3:
	sub	w0, w21, #56
	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
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTU_FOR_PPPOE,4,2              ; @MTU_FOR_PPPOE
.subsections_via_symbols
