	.file	"extr_bmap.c_gfs2_block_truncate_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gfs2_block_truncate_page, @function
gfs2_block_truncate_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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rdi, r14
	call	GFS2_I@PLT
	mov	ecx, DWORD PTR PAGE_CACHE_SHIFT[rip]
	mov	r8d, ebp
	mov	rdi, r12
	mov	edx, DWORD PTR GFP_NOFS[rip]
	mov	QWORD PTR 8[rsp], rax
	sar	r8d, cl
	mov	r15d, DWORD PTR PAGE_CACHE_SIZE[rip]
	movsx	r13, r8d
	mov	rsi, r13
	call	find_or_create_page@PLT
	xor	r9d, r9d
	test	rax, rax
	je	.L1
	mov	r12, rax
	mov	rax, QWORD PTR [r14]
	mov	ecx, DWORD PTR PAGE_CACHE_SHIFT[rip]
	mov	rdi, r12
	sub	ecx, DWORD PTR 4[rax]
	mov	ebx, DWORD PTR [rax]
	sal	r13, cl
	call	page_has_buffers@PLT
	test	eax, eax
	je	.L25
.L3:
	mov	rdi, r12
	sub	r15d, 1
	call	page_buffers@PLT
	and	ebp, r15d
	mov	QWORD PTR 16[rsp], rax
	mov	rdi, rax
	cmp	ebp, ebx
	jb	.L4
	mov	eax, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR [rdi]
	add	eax, ebx
	add	r13d, 1
	mov	QWORD PTR 16[rsp], rdi
	cmp	ebp, eax
	jnb	.L5
.L4:
	call	buffer_mapped@PLT
	test	eax, eax
	jne	.L10
	mov	rdx, QWORD PTR 16[rsp]
	xor	ecx, ecx
	mov	esi, r13d
	mov	rdi, r14
	call	gfs2_block_map@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	buffer_mapped@PLT
	mov	r9d, eax
	test	eax, eax
	je	.L9
.L10:
	mov	rdi, r12
	call	PageUptodate@PLT
	test	rax, rax
	jne	.L26
	mov	rdi, QWORD PTR 16[rsp]
	call	buffer_uptodate@PLT
	test	eax, eax
	je	.L11
.L14:
	mov	rdi, QWORD PTR 8[rsp]
	call	gfs2_is_writeback@PLT
	test	eax, eax
	je	.L27
.L13:
	lea	eax, -1[rbx]
	mov	edx, ebx
	mov	esi, ebp
	mov	rdi, r12
	and	eax, ebp
	sub	edx, eax
	call	zero_user@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	mark_buffer_dirty@PLT
	xor	r9d, r9d
.L9:
	mov	rdi, r12
	mov	DWORD PTR 8[rsp], r9d
	call	unlock_page@PLT
	mov	rdi, r12
	call	page_cache_release@PLT
	mov	r9d, DWORD PTR 8[rsp]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r9d
	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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR READ[rip]
	lea	rdx, 16[rsp]
	mov	esi, 1
	mov	r14d, DWORD PTR EIO[rip]
	call	ll_rw_block@PLT
	mov	rdi, QWORD PTR 16[rsp]
	neg	r14d
	call	wait_on_buffer@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	buffer_uptodate@PLT
	mov	r9d, r14d
	test	eax, eax
	je	.L9
	mov	rdi, QWORD PTR 8[rsp]
	call	gfs2_is_writeback@PLT
	test	eax, eax
	jne	.L13
.L27:
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	gfs2_trans_add_data@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	xor	edx, edx
	mov	esi, ebx
	mov	rdi, r12
	call	create_empty_buffers@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, QWORD PTR 16[rsp]
	call	set_buffer_uptodate@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	buffer_uptodate@PLT
	test	eax, eax
	je	.L11
	jmp	.L14
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gfs2_block_truncate_page, .-gfs2_block_truncate_page
	.comm	READ,4,4
	.comm	PAGE_CACHE_SIZE,4,4
	.comm	PAGE_CACHE_SHIFT,4,4
	.comm	GFP_NOFS,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_bmap.c_gfs2_block_truncate_page.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfs2_block_truncate_page, %function
