	.file	"extr_bmap.c_gfs2_walk_metadata.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gfs2_walk_metadata, @function
gfs2_walk_metadata:
.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, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rcx
	call	GFS2_I@PLT
	mov	rdi, r13
	mov	QWORD PTR 24[rsp], rax
	call	GFS2_SB@PLT
	mov	rdi, QWORD PTR 8[r14]
	mov	rbx, rax
	mov	eax, DWORD PTR [r14]
	lea	r15d, -1[rax]
	cmp	r15d, DWORD PTR 4[r14]
	jb	.L2
	mov	r12d, 1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, r15d
	sub	r15d, 1
	lea	rax, [rdi+rax*4]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR [rax], 0
	mov	esi, DWORD PTR [rbx]
	imul	edx, r12d
	imul	r12d, esi
	add	ebp, edx
	cmp	DWORD PTR 4[r14], r15d
	jbe	.L3
.L14:
	mov	edx, r15d
	test	r15d, r15d
	cmove	esi, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR [rdi+rdx*4]
	lea	r13, 0[0+rdx*4]
	sub	esi, eax
	mov	DWORD PTR 16[rsp], eax
	mov	eax, r12d
	imul	eax, esi
	mov	DWORD PTR 20[rsp], eax
	cmp	ebp, eax
	jb	.L30
.L6:
	mov	QWORD PTR [rsp], rdx
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, r14
	call	rax
	cmp	eax, 128
	je	.L16
	cmp	eax, 129
	mov	rdx, QWORD PTR [rsp]
	jne	.L8
	mov	eax, DWORD PTR [r14]
	xor	edi, edi
	cmp	DWORD PTR 4[r14], eax
	sete	dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 8[r14]
	mov	rdx, QWORD PTR [rsp]
	mov	eax, DWORD PTR [rax+rdx*4]
	sub	eax, DWORD PTR 16[rsp]
	imul	eax, r12d
	cmp	ebp, eax
	jbe	.L10
	sub	ebp, eax
.L12:
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r14
	mov	rax, QWORD PTR [rdi]
	lea	rdx, -1[rax]
	mov	QWORD PTR [rsp], rax
	call	fillup_metapath@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L1
	add	r15d, eax
	test	eax, eax
	je	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR [rbx]
	mov	edi, r12d
	call	do_div@PLT
	sub	r13d, 1
	jne	.L13
.L15:
	lea	eax, 1[r15]
	mov	rdi, QWORD PTR 8[r14]
	mov	esi, DWORD PTR [rbx]
	mov	DWORD PTR 4[r14], eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 20[rsp]
	cmp	ebp, eax
	jbe	.L10
	sub	ebp, eax
	lea	eax, -1[r15]
	mov	rdi, QWORD PTR 16[r14]
	sub	rax, rdx
	sal	rax, 2
	mov	QWORD PTR [rsp], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rcx, QWORD PTR [rsp]
	imul	r12d, DWORD PTR [rbx]
	sub	r15d, 1
	lea	rsi, [rcx+r13]
	add	rax, rsi
	mov	ecx, DWORD PTR [rax]
	lea	esi, 1[rcx]
	mov	DWORD PTR [rax], esi
	cmp	esi, DWORD PTR [rbx]
	jb	.L12
	sub	r13, 4
	test	r15d, r15d
	je	.L10
.L11:
	mov	rdi, QWORD PTR [rdi+r13*2]
	call	brelse@PLT
	mov	rdi, QWORD PTR 16[r14]
	mov	rax, QWORD PTR 8[r14]
	mov	QWORD PTR [rdi+r13*2], 0
	mov	DWORD PTR [rax+r13], 0
	test	r15d, r15d
	jne	.L31
.L10:
	xor	r13d, r13d
.L1:
	add	rsp, 40
	.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
