	.file	"extr_mballoc.c_ext4_mb_good_group.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ext4_mb_good_group, @function
ext4_mb_good_group:
.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
	mov	r13d, esi
	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
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR 16[rdi]
	call	EXT4_SB@PLT
	mov	edi, eax
	call	ext4_flex_bg_size@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	esi, r13d
	mov	r14d, eax
	call	ext4_get_group_info@PLT
	xor	edi, edi
	cmp	ebp, 3
	mov	r12, rax
	seta	dil
	call	BUG_ON@PLT
	mov	r15d, DWORD PTR [r12]
	test	r15d, r15d
	je	.L30
	cmp	ebp, 2
	jg	.L4
	cmp	DWORD PTR 4[rbx], r15d
	ja	.L30
.L4:
	mov	rdi, r12
	call	EXT4_MB_GRP_BBITMAP_CORRUPT@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L32
.L30:
	xor	r8d, r8d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L32:
	.cfi_restore_state
	mov	rdi, r12
	call	EXT4_MB_GRP_NEED_INIT@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
.L8:
	mov	ecx, DWORD PTR 4[r12]
	test	ecx, ecx
	je	.L30
	cmp	ebp, 2
	je	.L9
	jg	.L10
	test	ebp, ebp
	je	.L11
	cmp	ebp, 1
	jne	.L13
	xor	edx, edx
	mov	eax, r15d
	xor	r8d, r8d
	div	ecx
	cmp	eax, DWORD PTR 4[rbx]
	setnb	r8b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR GFP_NOFS[rip]
	mov	esi, r13d
	call	ext4_mb_init_group@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r8d, 1
	cmp	ebp, 3
	je	.L1
.L13:
	xor	eax, eax
	call	BUG@PLT
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L9:
	xor	r8d, r8d
	cmp	DWORD PTR 4[rbx], r15d
	setbe	r8b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 8[rbx]
	xor	edi, edi
	mov	DWORD PTR 12[rsp], ecx
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR EXT4_MB_HINT_DATA[rip], eax
	mov	ecx, DWORD PTR 12[rsp]
	je	.L14
	cmp	DWORD PTR EXT4_FLEX_SIZE_DIR_ALLOC_SCHEME[rip], r14d
	jg	.L14
	mov	eax, r13d
	cdq
	idiv	r14d
	test	edx, edx
	je	.L30
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	r8d, 1
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	cmp	esi, eax
	jg	.L1
	mov	eax, r15d
	xor	edx, edx
	div	ecx
	cmp	eax, DWORD PTR 4[rbx]
	jnb	.L1
	xor	r8d, r8d
	cmp	esi, DWORD PTR 8[r12]
	setle	r8b
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ext4_mb_good_group, .-ext4_mb_good_group
	.comm	GFP_NOFS,4,4
	.comm	EXT4_MB_HINT_DATA,4,4
	.comm	EXT4_FLEX_SIZE_DIR_ALLOC_SCHEME,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_mballoc.c_ext4_mb_good_group.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext4_mb_good_group, %function
ext4_mb_good_group:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r0, #12]
	mov	r4, r2
	mov	r7, r1
	bl	EXT4_SB
	bl	ext4_flex_bg_size
	mov	r1, r7
	mov	r9, r0
	ldr	r0, [r5, #12]
	bl	ext4_get_group_info
	mov	r6, r0
	cmp	r4, #3
	movls	r0, #0
	movhi	r0, #1
	bl	BUG_ON
	ldr	r8, [r6]
	cmp	r8, #0
	beq	.L30
	cmp	r4, #2
	bgt	.L4
	ldr	r3, [r5, #4]
	cmp	r3, r8
	bhi	.L30
.L4:
	mov	r0, r6
	bl	EXT4_MB_GRP_BBITMAP_CORRUPT
	bl	unlikely
	cmp	r0, #0
	beq	.L32
.L30:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L32:
	mov	r0, r6
	bl	EXT4_MB_GRP_NEED_INIT
	bl	unlikely
	cmp	r0, #0
	bne	.L6
.L8:
	ldr	r10, [r6, #4]
	cmp	r10, #0
	beq	.L30
	cmp	r4, #3
	ldrls	pc, [pc, r4, asl #2]
	b	.L9
.L10:
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L17
.L17:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	ldr	r3, .L33
	mov	r1, r7
	ldr	r2, [r3]
	ldr	r0, [r5, #12]
	bl	ext4_mb_init_group
	cmp	r0, #0
	beq	.L8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r0, [r5, #4]
	cmp	r0, r8
	movhi	r0, #0
	movls	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r0, [r5, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r3, .L33+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L14
	ldr	r3, .L33+8
	ldr	r3, [r3]
	cmp	r3, r9
	bgt	.L14
	mov	r1, r9
	mov	r0, r7
	bl	__aeabi_idivmod
	cmp	r1, #0
	beq	.L30
.L14:
	ldr	r3, [r5, #12]
	ldr	r4, [r5, #8]
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r4, r3
	bgt	.L17
	mov	r1, r10
	mov	r0, r8
	bl	__aeabi_uidiv
	ldr	r3, [r5, #4]
	cmp	r0, r3
	bcs	.L17
	ldr	r0, [r6, #8]
	cmp	r4, r0
	movgt	r0, #0
	movle	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r1, r10
	mov	r0, r8
	bl	__aeabi_uidiv
	ldr	r3, [r5, #4]
	cmp	r0, r3
	movcc	r0, #0
	movcs	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	bl	BUG
	b	.L30
.L34:
	.align	2
.L33:
	.word	GFP_NOFS
	.word	EXT4_MB_HINT_DATA
	.word	EXT4_FLEX_SIZE_DIR_ALLOC_SCHEME
	.size	ext4_mb_good_group, .-ext4_mb_good_group
	.comm	GFP_NOFS,4,4
	.comm	EXT4_MB_HINT_DATA,4,4
	.comm	EXT4_FLEX_SIZE_DIR_ALLOC_SCHEME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
