	.file	"extr_dir.c_exofs_check_page.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"rec_len is too small for name_len"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"directory entry across blocks"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"rec_len is smaller than minimal"
	.section	.rodata.str1.1
.LC3:
	.string	"unaligned directory entry"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"ERROR [exofs_check_page]: size of directory #%lu is not a multiple of chunk size"
	.align 8
.LC5:
	.string	"ERROR [exofs_check_page]: entry in directory #%lu spans the page boundaryoffset=%lu, inode=%llu"
	.align 8
.LC6:
	.string	"ERROR [exofs_check_page]: bad entry in directory #%lu: %s - offset=%lu, inode=%llu, rec_len=%d, name_len=%d"
	.text
	.p2align 4
	.type	exofs_check_page, @function
exofs_check_page:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR [rax]
	mov	rdi, rbx
	mov	QWORD PTR 24[rsp], rbx
	call	exofs_chunk_size@PLT
	mov	rdi, r14
	mov	ebp, eax
	call	page_address@PLT
	mov	ecx, DWORD PTR PAGE_CACHE_SHIFT[rip]
	mov	r13d, DWORD PTR PAGE_CACHE_SIZE[rip]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR [rbx]
	mov	edx, eax
	shr	edx, cl
	cmp	edx, DWORD PTR [r14]
	je	.L18
.L2:
	mov	edi, 1
	neg	ebp
	xor	ebx, ebx
	call	EXOFS_DIR_REC_LEN@PLT
	mov	DWORD PTR 20[rsp], ebp
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ebx, r12d
.L10:
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, ebx
	lea	rbp, [rax+rdx]
	mov	edi, DWORD PTR 8[rbp]
	call	le16_to_cpu@PLT
	mov	edi, 1
	mov	r15d, eax
	call	EXOFS_DIR_REC_LEN@PLT
	mov	r10d, DWORD PTR 0[rbp]
	cmp	eax, r15d
	ja	.L6
	test	r15b, 3
	jne	.L11
	mov	edi, r10d
	call	EXOFS_DIR_REC_LEN@PLT
	cmp	eax, r15d
	ja	.L19
	lea	r12d, [r15+rbx]
	lea	eax, -1[r12]
	xor	eax, ebx
	test	DWORD PTR 20[rsp], eax
	jne	.L20
	mov	edi, 1
	call	EXOFS_DIR_REC_LEN@PLT
	mov	esi, r13d
	sub	esi, eax
	cmp	r12d, esi
	jbe	.L12
	cmp	r12d, r13d
	je	.L5
	mov	rcx, QWORD PTR 8[rsp]
	mov	eax, r12d
	mov	edi, DWORD PTR 4[rcx+rax]
	call	le64_to_cpu@PLT
	mov	edi, eax
	call	_LLU@PLT
	mov	ecx, DWORD PTR PAGE_CACHE_SHIFT[rip]
	mov	edx, DWORD PTR [r14]
	lea	rdi, .LC5[rip]
	mov	r8d, eax
	mov	rax, QWORD PTR 24[rsp]
	sal	edx, cl
	mov	ecx, r8d
	mov	esi, DWORD PTR 4[rax]
	add	edx, r12d
	xor	eax, eax
	call	EXOFS_ERR@PLT
.L4:
	mov	rdi, r14
	call	SetPageChecked@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	jmp	SetPageError@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	r13d, DWORD PTR PAGE_CACHE_MASK[rip]
	not	r13d
	and	r13d, eax
	lea	eax, -1[rbp]
	test	eax, r13d
	jne	.L21
	test	r13d, r13d
	jne	.L2