.L16:
	.cfi_restore_state
	mov	r13d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, r12d
	mov	edi, ebp
	mov	QWORD PTR [rsp], rdx
	call	DIV_ROUND_UP_ULL@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	esi, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR [rbx]
	mov	r12d, 1
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	gfs2_walk_metadata, .-gfs2_walk_metadata
	.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_walk_metadata.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfs2_walk_metadata, %function
gfs2_walk_metadata:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r6, r1
	mov	r4, r0
	mov	r8, r2
	str	r3, [sp, #4]
	bl	GFS2_I
	mov	r10, r0
	mov	r0, r4
	str	r10, [sp, #12]
	bl	GFS2_SB
	ldr	r3, [r6]
	ldr	r2, [r6, #4]
	sub	r4, r3, #1
	cmp	r4, r2
	mov	r5, #1
	mov	r7, r0
	bcc	.L2
	mov	lr, #0
	ldr	ip, [r6, #8]
	add	r3, ip, r3, lsl #2
.L3:
	ldr	r1, [r3, #-4]!
	sub	r4, r4, #1
	str	lr, [r3]
	ldr	r0, [r6, #4]
	ldr	r2, [r7]
	cmp	r0, r4
	mla	r8, r1, r5, r8
	mul	r5, r2, r5
	bls	.L3
.L4:
	mov	r9, #0
.L14:
	cmp	r4, #0
	ldr	r1, [r7, #4]
	movne	r1, r2
	ldr	r3, [ip, r4, lsl #2]
	lsl	r10, r4, #2
	sub	r1, r1, r3
	mul	fp, r1, r5
	cmp	r8, fp
	str	r3, [sp, #8]
	bcc	.L33
.L6:
	mov	r0, r6
	ldr	r3, [sp, #4]
	blx	r3
	cmp	r0, #128
	beq	.L16
	cmp	r0, #129
	bne	.L8
	ldr	r2, [r6]
	ldr	r0, [r6, #4]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r2, [r6, #8]
	ldr	r3, [r2, r10]
	ldr	r2, [sp, #8]
	sub	r10, r3, r2
	mul	r10, r5, r10
	cmp	r8, r10
	bls	.L10
	sub	r8, r8, r10
.L12:
	ldr	r0, [sp, #12]
	mov	r1, r6
	ldr	r2, [r0]
	sub	r2, r2, #1
	bl	fillup_metapath
	subs	r10, r0, #0
	blt	.L29
	add	r4, r4, r10
	beq	.L15
.L13:
	mov	r0, r5
	ldr	r1, [r7]
	bl	do_div
	subs	r10, r10, #1
	bne	.L13
.L15:
	add	r3, r4, #1
	ldr	ip, [r6, #8]
	ldr	r2, [r7]
	str	r3, [r6, #4]
	b	.L14
.L8:
	cmp	r8, fp
	bls	.L10
	ldr	r1, [r6, #12]
	sub	r8, r8, fp
	b	.L11
.L34:
	ldr	r3, [r2, r4, lsl #2]
	ldr	r0, [r7]
	add	r3, r3, #1
	str	r3, [r2, r4, lsl #2]
	ldr	r2, [r7]
	mul	r5, r0, r5
	cmp	r3, r2
	lsl	r10, r4, #2
	bcc	.L12
	cmp	r4, #0
	beq	.L10
.L11:
	ldr	r0, [r1, r10]
	bl	brelse
	ldr	r1, [r6, #12]
	ldr	r2, [r6, #8]
	cmp	r4, #0
	str	r9, [r1, r10]
	sub	r4, r4, #1
	str	r9, [r2, r10]
	bne	.L34
.L10:
	mov	fp, #0
.L1:
	mov	r0, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	fp, #1
	mov	r0, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r1, r5
	mov	r0, r8
	bl	DIV_ROUND_UP_ULL
	mov	r1, r0
	b	.L6
.L2:
	ldr	ip, [r6, #8]
	ldr	r2, [r0]
	b	.L4
.L29:
	mov	fp, r10
	b	.L1
	.size	gfs2_walk_metadata, .-gfs2_walk_metadata
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
