	.file	"extr_io.c_ubifs_check_node.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bad magic %#08x, expected %#08x"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"bad node type %d"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"bad CRC: calculated %#08x, read %#08x"
	.section	.rodata.str1.1
.LC3:
	.string	"bad node length %d"
.LC4:
	.string	"bad node at LEB %d:%d"
	.text
	.p2align 4
	.globl	ubifs_check_node
	.type	ubifs_check_node, @function
ubifs_check_node:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	xor	edi, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebx, DWORD PTR EINVAL[rip]
	mov	DWORD PTR 8[rsp], r9d
	test	edx, edx
	js	.L2
	mov	edi, ecx
	cmp	DWORD PTR [r14], edx
	not	edi
	setg	al
	shr	edi, 31
	and	edi, eax
.L2:
	call	ubifs_assert@PLT
	xor	edi, edi
	test	r12b, 7
	jne	.L3
	xor	edi, edi
	cmp	DWORD PTR 4[r14], r12d
	setg	dil
.L3:
	call	ubifs_assert@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	le32_to_cpu@PLT
	mov	rdx, QWORD PTR UBIFS_NODE_MAGIC[rip]
	cmp	rdx, rax
	je	.L4
	test	r15d, r15d
	je	.L22
.L16:
.L6:
	endbr64
	mov	ebx, DWORD PTR EUCLEAN[rip]
	neg	ebx
	test	r15d, r15d
	je	.L10
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	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
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[rbp]
	neg	ebx
	test	esi, esi
	js	.L7
	cmp	DWORD PTR UBIFS_NODE_TYPES_CNT[rip], esi
	jg	.L8
.L7:
	test	r15d, r15d
	jne	.L1
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	ubifs_err@PLT
.L10:
	mov	edx, r12d
	mov	esi, r13d
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	ubifs_err@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	dbg_dump_node@PLT
	xor	eax, eax
	call	dbg_dump_stack@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 8[rbp]
	mov	DWORD PTR 12[rsp], esi
	call	le32_to_cpu@PLT
	lea	edx, [r12+rax]
	cmp	edx, DWORD PTR 4[r14]
	jg	.L11
	movsx	rdx, DWORD PTR 12[rsp]
	lea	rcx, [rdx+rdx*2]
	mov	rsi, rdx
	mov	rdx, QWORD PTR 24[r14]
	lea	rdx, [rdx+rcx*4]
	mov	ecx, DWORD PTR [rdx]
	test	ecx, ecx
	jne	.L12
	cmp	DWORD PTR 4[rdx], eax
	je	.L13
.L11:
	test	r15d, r15d
	jne	.L1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	ubifs_err@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	ubifs_err@PLT
	mov	ebx, DWORD PTR EUCLEAN[rip]
	neg	ebx
	test	r15d, r15d
	jne	.L1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	DWORD PTR 8[rdx], eax
	jg	.L11
	cmp	ecx, eax
	jl	.L11
.L13:
	mov	ecx, DWORD PTR 8[rsp]
	test	ecx, ecx
	jne	.L14
	cmp	DWORD PTR UBIFS_DATA_NODE[rip], esi
	jne	.L14
	mov	edx, DWORD PTR 16[r14]
	test	edx, edx
	jne	.L14
	cmp	QWORD PTR 8[r14], 0
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR UBIFS_CRC32_INIT[rip]
	lea	edx, -8[rax]
	lea	rsi, 8[rbp]
	call	crc32@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	rbx, rax
	call	le32_to_cpu@PLT
	cmp	rbx, rax
	je	.L15
	test	r15d, r15d
	jne	.L16
	mov	rdx, rax
	mov	esi, ebx
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	ubifs_err@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	xor	ebx, ebx
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ubifs_check_node, .-ubifs_check_node
	.comm	UBIFS_NODE_TYPES_CNT,4,4
	.comm	UBIFS_NODE_MAGIC,8,8
	.comm	UBIFS_DATA_NODE,4,4
	.comm	UBIFS_CRC32_INIT,4,4
	.comm	EUCLEAN,4,4
	.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_io.c_ubifs_check_node.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bad magic %#08x, expected %#08x\000"
	.align	2
.LC1:
	.ascii	"bad node type %d\000"
	.align	2
.LC2:
	.ascii	"bad CRC: calculated %#08x, read %#08x\000"
	.align	2