.L5:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	jmp	SetPageChecked@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	r12, .LC2[rip]
.L7:
	mov	edi, DWORD PTR 4[rbp]
	mov	DWORD PTR 8[rsp], r10d
	call	le64_to_cpu@PLT
	mov	edi, eax
	call	_LLU@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rdx, r12
	mov	r9d, r15d
	mov	ecx, DWORD PTR PAGE_CACHE_SHIFT[rip]
	mov	r8d, eax
	mov	eax, DWORD PTR [r14]
	lea	rdi, .LC6[rip]
	sal	eax, cl
	mov	ecx, eax
	mov	rax, QWORD PTR 32[rsp]
	mov	r10d, DWORD PTR 16[rsp]
	add	ecx, ebx
	mov	esi, DWORD PTR 4[rax]
	push	r10
	.cfi_def_cfa_offset 112
	xor	eax, eax
	call	EXOFS_ERR@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	r12, .LC3[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r10d, DWORD PTR 0[rbp]
	lea	r12, .LC0[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r10d, DWORD PTR 0[rbp]
	lea	r12, .LC1[rip]
	jmp	.L7
.L21:
	mov	rax, QWORD PTR 24[rsp]
	lea	rdi, .LC4[rip]
	mov	esi, DWORD PTR 4[rax]
	xor	eax, eax
	call	EXOFS_ERR@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	exofs_check_page, .-exofs_check_page
	.comm	PAGE_CACHE_SIZE,4,4
	.comm	PAGE_CACHE_SHIFT,4,4
	.comm	PAGE_CACHE_MASK,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_dir.c_exofs_check_page.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rec_len is smaller than minimal\000"
	.align	2
.LC1:
	.ascii	"unaligned directory entry\000"
	.align	2
.LC2:
	.ascii	"rec_len is too small for name_len\000"
	.align	2
.LC3:
	.ascii	"directory entry across blocks\000"
	.align	2
.LC4:
	.ascii	"ERROR [exofs_check_page]: size of directory #%lu is"
	.ascii	" not a multiple of chunk size\000"
	.align	2
.LC5:
	.ascii	"ERROR [exofs_check_page]: entry in directory #%lu s"
	.ascii	"pans the page boundaryoffset=%lu, inode=%llu\000"
	.align	2
.LC6:
	.ascii	"ERROR [exofs_check_page]: bad entry in directory #%"
	.ascii	"lu: %s - offset=%lu, inode=%llu, rec_len=%d, name_l"
	.ascii	"en=%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exofs_check_page, %function
exofs_check_page:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	mov	r9, r0
	ldr	r4, [r3]
	sub	sp, sp, #28
	mov	r0, r4
	str	r4, [sp, #20]
	bl	exofs_chunk_size
	mov	r6, r0
	mov	r0, r9
	bl	page_address
	ldr	r2, .L20
	ldr	r3, [r4]
	ldr	ip, [r2]
	ldr	r1, [r9]
	ldr	r2, .L20+4
	cmp	r1, r3, lsr ip
	mov	r7, r0
	ldr	r8, [r2]
	beq	.L18
.L2:
	mov	r0, #1
	bl	EXOFS_DIR_REC_LEN
	mov	fp, #0
	rsb	r6, r6, #0
	b	.L7
.L12:
	mov	fp, r10
.L7:
	add	r5, r7, fp
	ldr	r0, [r5, #8]
	bl	le16_to_cpu
	mov	r4, r0
	mov	r0, #1
	bl	EXOFS_DIR_REC_LEN
	cmp	r0, r4
	add	r10, r4, fp
	bhi	.L8
	tst	r4, #3
	bne	.L9
	ldr	r0, [r5]
	bl	EXOFS_DIR_REC_LEN
	sub	r1, r10, #1
	cmp	r0, r4
	eor	r1, r1, fp
	bhi	.L10
	tst	r1, r6
	bne	.L11
	mov	r0, #1
	bl	EXOFS_DIR_REC_LEN
	sub	r0, r8, r0
	cmp	r10, r0
	bls	.L12
	cmp	r10, r8
	beq	.L5
	ldr	r3, .L20
	ldr	r2, [sp, #20]
	ldr	r4, [r3]
	add	r7, r7, r10
	ldr	r3, [r9]
	ldr	r0, [r7, #4]
	ldr	r5, [r2, #4]
	add	r4, r10, r3, lsl r4
	bl	le64_to_cpu
	bl	_LLU
	mov	r2, r4
	mov	r3, r0
	mov	r1, r5
	ldr	r0, .L20+8
	bl	EXOFS_ERR
.L4:
	mov	r0, r9
	bl	SetPageChecked
	mov	r0, r9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	SetPageError
.L18:
	ldr	r1, .L20+12
	sub	r2, r6, #1
	ldr	r8, [r1]
	bic	r8, r3, r8
	tst	r2, r8
	bne	.L19
	cmp	r8, #0
	bne	.L2
.L5:
	mov	r0, r9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	SetPageChecked
.L8:
	ldr	r7, .L20+16
.L6:
	ldr	r3, .L20
	ldr	r2, [r9]
	ldr	r6, [r3]
	ldr	r3, [sp, #20]
	ldr	r0, [r5, #4]
	ldr	r8, [r3, #4]
	add	r6, fp, r2, lsl r6
	bl	le64_to_cpu
	bl	_LLU
	ldr	r2, [r5]
	mov	r3, r6
	stm	sp, {r0, r4}
	str	r2, [sp, #8]
	mov	r1, r8
	mov	r2, r7
	ldr	r0, .L20+20
	bl	EXOFS_ERR
	b	.L4
.L9:
	ldr	r7, .L20+24
	b	.L6
.L10:
	ldr	r7, .L20+28
	b	.L6
.L11:
	ldr	r7, .L20+32
	b	.L6
.L19:
	ldr	r3, [sp, #20]
	ldr	r0, .L20+36
	ldr	r1, [r3, #4]
	bl	EXOFS_ERR
	b	.L4
.L21:
	.align	2
.L20:
	.word	PAGE_CACHE_SHIFT
	.word	PAGE_CACHE_SIZE
	.word	.LC5
	.word	PAGE_CACHE_MASK
	.word	.LC0
	.word	.LC6
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	exofs_check_page, .-exofs_check_page
	.comm	PAGE_CACHE_SIZE,4,4
	.comm	PAGE_CACHE_SHIFT,4,4
	.comm	PAGE_CACHE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
