	.file	"extr_localalloc.c_ocfs2_la_default_mb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ocfs2_la_default_mb
	.type	ocfs2_la_default_mb, @function
ocfs2_la_default_mb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 16[rdi]
	mov	edx, DWORD PTR 24[rdi]
	mov	rdi, r12
	call	ocfs2_group_bitmap_size@PLT
	mov	rdi, QWORD PTR 16[rbp]
	lea	esi, 0[0+rax*8]
	call	ocfs2_clusters_to_megabytes@PLT
	mov	edx, DWORD PTR [r12]
	cmp	edx, 512
	je	.L13
	cmp	edx, 1024
	je	.L14
.L4:
	lea	ebx, -16[rax]
	mov	eax, DWORD PTR OCFS2_LA_MAX_DEFAULT_MB[rip]
	and	ebx, -5
	cmp	eax, ebx
	jnb	.L6
.L15:
	add	eax, eax
	cmp	eax, ebx
	jb	.L8
	cmp	ebx, 256
	jbe	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	shr	ebx
	cmp	ebx, 256
	ja	.L7
.L6:
	mov	eax, DWORD PTR 4[rbp]
	xor	edx, edx
	mov	rdi, QWORD PTR 16[rbp]
	div	DWORD PTR 8[rbp]
	mov	esi, eax
	call	ocfs2_clusters_to_megabytes@PLT
	mov	rdi, r12
	cmp	ebx, eax
	cmova	ebx, eax
	call	ocfs2_local_alloc_size@PLT
	mov	rdi, QWORD PTR 16[rbp]
	lea	esi, 0[0+rax*8]
	call	ocfs2_clusters_to_megabytes@PLT
	cmp	ebx, eax
	cmovbe	eax, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	DWORD PTR 0[rbp], 4096
	jne	.L4
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR OCFS2_LA_OLD_DEFAULT[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	cmp	DWORD PTR 0[rbp], 8192
	jle	.L3
	lea	ebx, -16[rax]
	mov	eax, DWORD PTR OCFS2_LA_MAX_DEFAULT_MB[rip]
	and	ebx, -5
	cmp	eax, ebx
	jnb	.L6
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ebx, 256
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ocfs2_la_default_mb, .-ocfs2_la_default_mb
	.comm	OCFS2_LA_OLD_DEFAULT,4,4
	.comm	OCFS2_LA_MAX_DEFAULT_MB,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_localalloc.c_ocfs2_la_default_mb.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.global	ocfs2_la_default_mb
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_la_default_mb, %function
ocfs2_la_default_mb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #12]
	ldr	r2, [r0, #16]
	mov	r1, #0
	mov	r5, r0
	mov	r0, r6
	bl	ocfs2_group_bitmap_size
	mov	r1, r0
	mov	r0, r6
	lsl	r1, r1, #3
	bl	ocfs2_clusters_to_megabytes
	ldr	r3, [r6]
	cmp	r3, #512
	beq	.L12
	cmp	r3, #1024
	beq	.L13
.L4:
	ldr	r3, .L14
	sub	r4, r0, #16
	ldr	r3, [r3]
	bic	r4, r4, #4
	cmp	r3, r4
	bcs	.L6
	cmp	r4, r3, lsl #1
	movhi	r4, #256
	bhi	.L6
	cmp	r4, #256
	bls	.L6
.L7:
	lsr	r4, r4, #1
	cmp	r4, #256
	bhi	.L7
.L6:
	ldmib	r5, {r0, r1}
	bl	__aeabi_uidiv
	mov	r1, r0
	ldr	r0, [r5, #12]
	bl	ocfs2_clusters_to_megabytes
	mov	r3, r0
	mov	r0, r6
	cmp	r4, r3
	movcs	r4, r3
	ldr	r5, [r5, #12]
	bl	ocfs2_local_alloc_size
	mov	r1, r0
	mov	r0, r5
	lsl	r1, r1, #3
	bl	ocfs2_clusters_to_megabytes
	cmp	r4, r0
	movcc	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, [r5]
	cmp	r3, #4096
	bne	.L4
.L3:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, [r5]
	cmp	r3, #8192
	bgt	.L4
	b	.L3
.L15:
	.align	2
.L14:
	.word	OCFS2_LA_MAX_DEFAULT_MB
	.word	OCFS2_LA_OLD_DEFAULT
	.size	ocfs2_la_default_mb, .-ocfs2_la_default_mb
	.comm	OCFS2_LA_OLD_DEFAULT,4,4
	.comm	OCFS2_LA_MAX_DEFAULT_MB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
