	.file	"extr_ip_forward.c_ip_forward.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ip_forward
	.type	ip_forward, @function
ip_forward:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	IPCB@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR PACKET_HOST[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L24
.L6:
	mov	rdi, rbp
	call	kfree_skb@PLT
	mov	eax, DWORD PTR NET_RX_DROP[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbp
	call	skb_warn_if_lro@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR XFRM_POLICY_FWD[rip]
	xor	edi, edi
	mov	rdx, rbp
	call	xfrm4_policy_check@PLT
	test	eax, eax
	je	.L6
	mov	rdi, rbp
	call	IPCB@PLT
	cmp	QWORD PTR 24[rax], 0
	je	.L3
	mov	rdi, rbp
	call	ip_call_ra_chain@PLT
	test	rax, rax
	jne	.L25
.L3:
	mov	rdi, rbp
	call	skb_forward_csum@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	dev_net@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	ip_hdr@PLT
	cmp	DWORD PTR [rax], 1
	jle	.L26
	mov	rdi, rbp
	call	xfrm4_route_forward@PLT
	test	eax, eax
	je	.L6
	mov	rdi, rbp
	call	skb_rtable@PLT
	cmp	QWORD PTR 16[rbx], 0
	mov	r12, rax
	je	.L7
	cmp	QWORD PTR 16[rax], 0
	jne	.L27
.L7:
	mov	rdi, rbp
	call	IPCB@PLT
	mov	edx, DWORD PTR IPSKB_FORWARDED[rip]
	mov	esi, 1
	mov	rdi, r12
	or	DWORD PTR [rax], edx
	call	ip_dst_mtu_maybe_forward@PLT
	mov	rdi, rbp
	mov	esi, eax
	mov	r14d, eax
	call	ip_exceeds_mtu@PLT
	test	rax, rax
	jne	.L28
	mov	edi, DWORD PTR [r12]
	call	LL_RESERVED_SPACE@PLT
	add	rax, QWORD PTR 8[r12]
	mov	rdi, rbp
	mov	rsi, rax
	call	skb_cow@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbp
	call	ip_hdr@PLT
	mov	rdi, rax
	mov	r14, rax
	call	ip_decrease_ttl@PLT
	mov	rdi, rbp
	call	IPCB@PLT
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR IPSKB_DOREDIRECT[rip], eax
	je	.L10
	mov	esi, DWORD PTR 8[rbx]
	test	esi, esi
	je	.L29
.L10:
	cmp	QWORD PTR 0[r13], 0
	jne	.L30
.L12:
	mov	eax, DWORD PTR ip_forward_finish[rip]
	mov	r9d, DWORD PTR 8[rbp]
	xor	ecx, ecx
	mov	rdx, r13
	mov	esi, DWORD PTR NF_INET_FORWARD[rip]
	mov	edi, DWORD PTR NFPROTO_IPV4[rip]
	mov	r8, rbp
	push	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR [r12]
	push	rax
	.cfi_def_cfa_offset 64
	call	NF_HOOK@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	jmp	.L1
.L26:
	mov	esi, DWORD PTR IPSTATS_MIB_INHDRERRORS[rip]
	mov	rdi, r13
	call	__IP_INC_STATS@PLT
	mov	edx, DWORD PTR ICMP_EXC_TTL[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	esi, DWORD PTR ICMP_TIME_EXCEEDED[rip]
	call	icmp_send@PLT
	jmp	.L6
.L25:
	mov	eax, DWORD PTR NET_RX_SUCCESS[rip]
	jmp	.L1
.L28:
	mov	esi, DWORD PTR IPSTATS_MIB_FRAGFAILS[rip]
	mov	rdi, r13
	call	IP_INC_STATS@PLT
	mov	edi, r14d
	call	htonl@PLT
	mov	edx, DWORD PTR ICMP_FRAG_NEEDED[rip]
	mov	esi, DWORD PTR ICMP_DEST_UNREACH[rip]
	mov	rdi, rbp
	mov	ecx, eax
	call	icmp_send@PLT
	jmp	.L6
.L27:
	mov	edx, DWORD PTR ICMP_SR_FAILED[rip]
	mov	esi, DWORD PTR ICMP_DEST_UNREACH[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	call	icmp_send@PLT
	jmp	.L6
.L30:
	mov	edi, DWORD PTR 4[r14]
	call	rt_tos2priority@PLT
	mov	DWORD PTR 12[rbp], eax
	jmp	.L12
.L29:
	mov	rdi, rbp
	call	skb_sec_path@PLT
	test	eax, eax
	jne	.L10
	mov	rdi, rbp
	call	ip_rt_send_redirect@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	ip_forward, .-ip_forward
	.comm	ip_forward_finish,4,4
	.comm	XFRM_POLICY_FWD,4,4
	.comm	PACKET_HOST,8,8
	.comm	NF_INET_FORWARD,4,4
	.comm	NFPROTO_IPV4,4,4
	.comm	NET_RX_SUCCESS,4,4
	.comm	NET_RX_DROP,4,4
	.comm	IPSTATS_MIB_INHDRERRORS,4,4
	.comm	IPSTATS_MIB_FRAGFAILS,4,4
	.comm	IPSKB_FORWARDED,4,4
	.comm	IPSKB_DOREDIRECT,4,4
	.comm	ICMP_TIME_EXCEEDED,4,4
	.comm	ICMP_SR_FAILED,4,4
	.comm	ICMP_FRAG_NEEDED,4,4
	.comm	ICMP_EXC_TTL,4,4
	.comm	ICMP_DEST_UNREACH,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_ip_forward.c_ip_forward.c"
	.text
	.align	2
	.global	ip_forward
	.syntax unified
	.arm
	.fpu softvfp
	.type	ip_forward, %function
ip_forward:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	sub	sp, sp, #16
	bl	IPCB
	ldr	r3, .L44
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L37
.L6:
	mov	r0, r4
	bl	kfree_skb
	ldr	r3, .L44+4
	ldr	r0, [r3]
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L37:
	mov	r5, r0
	ldr	r0, [r4, #12]
	bl	unlikely
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	bl	skb_warn_if_lro
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L44+8
	mov	r2, r4
	ldr	r1, [r3]
	bl	xfrm4_policy_check
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	bl	IPCB
	ldr	r3, [r0, #12]
	cmp	r3, #0
	beq	.L3
	mov	r0, r4
	bl	ip_call_ra_chain
	cmp	r0, #0
	bne	.L38
.L3:
	mov	r0, r4
	bl	skb_forward_csum
	ldr	r0, [r4, #4]
	bl	dev_net
	mov	r7, r0
	mov	r0, r4
	bl	ip_hdr
	ldr	r3, [r0]
	cmp	r3, #1
	ble	.L39
	mov	r0, r4
	bl	xfrm4_route_forward
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	bl	skb_rtable
	ldr	r3, [r5, #8]
	mov	r6, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, [r0, #8]
	cmp	r3, #0
	bne	.L40
.L7:
	mov	r0, r4
	bl	IPCB
	ldr	r2, .L44+12
	ldr	r3, [r0]
	ldr	r2, [r2]
	mov	r1, #1
	orr	r3, r3, r2
	str	r3, [r0]
	mov	r0, r6
	bl	ip_dst_mtu_maybe_forward
	mov	r8, r0
	mov	r0, r4
	mov	r1, r8
	bl	ip_exceeds_mtu
	cmp	r0, #0
	bne	.L41
	ldr	r0, [r6]
	bl	LL_RESERVED_SPACE
	mov	r1, r0
	ldr	r3, [r6, #4]
	mov	r0, r4
	add	r1, r1, r3
	bl	skb_cow
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	bl	ip_hdr
	mov	r8, r0
	bl	ip_decrease_ttl
	mov	r0, r4
	bl	IPCB
	ldr	r3, .L44+16
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L10
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L42
.L10:
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L43
.L12:
	ldr	r3, .L44+20
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	ldr	r1, .L44+24
	str	r3, [sp, #12]
	ldr	ip, [r6]
	ldr	r3, .L44+28
	str	ip, [sp, #8]
	str	r4, [sp]
	str	r0, [sp, #4]
	mov	r2, r7
	ldr	r1, [r1]
	ldr	r0, [r3]
	mov	r3, #0
	bl	NF_HOOK
	b	.L1
.L39:
	ldr	r3, .L44+32
	mov	r0, r7
	ldr	r1, [r3]
	bl	__IP_INC_STATS
	ldr	r2, .L44+36
	ldr	r3, .L44+40
.L35:
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #0
	ldr	r2, [r2]
	bl	icmp_send
	b	.L6
.L38:
	ldr	r3, .L44+44
	ldr	r0, [r3]
	b	.L1
.L41:
	ldr	r3, .L44+48
	mov	r0, r7
	ldr	r1, [r3]
	bl	IP_INC_STATS
	ldr	r2, .L44+52
	ldr	r3, .L44+56
	mov	r0, r8
	ldr	r5, [r2]
	ldr	r6, [r3]
	bl	htonl
	mov	r2, r6
	mov	r3, r0
	mov	r1, r5
	mov	r0, r4
	bl	icmp_send
	b	.L6
.L40:
	ldr	r2, .L44+60
	ldr	r3, .L44+52
	b	.L35
.L43:
	ldr	r0, [r8, #4]
	bl	rt_tos2priority
	str	r0, [r4, #8]
	b	.L12
.L42:
	mov	r0, r4
	bl	skb_sec_path
	cmp	r0, #0
	bne	.L10
	mov	r0, r4
	bl	ip_rt_send_redirect
	b	.L10
.L45:
	.align	2
.L44:
	.word	PACKET_HOST
	.word	NET_RX_DROP
	.word	XFRM_POLICY_FWD
	.word	IPSKB_FORWARDED
	.word	IPSKB_DOREDIRECT
	.word	ip_forward_finish
	.word	NF_INET_FORWARD
	.word	NFPROTO_IPV4
	.word	IPSTATS_MIB_INHDRERRORS
	.word	ICMP_EXC_TTL
	.word	ICMP_TIME_EXCEEDED
	.word	NET_RX_SUCCESS
	.word	IPSTATS_MIB_FRAGFAILS
	.word	ICMP_DEST_UNREACH
	.word	ICMP_FRAG_NEEDED
	.word	ICMP_SR_FAILED
	.size	ip_forward, .-ip_forward
	.comm	ip_forward_finish,4,4
	.comm	XFRM_POLICY_FWD,4,4
	.comm	PACKET_HOST,4,4
	.comm	NF_INET_FORWARD,4,4
	.comm	NFPROTO_IPV4,4,4
	.comm	NET_RX_SUCCESS,4,4
	.comm	NET_RX_DROP,4,4
	.comm	IPSTATS_MIB_INHDRERRORS,4,4
	.comm	IPSTATS_MIB_FRAGFAILS,4,4
	.comm	IPSKB_FORWARDED,4,4
	.comm	IPSKB_DOREDIRECT,4,4
	.comm	ICMP_TIME_EXCEEDED,4,4
	.comm	ICMP_SR_FAILED,4,4
	.comm	ICMP_FRAG_NEEDED,4,4
	.comm	ICMP_EXC_TTL,4,4
	.comm	ICMP_DEST_UNREACH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
