	.file	"extr_jfs_imap.c_diAllocAG.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"diAllocAG: numfree > numinos"
	.text
	.p2align 4
	.type	diAllocAG, @function
diAllocAG:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	movsx	rcx, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR [rdi]
	lea	rcx, [rax+rcx*8]
	mov	eax, DWORD PTR [rcx]
	mov	ecx, DWORD PTR 4[rcx]
	cmp	eax, ecx
	jg	.L10
	mov	rbp, rdi
	mov	r12d, esi
	test	edx, edx
	je	.L4
	cmp	eax, 63
	jg	.L11
.L5:
	mov	esi, r12d
	mov	rdx, r13
	mov	rdi, rbp
	call	diAllocExt@PLT
	mov	esi, eax
	add	esi, DWORD PTR ENOSPC[rip]
	je	.L7
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	test	eax, eax
	je	.L5
.L7:
	mov	rdx, r13
	mov	esi, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	diAllocIno@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	call	jfs_error@PLT
	mov	eax, DWORD PTR EIO[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	eax, 255
	jg	.L7
	imul	eax, eax, 100
	cdq
	idiv	ecx
	cmp	eax, 20
	jle	.L5
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	diAllocAG, .-diAllocAG
	.comm	ENOSPC,4,4
	.comm	EIO,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_jfs_imap.c_diAllocAG.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"diAllocAG: numfree > numinos\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	diAllocAG, %function
diAllocAG:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r3
	add	r1, r0, r1, lsl #3
	ldr	r1, [r1, #4]
	ldr	r0, [r0, r4, lsl #3]
	cmp	r0, r1
	bgt	.L10
	cmp	r2, #0
	beq	.L4
	cmp	r0, #63
	ble	.L5
	cmp	r0, #255
	bgt	.L7
	add	r0, r0, r0, lsl #2
	add	r0, r0, r0, lsl #2
	lsl	r0, r0, #2
	bl	__aeabi_idiv
	cmp	r0, #20
	bgt	.L7
.L5:
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	diAllocExt
	ldr	r3, .L11
	ldr	r3, [r3]
	cmn	r0, r3
	popne	{r4, r5, r6, pc}
.L7:
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	diAllocIno
.L4:
	cmp	r0, #0
	bne	.L7
	b	.L5
.L10:
	ldr	r0, [r3]
	ldr	r1, .L11+4
	bl	jfs_error
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	ENOSPC
	.word	.LC0
	.word	EIO
	.size	diAllocAG, .-diAllocAG
	.comm	ENOSPC,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
