	.file	"extr_inflate.c_malloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Malloc error"
.LC1:
	.string	"Out of memory"
	.text
	.p2align 4
	.type	malloc, @function
malloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	edi, edi
	js	.L13
.L2:
	mov	eax, DWORD PTR malloc_ptr[rip]
	mov	edx, DWORD PTR free_mem_end_ptr[rip]
	test	eax, eax
	cmove	eax, DWORD PTR free_mem_ptr[rip]
	add	eax, 3
	and	eax, -4
	movsx	r12, eax
	add	eax, ebx
	mov	DWORD PTR malloc_ptr[rip], eax
	cmp	eax, edx
	jl	.L4
	test	edx, edx
	jne	.L14
.L4:
	add	DWORD PTR malloc_count[rip], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	error@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, .LC1[rip]
	call	error@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	malloc, .-malloc
	.comm	malloc_ptr,4,4
	.comm	malloc_count,4,4
	.comm	free_mem_ptr,4,4
	.comm	free_mem_end_ptr,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_inflate.c_malloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Malloc error\000"
	.align	2
.LC1:
	.ascii	"Out of memory\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	malloc, %function
malloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r0, #0
	blt	.L10
.L2:
	ldr	r2, .L12
	ldr	r1, .L12+4
	ldr	r3, [r2]
	cmp	r3, #0
	ldreq	r3, .L12+8
	ldreq	r3, [r3]
	add	r3, r3, #3
	bic	r4, r3, #3
	ldr	r3, [r1]
	add	r0, r4, r5
	cmp	r0, r3
	movlt	r1, #0
	movge	r1, #1
	cmp	r3, #0
	moveq	r1, #0
	cmp	r1, #0
	str	r0, [r2]
	bne	.L11
.L4:
	ldr	r2, .L12+12
	mov	r0, r4
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, .L12+16
	bl	error
	b	.L2
.L11:
	ldr	r0, .L12+20
	bl	error
	b	.L4
.L13:
	.align	2
.L12:
	.word	malloc_ptr
	.word	free_mem_end_ptr
	.word	free_mem_ptr
	.word	malloc_count
	.word	.LC0
	.word	.LC1
	.size	malloc, .-malloc
	.comm	malloc_ptr,4,4
	.comm	malloc_count,4,4
	.comm	free_mem_ptr,4,4
	.comm	free_mem_end_ptr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
