	.file	"extr_Proto_L2TP.c_CalcL2TPMss.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CalcL2TPMss
	.type	CalcL2TPMss, @function
CalcL2TPMss:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, rdx
	test	rsi, rsi
	sete	dl
	test	r8, r8
	sete	al
	or	dl, al
	jne	.L8
	test	rdi, rdi
	je	.L8
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	QWORD PTR 16[rdi], 0
	mov	ebx, DWORD PTR MTU_FOR_PPPOE[rip]
	je	.L3
	cmp	QWORD PTR 8[rdi], 0
	lea	eax, -20[rbx]
	je	.L5
	lea	eax, -40[rbx]
.L5:
	mov	edx, DWORD PTR [rdi]
	sub	eax, 8
	lea	edx, 20[rdx+rdx]
	sub	eax, edx
.L6:
	sub	eax, 60
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore 3
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rdi, rsi
	call	IsIP6@PLT
	mov	r8, rax
	lea	eax, -40[rbx]
	sub	ebx, 20
	test	r8, r8
	cmove	eax, ebx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	CalcL2TPMss, .-CalcL2TPMss
	.comm	MTU_FOR_PPPOE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_Proto_L2TP.c_CalcL2TPMss.c"
	.text
	.align	2
	.global	CalcL2TPMss
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalcL2TPMss, %function
CalcL2TPMss:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r2, r2
	cmp	r1, #0
	lsr	r2, r2, #5
	moveq	r2, #1
	cmp	r0, #0
	moveq	r2, #1
	cmp	r2, #0
	bne	.L8
	ldr	r2, [r0, #8]
	ldr	r3, .L14
	cmp	r2, #0
	push	{r4, lr}
	ldr	r4, [r3]
	beq	.L3
	ldr	r3, [r0, #4]
	cmp	r3, #0
	ldr	r3, [r0]
	subne	r4, r4, #40
	subeq	r4, r4, #20
	sub	r0, r4, #8
	add	r4, r3, #10
	sub	r0, r0, r4, lsl #1
.L6:
	sub	r0, r0, #60
	pop	{r4, pc}
.L8:
	mov	r0, #0
	bx	lr
.L3:
	mov	r0, r1
	bl	IsIP6
	cmp	r0, #0
	subne	r0, r4, #40
	subeq	r0, r4, #20
	b	.L6
.L15:
	.align	2
.L14:
	.word	MTU_FOR_PPPOE
	.size	CalcL2TPMss, .-CalcL2TPMss
	.comm	MTU_FOR_PPPOE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
