	.file	"extr_esp4.c_esp4_err.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	esp4_err, @function
esp4_err:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	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
	mov	edi, DWORD PTR 16[rdi]
	call	dev_net@PLT
	mov	rbx, QWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	r12, rax
	mov	r13d, DWORD PTR [rbx]
	call	icmp_hdr@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L3
	mov	rdi, rbp
	call	icmp_hdr@PLT
	mov	edx, DWORD PTR ICMP_FRAG_NEEDED[rip]
	cmp	DWORD PTR 4[rax], edx
	jne	.L3
.L2:
	sal	r13d, 2
	mov	esi, DWORD PTR 0[rbp]
	lea	rdx, 4[rbx]
	mov	rdi, r12
	movsx	r13, r13d
	mov	r9d, DWORD PTR AF_INET[rip]
	mov	r8d, DWORD PTR IPPROTO_ESP[rip]
	mov	ecx, DWORD PTR 0[r13+rbx]
	call	xfrm_state_lookup@PLT
	mov	r13, rax
	test	rax, rax
	je	.L3
	mov	rdi, rbp
	call	icmp_hdr@PLT
	cmp	DWORD PTR [rax], 129
	je	.L15
	mov	ecx, DWORD PTR IPPROTO_ESP[rip]
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, rbp
	call	ipv4_redirect@PLT
.L6:
	mov	rdi, r13
	call	xfrm_state_put@PLT
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L15:
	.cfi_restore_state
	mov	r8d, DWORD PTR IPPROTO_ESP[rip]
	xor	ecx, ecx
	mov	edx, r14d
	mov	rsi, r12
	mov	rdi, rbp
	call	ipv4_update_pmtu@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	esp4_err, .-esp4_err
	.comm	IPPROTO_ESP,4,4
	.comm	ICMP_FRAG_NEEDED,4,4
	.comm	AF_INET,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_esp4.c_esp4_err.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp4_err, %function
esp4_err:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r0, #8]
	mov	r6, r1
	bl	dev_net
	ldr	r5, [r4, #4]
	mov	r7, r0
	mov	r0, r4
	ldr	r8, [r5]
	bl	icmp_hdr
	ldr	r3, [r0]
	cmp	r3, #128
	beq	.L2
	cmp	r3, #129
	bne	.L3
	mov	r0, r4
	bl	icmp_hdr
	ldr	r3, .L16
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
.L2:
	ldr	r2, .L16+4
	ldr	r9, .L16+8
	ldr	r0, [r2]
	ldr	r1, [r9]
	ldr	r3, [r5, r8, lsl #2]
	str	r0, [sp, #4]
	str	r1, [sp]
	add	r2, r5, #4
	mov	r0, r7
	ldr	r1, [r4]
	bl	xfrm_state_lookup
	subs	r5, r0, #0
	beq	.L3
	mov	r0, r4
	bl	icmp_hdr
	ldr	r3, [r0]
	cmp	r3, #129
	ldr	r3, [r9]
	beq	.L15
	mov	r1, r7
	mov	r0, r4
	mov	r2, #0
	bl	ipv4_redirect
.L6:
	mov	r0, r5
	bl	xfrm_state_put
.L3:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	str	r3, [sp]
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	mov	r3, #0
	bl	ipv4_update_pmtu
	b	.L6
.L17:
	.align	2
.L16:
	.word	ICMP_FRAG_NEEDED
	.word	AF_INET
	.word	IPPROTO_ESP
	.size	esp4_err, .-esp4_err
	.comm	IPPROTO_ESP,4,4
	.comm	ICMP_FRAG_NEEDED,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
