	.file	"extr_replay.c_ubifs_validate_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"directory entry"
.LC1:
	.string	"extended attribute entry"
.LC2:
	.string	"bad %s node"
.LC3:
	.string	"bad key type %d"
	.text
	.p2align 4
	.globl	ubifs_validate_entry
	.type	ubifs_validate_entry, @function
ubifs_validate_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 28[rsi]
	call	key_type_flash@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	r13d, eax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 20[rbx]
	mov	r12d, eax
	call	le32_to_cpu@PLT
	movsx	rdx, r12d
	mov	r8, rax
	mov	rax, QWORD PTR UBIFS_DENT_NODE_SZ[rip]
	add	rax, rdx
	add	rax, 1
	cmp	r8, rax
	jne	.L4
	mov	rax, QWORD PTR UBIFS_ITYPES_CNT[rip]
	cmp	QWORD PTR [rbx], rax
	jge	.L4
	cmp	DWORD PTR UBIFS_MAX_NLEN[rip], r12d
	jl	.L4
	mov	rdi, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rdi+rdx*8], 0
	jne	.L4
	cmp	DWORD PTR UBIFS_XENT_KEY[rip], r13d
	je	.L5
.L7:
	mov	edi, DWORD PTR 16[rbx]
	call	le64_to_cpu@PLT
	cmp	rax, QWORD PTR MAX_INUM[rip]
	jg	.L4
	xor	eax, eax
	cmp	DWORD PTR UBIFS_DENT_KEY[rip], r13d
	je	.L1
	cmp	DWORD PTR UBIFS_XENT_KEY[rip], r13d
	je	.L1
	mov	edx, r13d
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	ubifs_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, r12d
	call	strnlen@PLT
	cmp	eax, r12d
	je	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR UBIFS_DENT_KEY[rip], r13d
	lea	rax, .LC1[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	lea	rsi, .LC2[rip]
	cmovne	rdx, rax
	xor	eax, eax
	call	ubifs_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ubifs_validate_entry, .-ubifs_validate_entry
	.comm	UBIFS_XENT_KEY,4,4
	.comm	UBIFS_MAX_NLEN,4,4
	.comm	UBIFS_ITYPES_CNT,8,8
	.comm	UBIFS_DENT_NODE_SZ,8,8
	.comm	UBIFS_DENT_KEY,4,4
	.comm	MAX_INUM,8,8
	.comm	EINVAL,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_replay.c_ubifs_validate_entry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"directory entry\000"
	.align	2
.LC1:
	.ascii	"extended attribute entry\000"
	.align	2
.LC2:
	.ascii	"bad %s node\000"
	.align	2
.LC3:
	.ascii	"bad key type %d\000"
	.text
	.align	2
	.global	ubifs_validate_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubifs_validate_entry, %function
ubifs_validate_entry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r1, [r1, #20]
	mov	r8, r0
	bl	key_type_flash
	mov	r7, r0
	ldr	r0, [r4, #16]
	bl	le16_to_cpu
	mov	r5, r0
	ldr	r0, [r4, #12]
	bl	le32_to_cpu
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r3, r5, r3
	add	r3, r3, #1
	cmp	r0, r3
	bne	.L4
	ldr	r3, .L11+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L4
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r3, r5
	blt	.L4
	ldr	r0, [r4, #4]
	ldr	r6, [r0, r5, lsl #2]
	cmp	r6, #0
	bne	.L4
	ldr	r9, .L11+12
	ldr	r3, [r9]
	cmp	r3, r7
	bne	.L5
	mov	r1, r5
	bl	strnlen
	cmp	r0, r5
	beq	.L5
.L4:
	ldr	r3, .L11+16
	ldr	r2, .L11+20
	ldr	r1, [r3]
	ldr	r3, .L11+24
	cmp	r1, r7
	movne	r2, r3
	mov	r0, r8
	ldr	r1, .L11+28
	bl	ubifs_err
	ldr	r3, .L11+32
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r0, [r4, #8]
	bl	le64_to_cpu
	ldr	r3, .L11+36
	ldr	r3, [r3]
	cmp	r0, r3
	bgt	.L4
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L1
	ldr	r3, [r9]
	cmp	r3, r7
	beq	.L1
	mov	r2, r7
	mov	r0, r8
	ldr	r1, .L11+40
	bl	ubifs_err
	ldr	r3, .L11+32
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	UBIFS_DENT_NODE_SZ
	.word	UBIFS_ITYPES_CNT
	.word	UBIFS_MAX_NLEN
	.word	UBIFS_XENT_KEY
	.word	UBIFS_DENT_KEY
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	EINVAL
	.word	MAX_INUM
	.word	.LC3
	.size	ubifs_validate_entry, .-ubifs_validate_entry
	.comm	UBIFS_XENT_KEY,4,4
	.comm	UBIFS_MAX_NLEN,4,4
	.comm	UBIFS_ITYPES_CNT,4,4
	.comm	UBIFS_DENT_NODE_SZ,4,4
	.comm	UBIFS_DENT_KEY,4,4
	.comm	MAX_INUM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
