	.file	"extr_xfrm_state.c_xfrm_state_mtu.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfrm_state_mtu
	.type	xfrm_state_mtu, @function
xfrm_state_mtu:
.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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR 32[rdi]
	call	READ_ONCE@PLT
	mov	rdx, QWORD PTR XFRM_STATE_VALID[rip]
	cmp	QWORD PTR 24[rbx], rdx
	jne	.L2
	test	rax, rax
	je	.L2
	mov	rcx, QWORD PTR IPPROTO_ESP[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L3
.L2:
	mov	eax, ebp
	sub	eax, DWORD PTR [rbx]
	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
.L3:
	.cfi_restore_state
	mov	r14, QWORD PTR 16[rbx]
	xor	r13d, r13d
	mov	rdi, r14
	call	crypto_aead_blocksize@PLT
	mov	esi, 4
	mov	edi, eax
	call	ALIGN@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 128
	je	.L5
	sub	eax, 129
	cmp	eax, 1
	ja	.L6
	mov	eax, DWORD PTR 8[rbx]
	cmp	eax, DWORD PTR AF_INET[rip]
	mov	r13d, 4
	je	.L5
	xor	r13d, r13d
	cmp	eax, DWORD PTR AF_INET6[rip]
	sete	r13b
	sal	r13d, 2
.L5:
	sub	ebp, DWORD PTR [rbx]
	mov	rdi, r14
	neg	r12d
	call	crypto_aead_authsize@PLT
	mov	ebx, ebp
	sub	ebx, eax
	sub	ebx, r13d
	and	ebx, r12d
	lea	eax, -2[r13+rbx]
	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
.L6:
	.cfi_restore_state
	mov	edi, 1
	call	WARN_ON_ONCE@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	xfrm_state_mtu, .-xfrm_state_mtu
	.comm	XFRM_STATE_VALID,8,8
	.comm	IPPROTO_ESP,8,8
	.comm	AF_INET6,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_xfrm_state.c_xfrm_state_mtu.c"
	.text
	.align	2
	.global	xfrm_state_mtu
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfrm_state_mtu, %function
xfrm_state_mtu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r0, #20]
	mov	r4, r1
	bl	READ_ONCE
	clz	r3, r0
	ldr	r1, .L13
	ldr	r2, [r6, #16]
	ldr	r5, [r1]
	lsr	r3, r3, #5
	cmp	r2, r5
	moveq	r5, r3
	orrne	r5, r3, #1
	cmp	r5, #0
	beq	.L12
.L2:
	ldr	r0, [r6]
	sub	r0, r4, r0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L13+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r8, [r6, #12]
	mov	r0, r8
	bl	crypto_aead_blocksize
	mov	r1, #4
	bl	ALIGN
	ldr	r3, [r6, #4]
	mov	r7, r0
	cmp	r3, #128
	beq	.L5
	sub	r3, r3, #129
	cmp	r3, #1
	bhi	.L6
	ldr	r3, .L13+8
	ldr	r5, [r6, #8]
	ldr	r3, [r3]
	cmp	r5, r3
	moveq	r5, #4
	beq	.L5
	ldr	r3, .L13+12
	ldr	r0, [r3]
	cmp	r5, r0
	moveq	r5, #4
	movne	r5, #0
.L5:
	ldr	r1, [r6]
	mov	r0, r8
	sub	r4, r4, r1
	bl	crypto_aead_authsize
	sub	r4, r4, r0
	sub	r4, r4, r5
	rsb	r0, r7, #0
	and	r0, r0, r4
	add	r0, r0, r5
	sub	r0, r0, #2
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, #1
	bl	WARN_ON_ONCE
	b	.L5
.L14:
	.align	2
.L13:
	.word	XFRM_STATE_VALID
	.word	IPPROTO_ESP
	.word	AF_INET
	.word	AF_INET6
	.size	xfrm_state_mtu, .-xfrm_state_mtu
	.comm	XFRM_STATE_VALID,4,4
	.comm	IPPROTO_ESP,4,4
	.comm	AF_INET6,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
