	.file	"extr_Virtual.c_NnIpSendFragmentedForInternet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	NnIpSendFragmentedForInternet
	.type	NnIpSendFragmentedForInternet, @function
NnIpSendFragmentedForInternet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	mov	r14d, DWORD PTR 96[rsp]
	mov	DWORD PTR 16[rsp], edx
	mov	r15, QWORD PTR 104[rsp]
	mov	ebp, DWORD PTR 112[rsp]
	mov	r13, QWORD PTR 120[rsp]
	mov	DWORD PTR 20[rsp], ecx
	mov	DWORD PTR 28[rsp], r8d
	mov	DWORD PTR 24[rsp], r9d
	test	rdi, rdi
	je	.L1
	test	r15, r15
	je	.L1
	mov	rbx, rdi
	mov	edi, DWORD PTR IP_HEADER_SIZE[rip]
	add	edi, ebp
	call	Malloc@PLT
	mov	esi, 4
	mov	QWORD PTR 64[rax], 0
	mov	rdi, rax
	mov	r12, rax
	call	IPV4_SET_VERSION@PLT
	mov	eax, DWORD PTR IP_HEADER_SIZE[rip]
	mov	rdi, r12
	test	eax, eax
	lea	esi, 3[rax]
	cmovns	esi, eax
	sar	esi, 2
	call	IPV4_SET_HEADER_LEN@PLT
	mov	eax, DWORD PTR DEFAULT_IP_TOS[rip]
	mov	edi, DWORD PTR IP_HEADER_SIZE[rip]
	mov	DWORD PTR 56[r12], eax
	add	edi, ebp
	call	Endian16@PLT
	mov	r8d, DWORD PTR 28[rsp]
	mov	QWORD PTR 48[r12], rax
	mov	edi, r8d
	call	Endian16@PLT
	test	r14d, r14d
	lea	esi, 7[r14]
	mov	rdi, r12
	mov	QWORD PTR 40[r12], rax
	mov	rax, QWORD PTR 32[r12]
	cmovns	esi, r14d
	mov	QWORD PTR 8[rax], 0
	sar	esi, 3
	mov	QWORD PTR [rax], 0
	call	IPV4_SET_OFFSET@PLT
	mov	r9d, DWORD PTR 24[rsp]
	lea	edx, 0[rbp+r14]
	cmp	edx, r9d
	jl	.L3
	xor	esi, esi
	mov	rdi, r12
	call	IPV4_SET_FLAGS@PLT
.L4:
	mov	rax, QWORD PTR 8[rsp]
	test	r13, r13
	mov	esi, DWORD PTR IP_HEADER_SIZE[rip]
	mov	rdi, r12
	cmove	r13, QWORD PTR DEFAULT_IP_TTL[rip]
	mov	QWORD PTR 8[r12], 0
	mov	QWORD PTR 16[r12], rax
	mov	eax, DWORD PTR 16[rsp]
	mov	QWORD PTR 24[r12], r13
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 4[r12], eax
	call	IpChecksum@PLT
	mov	edx, ebp
	mov	rsi, r15
	mov	QWORD PTR 8[r12], rax
	movsx	rax, DWORD PTR IP_HEADER_SIZE[rip]
	lea	rdi, [r12+rax*8]
	call	Copy@PLT
	mov	esi, DWORD PTR IP_HEADER_SIZE[rip]
	xor	edx, edx
	mov	rdi, r12
	add	esi, ebp
	call	NewBlock@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rbp, rax
	call	LockQueue@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR NN_MAX_QUEUE_LENGTH[rip]
	cmp	QWORD PTR [rdi], rax
	jg	.L6
	mov	rsi, rbp
	call	InsertQueue@PLT
	mov	DWORD PTR [rbx], 1
.L7:
	mov	rdi, QWORD PTR 8[rbx]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	UnlockQueue@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, r12
	call	IPV4_SET_FLAGS@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	FreeBlock@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	NnIpSendFragmentedForInternet, .-NnIpSendFragmentedForInternet
	.comm	NN_MAX_QUEUE_LENGTH,8,8
	.comm	IP_HEADER_SIZE,4,4
	.comm	DEFAULT_IP_TTL,8,8
	.comm	DEFAULT_IP_TOS,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_Virtual.c_NnIpSendFragmentedForInternet.c"
	.text
	.align	2
	.global	NnIpSendFragmentedForInternet
	.syntax unified
	.arm
	.fpu softvfp
	.type	NnIpSendFragmentedForInternet, %function
