	.file	"extr_balloc.c_ext4_init_block_bitmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ext4_init_block_bitmap, @function
ext4_init_block_bitmap:
.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, rcx
	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	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	EXT4_SB@PLT
	mov	rdi, r12
	mov	r15, rax
	call	buffer_locked@PLT
	mov	rdi, r12
	mov	esi, eax
	call	J_ASSERT_BH@PLT
	mov	rdx, r14
	mov	esi, r13d
	mov	rdi, rbp
	call	ext4_group_desc_csum_verify@PLT
	test	eax, eax
	je	.L26
	mov	edi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR 0[rbp]
	xor	esi, esi
	call	memset@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	ext4_num_base_meta_clusters@PLT
	mov	DWORD PTR 4[rsp], eax
	mov	ecx, eax
	shr	eax, 3
	cmp	eax, DWORD PTR [r12]
	jnb	.L4
	xor	ebx, ebx
	test	ecx, ecx
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 4[r12]
	mov	edi, ebx
	add	ebx, 1
	call	ext4_set_bit@PLT
	cmp	DWORD PTR 4[rsp], ebx
	jne	.L5
.L6:
	mov	esi, r13d
	mov	rdi, rbp
	call	ext4_group_first_block_no@PLT
	mov	rsi, r14
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	ext4_block_bitmap@PLT
	mov	edx, r13d
	mov	rdi, rbp
	mov	rsi, rax
	mov	rbx, rax
	call	ext4_block_in_group@PLT
	test	rax, rax
	jne	.L27
.L7:
	mov	rsi, r14
	mov	rdi, rbp
	call	ext4_inode_bitmap@PLT
	mov	edx, r13d
	mov	rdi, rbp
	mov	rsi, rax
	mov	rbx, rax
	call	ext4_block_in_group@PLT
	test	rax, rax
	jne	.L28
.L8:
	mov	rsi, r14
	mov	rdi, rbp
	call	ext4_inode_table@PLT
	mov	rbx, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	add	rbx, 1
