	.file	"extr_aops.c_ocfs2_map_page_blocks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ocfs2_map_page_blocks
	.type	ocfs2_map_page_blocks, @function
ocfs2_map_page_blocks:
.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
	mov	r13, rsi
	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, 104
	.cfi_def_cfa_offset 160
	mov	DWORD PTR 16[rsp], ecx
	mov	ecx, DWORD PTR [rdx]
	mov	QWORD PTR 24[rsp], rdx
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 20[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	eax, 1
	sal	eax, cl
	mov	DWORD PTR 8[rsp], eax
	call	page_has_buffers@PLT
	test	eax, eax
	je	.L38
.L2:
	mov	rdi, r14
	xor	ebx, ebx
	call	page_buffers@PLT
	mov	QWORD PTR 56[rsp], rax
	mov	r12, rax
	mov	rdi, rax
	lea	rax, 64[rsp]
	mov	QWORD PTR 32[rsp], rax
	mov	rbp, rax
	lea	rax, 56[rsp]
	mov	QWORD PTR 40[rsp], rax
	.p2align 4,,10
	.p2align 3
.L30:
	mov	r15d, ebx
	add	ebx, DWORD PTR 8[rsp]
	call	clear_buffer_new@PLT
	cmp	DWORD PTR 12[rsp], r15d
	jbe	.L25
	cmp	DWORD PTR 16[rsp], ebx
	jnb	.L25
	mov	edx, DWORD PTR 20[rsp]
	mov	rdi, QWORD PTR 56[rsp]
	test	edx, edx
	jne	.L39
.L7:
	call	buffer_mapped@PLT
	test	eax, eax
	je	.L40
.L8:
	mov	rdi, r14
	call	PageUptodate@PLT
	mov	rdi, QWORD PTR 56[rsp]
	test	rax, rax
	je	.L9
	call	buffer_uptodate@PLT
	test	eax, eax
	je	.L10
.L35:
	mov	rax, QWORD PTR 56[rsp]
.L11:
	add	DWORD PTR 0[r13], 1
.L6:
	mov	rdi, QWORD PTR [rax]
	mov	QWORD PTR 56[rsp], rdi
	cmp	rdi, r12
	jne	.L30
	test	ebx, ebx
	je	.L30
	mov	rbx, QWORD PTR 32[rsp]
	xor	r13d, r13d
	cmp	rbp, rbx
	jbe	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r15, QWORD PTR -8[rbp]
	sub	rbp, 8
	mov	rdi, r15
	call	wait_on_buffer@PLT
	mov	rdi, r15
	call	buffer_uptodate@PLT
	test	eax, eax
	jne	.L19
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
.L19:
	cmp	rbp, rbx
	ja	.L20
	test	r13d, r13d
	je	.L1
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	je	.L1
	xor	ebx, ebx
	mov	ebp, DWORD PTR 8[rsp]
	mov	r15d, DWORD PTR 16[rsp]
	mov	QWORD PTR 56[rsp], r12
	mov	DWORD PTR 8[rsp], r13d
	mov	r13d, ebx
	mov	ebx, DWORD PTR 12[rsp]
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, r13d
	add	r13d, ebp
	cmp	r13d, r15d
	jbe	.L21
	cmp	esi, ebx
	jnb	.L32
	mov	rax, QWORD PTR 56[rsp]
	mov	rdi, r14
	mov	edx, DWORD PTR 8[rax]
	call	zero_user@PLT
	mov	rdi, QWORD PTR 56[rsp]
	call	set_buffer_uptodate@PLT
	mov	rdi, QWORD PTR 56[rsp]
	call	mark_buffer_dirty@PLT
.L21:
	mov	rax, QWORD PTR 56[rsp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 56[rsp], rax
	cmp	rax, r12
	jne	.L22
.L32:
	mov	r13d, DWORD PTR 8[rsp]
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L9:
	.cfi_restore_state
	call	buffer_uptodate@PLT
	test	eax, eax
	jne	.L35
	mov	rdi, QWORD PTR 56[rsp]
	call	buffer_delay@PLT
	test	eax, eax
	jne	.L35
	mov	rdi, QWORD PTR 56[rsp]
	call	buffer_new@PLT
	test	eax, eax
	jne	.L35
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, r15d
	mov	rsi, r14
	call	ocfs2_should_read_blk@PLT
	test	rax, rax
	je	.L35
	cmp	DWORD PTR 16[rsp], r15d
	ja	.L16
	cmp	DWORD PTR 12[rsp], ebx
	jnb	.L35
.L16:
	mov	rdx, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR READ[rip]
	mov	esi, 1
	add	rbp, 8
	call	ll_rw_block@PLT
	mov	rax, QWORD PTR 56[rsp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rax, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 56[rsp]
	mov	edx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR 4[rax]
	call	map_bh@PLT
	mov	rax, QWORD PTR 56[rsp]
	mov	esi, DWORD PTR 12[rax]
	mov	edi, DWORD PTR 16[rax]
	call	unmap_underlying_metadata@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L39:
	call	set_buffer_new@PLT
	mov	rdi, QWORD PTR 56[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, r14
	call	PageUptodate@PLT
	test	rax, rax
	jne	.L5
.L36:
	mov	rax, QWORD PTR 56[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 56[rsp]
	call	set_buffer_uptodate@PLT
	mov	rax, QWORD PTR 56[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR 56[rsp]
	call	set_buffer_uptodate@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L38:
	mov	esi, DWORD PTR 8[rsp]
	xor	edx, edx
	mov	rdi, r14
	call	create_empty_buffers@PLT
	jmp	.L2
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_map_page_blocks, .-ocfs2_map_page_blocks
	.comm	READ,4,4
	.comm	EIO,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_aops.c_ocfs2_map_page_blocks.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ocfs2_map_page_blocks
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_map_page_blocks, %function
ocfs2_map_page_blocks:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, #1
	sub	sp, sp, #28
	str	r2, [sp]
	mov	r9, r3
	ldr	r2, [r2]
	ldr	r3, .L42
	lsl	r8, r8, r2
	mov	fp, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r10, r0
	bl	page_has_buffers
	subs	r2, r0, #0
	beq	.L35
.L2:
	mov	r0, r10
	bl	page_buffers
	mov	r7, r0
	add	r6, sp, #12
	stmib	sp, {r6, r7}
	mov	r5, #0
	ldr	r6, [sp, #64]
	b	.L16
.L40:
	bl	buffer_uptodate
	cmp	r0, #0
	beq	.L9
.L32:
	ldr	r2, [sp, #8]
.L10:
	ldr	r3, [fp]
	add	r3, r3, #1
	str	r3, [fp]
.L5:
	clz	r4, r5
	ldr	r0, [r2]
	lsr	r4, r4, #5
	cmp	r0, r7
	orrne	r4, r4, #1
	cmp	r4, #0
	str	r0, [sp, #8]
	beq	.L36
.L16:
	mov	r4, r5
	add	r5, r5, r8
	bl	clear_buffer_new
	cmp	r9, r5
	movcc	r3, #0
	movcs	r3, #1
	cmp	r6, r4
	orrls	r3, r3, #1
	cmp	r3, #0
	bne	.L37
	ldr	r3, [sp, #68]
	ldr	r0, [sp, #8]
	cmp	r3, #0
	bne	.L38
.L6:
	bl	buffer_mapped
	cmp	r0, #0
	beq	.L39
.L7:
	mov	r0, r10
	bl	PageUptodate
	cmp	r0, #0
	ldr	r0, [sp, #8]
	bne	.L40
	bl	buffer_uptodate
	cmp	r0, #0
	bne	.L32
	ldr	r0, [sp, #8]
	bl	buffer_delay
	cmp	r0, #0
	bne	.L32
	ldr	r0, [sp, #8]
	bl	buffer_new
	cmp	r0, #0
	bne	.L32
	mov	r2, r4
	mov	r1, r10
	ldr	r0, [sp]
	bl	ocfs2_should_read_blk
	cmp	r0, #0
	beq	.L32
	cmp	r6, r5
	movcs	r3, #0
	movcc	r3, #1
	cmp	r9, r4
	movls	r4, r3
	orrhi	r4, r3, #1
	cmp	r4, #0
	beq	.L32
	ldr	r3, .L42+4
	add	r2, sp, #8
	ldr	r0, [r3]
	mov	r1, #1
	bl	ll_rw_block
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #8]
	str	r2, [r3], #4
	str	r3, [sp, #4]
	b	.L10
.L39:
	ldr	r3, [sp]
	ldr	r2, [fp]
	ldr	r1, [r3, #4]
	ldr	r0, [sp, #8]
	bl	map_bh
	ldr	r3, [sp, #8]
	ldr	r1, [r3, #8]
	ldr	r0, [r3, #12]
	bl	unmap_underlying_metadata
	b	.L7
.L38:
	bl	set_buffer_new
	ldr	r0, [sp, #8]
	b	.L6
.L37:
	mov	r0, r10
	bl	PageUptodate
	cmp	r0, #0
	bne	.L4
.L33:
	ldr	r2, [sp, #8]
	b	.L5
.L9:
	ldr	r0, [sp, #8]
	bl	set_buffer_uptodate
	ldr	r2, [sp, #8]
	b	.L10
.L36:
	ldr	r6, [sp, #4]
	add	r3, sp, #12
	cmp	r6, r3
	bls	.L23
	mvn	r5, r3
	add	r5, r6, r5
	bic	r5, r5, #3
	eor	r5, r5, #3
	mvn	r5, r5
	ldr	fp, .L42+8
	add	r5, r6, r5
	str	r7, [sp]
.L19:
	ldr	r7, [r6, #-4]!
	mov	r0, r7
	bl	wait_on_buffer
	mov	r0, r7
	bl	buffer_uptodate
	cmp	r0, #0
	ldreq	r4, [fp]
	rsbeq	r4, r4, #0
	cmp	r6, r5
	bne	.L19
	ldr	r3, [sp, #68]
	cmp	r4, #0
	clz	r5, r3
	lsr	r5, r5, #5
	moveq	r5, #1
	cmp	r5, #0
	mov	r6, r4
	ldr	r7, [sp]
	bne	.L1
	ldr	r4, [sp, #64]
	str	r7, [sp, #8]
.L21:
	mov	r1, r5
	add	r5, r5, r8
	cmp	r5, r9
	bls	.L20
	cmp	r1, r4
	bcs	.L1
	ldr	r3, [sp, #8]
	mov	r0, r10
	ldr	r2, [r3, #4]
	bl	zero_user
	ldr	r0, [sp, #8]
	bl	set_buffer_uptodate
	ldr	r0, [sp, #8]
	bl	mark_buffer_dirty
.L20:
	ldr	r3, [sp, #8]
	ldr	r3, [r3]
	cmp	r3, r7
	str	r3, [sp, #8]
	bne	.L21
.L1:
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r0, [sp, #8]
	bl	set_buffer_uptodate
	b	.L33
.L35:
	mov	r1, r8
	mov	r0, r10
	bl	create_empty_buffers
	b	.L2
.L23:
	mov	r6, r4
	b	.L1
.L41:
	bl	__stack_chk_fail
.L43:
	.align	2
.L42:
	.word	.LC0
	.word	READ
	.word	EIO
	.size	ocfs2_map_page_blocks, .-ocfs2_map_page_blocks
	.comm	READ,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
