	.file	"extr_Network.c_RUDPCalcBestMssForBulk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	RUDPCalcBestMssForBulk
	.type	RUDPCalcBestMssForBulk, @function
RUDPCalcBestMssForBulk:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	je	.L8
	mov	rdi, rsi
	test	rsi, rsi
	je	.L8
	mov	ebp, DWORD PTR MTU_FOR_PPPOE[rip]
	call	IsIP6@PLT
	mov	rdx, QWORD PTR SHA1_SIZE[rip]
	mov	rcx, QWORD PTR [rbx]
	mov	r8d, eax
	lea	eax, -20[rbp]
	sub	ebp, 40
	test	r8d, r8d
	cmove	ebp, eax
	lea	eax, -8[rbp]
	sub	eax, edx
	cmp	rcx, QWORD PTR RUDP_PROTOCOL_ICMP[rip]
	je	.L6
	lea	eax, -50[rbp]
	cmp	rcx, QWORD PTR RUDP_PROTOCOL_DNS[rip]
	cmovne	eax, ebp
.L6:
	add	edx, edx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	sub	eax, edx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	sub	eax, 113
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	RUDPCalcBestMssForBulk, .-RUDPCalcBestMssForBulk
	.comm	SHA1_SIZE,8,8
	.comm	RUDP_PROTOCOL_ICMP,8,8
	.comm	RUDP_PROTOCOL_DNS,8,8
	.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_Network.c_RUDPCalcBestMssForBulk.c"
	.text
	.align	2
	.global	RUDPCalcBestMssForBulk
	.syntax unified
	.arm
	.fpu softvfp
	.type	RUDPCalcBestMssForBulk, %function
RUDPCalcBestMssForBulk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	bne	.L13
	mov	r0, #0
	bx	lr
.L13:
	ldr	r3, .L14
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r1
	ldr	r4, [r3]
	bl	IsIP6
	ldr	r1, .L14+4
	cmp	r0, #0
	ldr	r2, [r5]
	ldr	r0, [r1]
	ldr	r1, .L14+8
	subeq	r3, r4, #20
	subne	r3, r4, #40
	cmp	r2, r0
	ldr	r0, [r1]
	subeq	r3, r3, #8
	subeq	r3, r3, r0
	beq	.L6
	ldr	r1, .L14+12
	ldr	r1, [r1]
	cmp	r2, r1
	subeq	r3, r3, #50
.L6:
	sub	r0, r3, r0, lsl #1
	sub	r0, r0, #113
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	MTU_FOR_PPPOE
	.word	RUDP_PROTOCOL_ICMP
	.word	SHA1_SIZE
	.word	RUDP_PROTOCOL_DNS
	.size	RUDPCalcBestMssForBulk, .-RUDPCalcBestMssForBulk
	.comm	SHA1_SIZE,4,4
	.comm	RUDP_PROTOCOL_ICMP,4,4
	.comm	RUDP_PROTOCOL_DNS,4,4
	.comm	MTU_FOR_PPPOE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