NnIpSendFragmentedForInternet:
	@ args = 24, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r10, [sp, #76]
	cmp	r0, #0
	clz	r5, r10
	lsr	r5, r5, #5
	moveq	r5, #1
	stmib	sp, {r1, r2, r3}
	ldr	r2, [sp, #64]
	ldr	r3, [sp, #68]
	cmp	r5, #0
	ldr	r7, [sp, #72]
	ldr	r8, [sp, #80]
	ldr	fp, [sp, #84]
	str	r2, [sp, #20]
	str	r3, [sp, #16]
	beq	.L10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r9, .L11
	mov	r6, r0
	ldr	r0, [r9]
	add	r0, r8, r0
	bl	Malloc
	mov	r1, #4
	str	r5, [r0, #36]
	mov	r4, r0
	bl	IPV4_SET_VERSION
	ldr	r1, [r9]
	mov	r0, r4
	add	ip, r1, #3
	cmp	r1, #0
	movlt	r1, ip
	asr	r1, r1, #2
	bl	IPV4_SET_HEADER_LEN
	ldr	r1, .L11+4
	ldr	r0, [r9]
	ldr	r1, [r1]
	add	r0, r8, r0
	str	r1, [r4, #32]
	bl	Endian16
	mov	r1, r0
	ldr	r2, [sp, #20]
	str	r1, [r4, #28]
	mov	r0, r2
	bl	Endian16
	cmp	r7, #0
	add	r1, r7, #7
	movge	r1, r7
	ldr	r2, [r4, #20]
	str	r0, [r4, #24]
	asr	r1, r1, #3
	str	r5, [r2, #4]
	str	r5, [r2]
	mov	r0, r4
	bl	IPV4_SET_OFFSET
	ldr	r3, [sp, #16]
	add	r7, r8, r7
	cmp	r7, r3
	movge	r1, r5
	movlt	r1, #1
	mov	r0, r4
	bl	IPV4_SET_FLAGS
	mov	r5, #0
	cmp	fp, #0
	ldreq	r3, .L11+8
	mov	r0, r4
	ldreq	fp, [r3]
	ldr	r3, [sp, #4]
	ldr	r1, [r9]
	str	r3, [r4, #12]
	ldr	r3, [sp, #8]
	str	fp, [r4, #16]
	str	r3, [r4]
	ldr	r3, [sp, #12]
	stmib	r4, {r3, r5}
	bl	IpChecksum
	ldr	r3, [r9]
	str	r0, [r4, #8]
	mov	r1, r10
	add	r0, r4, r3, lsl #2
	mov	r2, r8
	bl	Copy
	ldr	r1, [r9]
	mov	r2, r5
	mov	r0, r4
	add	r1, r8, r1
	bl	NewBlock
	mov	r4, r0
	ldr	r0, [r6, #4]
	bl	LockQueue
	ldr	r0, [r6, #4]
	ldr	r3, .L11+12
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L6
	mov	r1, r4
	bl	InsertQueue
	mov	r3, #1
	ldr	r0, [r6, #4]
	str	r3, [r6]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	UnlockQueue
.L6:
	mov	r0, r4
	bl	FreeBlock
	ldr	r0, [r6, #4]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	UnlockQueue
.L12:
	.align	2
.L11:
	.word	IP_HEADER_SIZE
	.word	DEFAULT_IP_TOS
	.word	DEFAULT_IP_TTL
	.word	NN_MAX_QUEUE_LENGTH
	.size	NnIpSendFragmentedForInternet, .-NnIpSendFragmentedForInternet
	.comm	NN_MAX_QUEUE_LENGTH,4,4
	.comm	IP_HEADER_SIZE,4,4
	.comm	DEFAULT_IP_TTL,4,4
	.comm	DEFAULT_IP_TOS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
