	.file	"extr_rgrp.c_compute_bitstructs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"start=%u len=%u offset=%u\n"
	.text
	.p2align 4
	.type	compute_bitstructs, @function
compute_bitstructs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, DWORD PTR [rdi]
	test	ebx, ebx
	jne	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	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
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR GFP_NOFS[rip]
	mov	r12, QWORD PTR 24[rdi]
	mov	rbp, rdi
	mov	esi, 24
	mov	edi, ebx
	call	kcalloc@PLT
	mov	QWORD PTR 16[rbp], rax
	test	rax, rax
	je	.L23
	mov	r9d, DWORD PTR 4[rbp]
	test	ebx, ebx
	jle	.L5
	mov	rdx, rax
	mov	esi, r9d
	xor	ecx, ecx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	lea	edi, 1[rcx]
	test	ecx, ecx
	je	.L24
	mov	r8d, r9d
	sub	r8d, esi
	cmp	ebx, edi
	je	.L25
	mov	ecx, DWORD PTR [r12]
	mov	DWORD PTR [rdx], 4
	mov	DWORD PTR 4[rdx], r8d
	sub	ecx, 4
	mov	DWORD PTR 8[rdx], ecx
	sub	esi, ecx
	cmp	ebx, edi
	jle	.L13
.L9:
	add	rdx, 24
	mov	ecx, edi
.L11:
	mov	QWORD PTR 16[rdx], 0
	cmp	ebx, 1
	jne	.L6
	mov	QWORD PTR [rdx], 4
	mov	DWORD PTR 8[rdx], esi
.L7:
	lea	rdx, [rbx+rbx*2]
	lea	rbx, -24[rax+rdx*8]
	xor	eax, eax
	mov	edx, DWORD PTR 8[rbx]
	add	edx, DWORD PTR 4[rbx]
	imul	edx, DWORD PTR GFS2_NBBY[rip]
	cmp	edx, DWORD PTR 8[rbp]
	je	.L1
	mov	rdi, rbp
	call	gfs2_consist_rgrpd@PLT
	test	rax, rax
	jne	.L26
.L12:
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	ecx, DWORD PTR [r12]
	mov	DWORD PTR [rdx], 4
	mov	DWORD PTR 4[rdx], 0
	sub	ecx, 4
	mov	DWORD PTR 8[rdx], ecx
	sub	esi, ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	mov	DWORD PTR [rdx], 4
	mov	DWORD PTR 4[rdx], r8d
	mov	DWORD PTR 8[rdx], esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
.L26:
	mov	rdi, rbp
	call	gfs2_rindex_print@PLT
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 4[rbx]
	mov	rdi, r12
	mov	r8d, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	fs_err@PLT
	jmp	.L12
.L13:
	mov	r9d, esi
.L5:
	test	r9d, r9d
	je	.L7
	mov	rdi, rbp
	call	gfs2_consist_rgrpd@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	compute_bitstructs, .-compute_bitstructs
	.comm	GFS2_NBBY,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,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_rgrp.c_compute_bitstructs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"start=%u len=%u offset=%u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_bitstructs, %function
compute_bitstructs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, [r0]
	sub	sp, sp, #12
	cmp	r4, #0
	bne	.L2
	ldr	r3, .L28
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r5, r0
	ldr	r3, .L28+4
	mov	r1, #16
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r6, [r5, #16]
	bl	kcalloc
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r5, #12]
	beq	.L24
	cmp	r4, #0
	ldr	r9, [r5, #4]
	ble	.L5
	mov	r2, #0
	mov	r3, r0
	mov	lr, r2
	mov	r1, r9
	mov	r8, #4
	b	.L11
.L6:
	cmp	r2, #0
	add	ip, r2, #1
	beq	.L25
	cmp	r4, ip
	sub	r0, r9, r1
	beq	.L26
	ldr	r2, [r6]
	str	r8, [r3]
	sub	r2, r2, #4
	str	r2, [r3, #8]
	sub	r1, r1, r2
	str	r0, [r3, #4]
	ble	.L14
.L9:
	mov	r2, ip
	add	r3, r3, #16
.L11:
	cmp	r4, #1
	str	lr, [r3, #12]
	bne	.L6
	mov	r2, #4
	str	lr, [r3, #4]
	str	r1, [r3, #8]
	str	r2, [r3]
.L12:
	sub	r4, r4, #-268435455
	add	r8, r7, r4, lsl #4
	ldr	r2, .L28+8
	ldr	r3, [r8, #4]
	ldr	r1, [r8, #8]
	ldr	r2, [r2]
	add	r3, r3, r1
	mul	r3, r2, r3
	ldr	r2, [r5, #8]
	cmp	r3, r2
	moveq	r0, #0
	beq	.L1
	mov	r0, r5
	bl	gfs2_consist_rgrpd
	cmp	r0, #0
	bne	.L27
.L13:
	ldr	r3, .L28+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L25:
	ldr	r0, [r6]
	str	r8, [r3]
	sub	r0, r0, #4
	str	r0, [r3, #8]
	sub	r1, r1, r0
	str	r2, [r3, #4]
	b	.L9
.L26:
	mov	r2, #4
	stmib	r3, {r0, r1}
	str	r2, [r3]
	b	.L12
.L24:
	ldr	r3, .L28+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L14:
	mov	r9, r1
.L5:
	cmp	r9, #0
	beq	.L12
	mov	r0, r5
	bl	gfs2_consist_rgrpd
	ldr	r3, .L28+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L27:
	mov	r0, r5
	bl	gfs2_rindex_print
	ldmib	r8, {r2, r3}
	ldr	r1, [r7, r4, lsl #4]
	mov	r0, r6
	str	r1, [sp]
	ldr	r1, .L28+20
	bl	fs_err
	b	.L13
.L29:
	.align	2
.L28:
	.word	EINVAL
	.word	GFP_NOFS
	.word	GFS2_NBBY
	.word	EIO
	.word	ENOMEM
	.word	.LC0
	.size	compute_bitstructs, .-compute_bitstructs
	.comm	GFS2_NBBY,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