.LC3:
	.ascii	"bad node length %d\000"
	.align	2
.LC4:
	.ascii	"bad node at LEB %d:%d\000"
	.text
	.align	2
	.global	ubifs_check_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubifs_check_node, %function
ubifs_check_node:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L25
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r6, r2, #0
	mov	r7, r0
	mov	r5, r1
	mov	r4, r3
	movlt	r0, #0
	ldr	r8, [ip]
	ldr	r9, [sp, #32]
	blt	.L2
	ldr	r0, [r7]
	cmp	r3, #0
	cmpge	r0, r6
	movgt	r0, #1
	movle	r0, #0
.L2:
	bl	ubifs_assert
	tst	r4, #7
	movne	r0, #0
	bne	.L3
	ldr	r0, [r7, #4]
	cmp	r0, r4
	movle	r0, #0
	movgt	r0, #1
.L3:
	bl	ubifs_assert
	ldr	r0, [r5, #12]
	bl	le32_to_cpu
	ldr	r3, .L25+4
	ldr	r2, [r3]
	cmp	r2, r0
	beq	.L4
	cmp	r9, #0
	beq	.L24
.L16:
.L6:
	ldr	r3, .L25+8
	cmp	r9, #0
	ldr	r8, [r3]
	rsb	r8, r8, #0
	beq	.L10
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r10, [r5]
	rsb	r8, r8, #0
	cmp	r10, #0
	blt	.L7
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r3, r10
	bgt	.L8
.L7:
	cmp	r9, #0
	bne	.L1
	mov	r1, r10
	ldr	r0, .L25+16
	bl	ubifs_err
.L10:
	mov	r2, r4
	mov	r1, r6
	ldr	r0, .L25+20
	bl	ubifs_err
	mov	r1, r5
	mov	r0, r7
	bl	dbg_dump_node
	bl	dbg_dump_stack
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r0, [r5, #8]
	bl	le32_to_cpu
	ldr	r3, [r7, #4]
	add	r2, r4, r0
	cmp	r2, r3
	bgt	.L11
	ldr	r3, [r7, #16]
	add	r1, r10, r10, lsl #1
	ldr	r2, [r3, r1, lsl #2]
	add	r3, r3, r1, lsl #2
	cmp	r2, #0
	bne	.L12
	ldr	r3, [r3, #4]
	cmp	r3, r0
	beq	.L13
.L11:
	cmp	r9, #0
	bne	.L1
	mov	r1, r0
	ldr	r0, .L25+24
	bl	ubifs_err
	b	.L10
.L24:
	mov	r1, r0
	ldr	r0, .L25+28
	bl	ubifs_err
	b	.L16
.L12:
	cmp	r2, r0
	movge	r2, #0
	movlt	r2, #1
	ldr	r3, [r3, #8]
	cmp	r3, r0
	orrgt	r2, r2, #1
	cmp	r2, #0
	bne	.L11
.L13:
	ldr	r3, [sp, #36]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L25+32
	ldr	r3, [r3]
	cmp	r3, r10
	bne	.L14
	ldr	r3, [r7, #12]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [r7, #8]
	cmp	r3, #0
	beq	.L14
.L15:
	mov	r8, #0
	b	.L1
.L14:
	ldr	r3, .L25+36
	sub	r2, r0, #8
	add	r1, r5, #8
	ldr	r0, [r3]
	bl	crc32
	mov	r8, r0
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	cmp	r8, r0
	beq	.L15
	cmp	r9, #0
	bne	.L16
	mov	r2, r0
	mov	r1, r8
	ldr	r0, .L25+40
	bl	ubifs_err
	b	.L16
.L26:
	.align	2
.L25:
	.word	EINVAL
	.word	UBIFS_NODE_MAGIC
	.word	EUCLEAN
	.word	UBIFS_NODE_TYPES_CNT
	.word	.LC1
	.word	.LC4
	.word	.LC3
	.word	.LC0
	.word	UBIFS_DATA_NODE
	.word	UBIFS_CRC32_INIT
	.word	.LC2
	.size	ubifs_check_node, .-ubifs_check_node
	.comm	UBIFS_NODE_TYPES_CNT,4,4
	.comm	UBIFS_NODE_MAGIC,4,4
	.comm	UBIFS_DATA_NODE,4,4
	.comm	UBIFS_CRC32_INIT,4,4
	.comm	EUCLEAN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