gfs2_block_truncate_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	r9, [r0]
	ldr	r3, .L27
	mov	r5, r1
	sub	sp, sp, #12
	mov	r6, r0
	mov	r0, r9
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	GFS2_I
	ldr	fp, .L27+4
	ldr	r2, .L27+8
	ldr	r4, [fp]
	ldr	r3, .L27+12
	asr	r4, r5, r4
	mov	r1, r4
	mov	r8, r0
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r10, [r3]
	bl	find_or_create_page
	subs	r7, r0, #0
	moveq	r4, r7
	beq	.L1
	ldr	r3, [r9]
	ldr	r1, [fp]
	ldr	r2, [r3, #4]
	ldr	r6, [r3]
	sub	r1, r1, r2
	lsl	r4, r4, r1
	bl	page_has_buffers
	subs	r2, r0, #0
	beq	.L23
.L3:
	mov	r0, r7
	bl	page_buffers
	sub	r10, r10, #1
	and	r5, r5, r10
	cmp	r5, r6
	str	r0, [sp]
	bcc	.L4
	mov	r3, r6
.L5:
	ldr	r0, [r0]
	add	r3, r3, r6
	cmp	r5, r3
	str	r0, [sp]
	add	r4, r4, #1
	bcs	.L5
.L4:
	bl	buffer_mapped
	subs	r3, r0, #0
	bne	.L10
	mov	r1, r4
	ldr	r2, [sp]
	mov	r0, r9
	bl	gfs2_block_map
	ldr	r0, [sp]
	bl	buffer_mapped
	subs	r4, r0, #0
	beq	.L9
.L10:
	mov	r0, r7
	bl	PageUptodate
	cmp	r0, #0
	bne	.L24
	ldr	r0, [sp]
	bl	buffer_uptodate
	cmp	r0, #0
	beq	.L11
.L14:
	mov	r0, r8
	bl	gfs2_is_writeback
	cmp	r0, #0
	beq	.L25
.L13:
	sub	r2, r6, #1
	and	r2, r2, r5
	mov	r1, r5
	sub	r2, r6, r2
	mov	r0, r7
	bl	zero_user
	ldr	r0, [sp]
	bl	mark_buffer_dirty
	mov	r4, #0
.L9:
	mov	r0, r7
	bl	unlock_page
	mov	r0, r7
	bl	page_cache_release
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r2, .L27+16
	ldr	r3, .L27+20
	mov	r1, #1
	ldr	r0, [r2]
	mov	r2, sp
	ldr	r4, [r3]
	bl	ll_rw_block
	ldr	r0, [sp]
	bl	wait_on_buffer
	ldr	r0, [sp]
	bl	buffer_uptodate
	cmp	r0, #0
	rsbeq	r4, r4, #0
	beq	.L9
	mov	r0, r8
	bl	gfs2_is_writeback
	cmp	r0, #0
	bne	.L13
.L25:
	ldr	r0, [r8]
	ldr	r1, [sp]
	bl	gfs2_trans_add_data
	b	.L13
.L23:
	mov	r1, r6
	mov	r0, r7
	bl	create_empty_buffers
	b	.L3
.L24:
	ldr	r0, [sp]
	bl	set_buffer_uptodate
	ldr	r0, [sp]
	bl	buffer_uptodate
	cmp	r0, #0
	beq	.L11
	b	.L14
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	PAGE_CACHE_SHIFT
	.word	GFP_NOFS
	.word	PAGE_CACHE_SIZE
	.word	READ
	.word	EIO
	.size	gfs2_block_truncate_page, .-gfs2_block_truncate_page
	.comm	READ,4,4
	.comm	PAGE_CACHE_SIZE,4,4
	.comm	PAGE_CACHE_SHIFT,4,4
	.comm	GFP_NOFS,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