.L9:
	mov	rsi, r14
	mov	rdi, rbp
	call	ext4_inode_table@PLT
	add	rax, QWORD PTR [r15]
	cmp	rax, rbx
	jle	.L29
	mov	edx, r13d
	mov	rsi, rbx
	mov	rdi, rbp
	call	ext4_block_in_group@PLT
	test	rax, rax
	je	.L10
	mov	r8d, DWORD PTR 4[r12]
	mov	rdi, r15
	mov	rsi, rbx
	sub	rsi, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rsp], r8d
	call	EXT4_B2C@PLT
	mov	r8d, DWORD PTR 4[rsp]
	mov	edi, eax
	mov	esi, r8d
	call	ext4_set_bit@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR EFSCORRUPTED[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L29:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	mov	r14d, DWORD PTR 4[r12]
	mov	esi, r13d
	mov	rdi, rbp
	lea	r12d, 0[0+rax*8]
	call	num_clusters_in_group@PLT
	mov	edx, r14d
	mov	esi, r12d
	mov	edi, eax
	call	ext4_mark_bitmap_end@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L26:
	.cfi_restore_state
	mov	edx, DWORD PTR EXT4_GROUP_INFO_BBITMAP_CORRUPT[rip]
	mov	esi, r13d
	mov	rdi, rbp
	or	edx, DWORD PTR EXT4_GROUP_INFO_IBITMAP_CORRUPT[rip]
	call	ext4_mark_group_bitmap_corrupted@PLT
	mov	eax, DWORD PTR EFSBADCRC[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L27:
	.cfi_restore_state
	mov	r8d, DWORD PTR 4[r12]
	sub	rbx, QWORD PTR 8[rsp]
	mov	rdi, r15
	mov	rsi, rbx
	mov	DWORD PTR 4[rsp], r8d
	call	EXT4_B2C@PLT
	mov	r8d, DWORD PTR 4[rsp]
	mov	edi, eax
	mov	esi, r8d
	call	ext4_set_bit@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	mov	r8d, DWORD PTR 4[r12]
	sub	rbx, QWORD PTR 8[rsp]
	mov	rdi, r15
	mov	rsi, rbx
	mov	DWORD PTR 4[rsp], r8d
	call	EXT4_B2C@PLT
	mov	r8d, DWORD PTR 4[rsp]
	mov	edi, eax
	mov	esi, r8d
	call	ext4_set_bit@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ext4_init_block_bitmap, .-ext4_init_block_bitmap
	.comm	EXT4_GROUP_INFO_IBITMAP_CORRUPT,4,4
	.comm	EXT4_GROUP_INFO_BBITMAP_CORRUPT,4,4
	.comm	EFSCORRUPTED,4,4
	.comm	EFSBADCRC,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_balloc.c_ext4_init_block_bitmap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext4_init_block_bitmap, %function
ext4_init_block_bitmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r7, r2
	mov	r8, r3
	mov	r5, r0
	bl	EXT4_SB
	mov	r9, r0
	mov	r0, r6
	bl	buffer_locked
	mov	r1, r0
	mov	r0, r6
	bl	J_ASSERT_BH
	mov	r2, r8
	mov	r1, r7
	mov	r0, r5
	bl	ext4_group_desc_csum_verify
	cmp	r0, #0
	beq	.L25
	mov	r1, #0
	ldr	r2, [r5]
	ldr	r0, [r6, #4]
	bl	memset
	mov	r1, r7
	mov	r0, r5
	bl	ext4_num_base_meta_clusters
	ldr	r3, [r6]
	mov	r10, r0
	cmp	r3, r0, lsr #3
	bls	.L4
	cmp	r0, #0
	movne	r4, #0
	beq	.L6
.L5:
	mov	r0, r4
	ldr	r1, [r6, #4]
	add	r4, r4, #1
	bl	ext4_set_bit
	cmp	r10, r4
	bne	.L5
.L6:
	mov	r1, r7
	mov	r0, r5
	bl	ext4_group_first_block_no
	mov	r1, r8
	mov	r10, r0
	mov	r0, r5
	bl	ext4_block_bitmap
	mov	r2, r7
	mov	r1, r0
	mov	r4, r0
	mov	r0, r5
	bl	ext4_block_in_group
	cmp	r0, #0
	bne	.L26
.L7:
	mov	r1, r8
	mov	r0, r5
	bl	ext4_inode_bitmap
	mov	r2, r7
	mov	r1, r0
	mov	r4, r0
	mov	r0, r5
	bl	ext4_block_in_group
	cmp	r0, #0
	bne	.L27
.L8:
	mov	r1, r8
	mov	r0, r5
	bl	ext4_inode_table
	mov	r4, r0
	b	.L9
.L10:
	add	r4, r4, #1
.L9:
	mov	r1, r8
	mov	r0, r5
	bl	ext4_inode_table
	ldr	ip, [r9]
	add	ip, r0, ip
	cmp	ip, r4
	ble	.L28
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	ext4_block_in_group
	cmp	r0, #0
	beq	.L10
	sub	r1, r4, r10
	mov	r0, r9
	bl	EXT4_B2C
	ldr	r1, [r6, #4]
	bl	ext4_set_bit
	b	.L10
.L4:
	ldr	r3, .L29
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L28:
	mov	r1, r7
	mov	r0, r5
	bl	num_clusters_in_group
	ldr	r1, [r5]
	ldr	r2, [r6, #4]
	lsl	r1, r1, #3
	bl	ext4_mark_bitmap_end
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	ldr	r2, .L29+4
	ldr	r3, .L29+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r7
	orr	r2, r2, r3
	mov	r0, r5
	bl	ext4_mark_group_bitmap_corrupted
	ldr	r3, .L29+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	sub	r1, r4, r10
	mov	r0, r9
	bl	EXT4_B2C
	ldr	r1, [r6, #4]
	bl	ext4_set_bit
	b	.L7
.L27:
	sub	r1, r4, r10
	mov	r0, r9
	bl	EXT4_B2C
	ldr	r1, [r6, #4]
	bl	ext4_set_bit
	b	.L8
.L30:
	.align	2
.L29:
	.word	EFSCORRUPTED
	.word	EXT4_GROUP_INFO_BBITMAP_CORRUPT
	.word	EXT4_GROUP_INFO_IBITMAP_CORRUPT
	.word	EFSBADCRC
	.size	ext4_init_block_bitmap, .-ext4_init_block_bitmap
	.comm	EXT4_GROUP_INFO_IBITMAP_CORRUPT,4,4
	.comm	EXT4_GROUP_INFO_BBITMAP_CORRUPT,4,4
	.comm	EFSCORRUPTED,4,4
	.comm	EFSBADCRC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
