	.file	"820153.c"
	.intel_syntax noprefix
	.text
	.globl	getMemoryBlock
	.type	getMemoryBlock, @function
getMemoryBlock:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	r12, rdi
	mov	rbx, rsi
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], r12
	test	rbx, rbx
	je	.L3
	mov	rax, r12
	imul	rax, rbx
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L3
	mov	rdx, rbx
	jmp	.L4
.L3:
	mov	edx, 0
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
.L2:
	mov	rax, QWORD PTR -24[rbp]
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getMemoryBlock, .-getMemoryBlock
	.globl	freeMemoryBlock
	.type	freeMemoryBlock, @function
freeMemoryBlock:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 8
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rax, QWORD PTR [rbx]
	mov	rdi, rax
	call	free@PLT
	mov	rdi, rbx
	call	free@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	freeMemoryBlock, .-freeMemoryBlock
	.globl	freeMemoryBlockEx
	.type	freeMemoryBlockEx, @function
freeMemoryBlockEx:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rdi, rax
	call	free@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	freeMemoryBlockEx, .-freeMemoryBlockEx
	.globl	resizeMemoryBlock
	.type	resizeMemoryBlock, @function
resizeMemoryBlock:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	r12, rdi
	mov	rbx, rsi
	mov	rax, QWORD PTR 24[rbx]
	imul	rax, r12
	mov	rdx, rax
	mov	rax, QWORD PTR [rbx]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 8[rbx], r12
	mov	rax, QWORD PTR 8[rbx]
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	resizeMemoryBlock, .-resizeMemoryBlock
	.globl	growMemoryBlock
	.type	growMemoryBlock, @function
growMemoryBlock:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, 64
	jbe	.L12
	mov	rax, QWORD PTR 8[rbx]
	shr	rax, 2
	jmp	.L13
.L12:
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, 8
	jbe	.L14
	mov	eax, 16
	jmp	.L13
.L14:
	mov	eax, 4
.L13:
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR 24[rbx]
	imul	rdx, rax
	mov	rax, QWORD PTR [rbx]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 8[rbx]
	jmp	.L17
.L16:
	mov	eax, 0
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	growMemoryBlock, .-growMemoryBlock
	.globl	growMemoryBlockEx
	.type	growMemoryBlockEx, @function
growMemoryBlockEx:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	r12, rdi
	mov	rbx, rsi
	jmp	.L19
.L21:
	mov	rdi, rbx
	call	growMemoryBlock
	test	eax, eax
	jne	.L19
	mov	eax, 0
	jmp	.L20
.L19:
	mov	rax, QWORD PTR 16[rbx]
	lea	rdx, [r12+rax]
	mov	rax, QWORD PTR 8[rbx]
	cmp	rdx, rax
	ja	.L21
	mov	eax, 1
.L20:
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	growMemoryBlockEx, .-growMemoryBlockEx
	.globl	incMemoryBlock
	.type	incMemoryBlock, @function
incMemoryBlock:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rdx, QWORD PTR 16[rax]
	lea	rcx, 1[rdx]
	mov	rdx, QWORD PTR 8[rax]
	cmp	rcx, rdx
	jbe	.L23
	mov	rdi, rax
	call	growMemoryBlock
	test	eax, eax
	je	.L24
.L23:
	mov	eax, 1
	jmp	.L26
.L24:
	mov	eax, 0
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	incMemoryBlock, .-incMemoryBlock
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"820153.c"
	.text
	.align	2
	.global	getMemoryBlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	getMemoryBlock, %function
getMemoryBlock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	mov	r5, r0
	mov	r4, r1
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r5, [r3, #12]
	cmp	r4, #0
	beq	.L3
	mul	r3, r5, r4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	mov	r2, r4
	b	.L4
.L3:
	mov	r2, #0
.L4:
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L2:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	getMemoryBlock, .-getMemoryBlock
	.align	2
	.global	freeMemoryBlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeMemoryBlock, %function
freeMemoryBlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	mov	r4, r0
	ldr	r3, [r4]
	mov	r0, r3
	bl	free
	mov	r0, r4
	bl	free
	nop
	pop	{r4, r5, fp, pc}
	.size	freeMemoryBlock, .-freeMemoryBlock
	.align	2
	.global	freeMemoryBlockEx
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeMemoryBlockEx, %function
freeMemoryBlockEx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r3, r0
	mov	r0, r3
	bl	free
	nop
	pop	{fp, pc}
	.size	freeMemoryBlockEx, .-freeMemoryBlockEx
	.align	2
	.global	resizeMemoryBlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	resizeMemoryBlock, %function
resizeMemoryBlock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	mov	r5, r0
	mov	r4, r1
	ldr	r2, [r4]
	ldr	r3, [r4, #12]
	mul	r3, r5, r3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-16]
	str	r3, [r4]
	str	r5, [r4, #4]
	ldr	r3, [r4, #4]
	b	.L10
.L9:
	mov	r3, #0
.L10:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	resizeMemoryBlock, .-resizeMemoryBlock
	.align	2
	.global	growMemoryBlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	growMemoryBlock, %function
growMemoryBlock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	mov	r4, r0
	ldr	r3, [r4, #4]
	cmp	r3, #64
	bls	.L12
	ldr	r3, [r4, #4]
	lsr	r3, r3, #2
	b	.L13
.L12:
	ldr	r3, [r4, #4]
	cmp	r3, #8
	bls	.L14
	mov	r3, #16
	b	.L13
.L14:
	mov	r3, #4
.L13:
	str	r3, [fp, #-20]
	ldr	r0, [r4]
	ldr	r2, [r4, #4]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r4, #12]
	mul	r3, r2, r3
	mov	r1, r3
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-16]
	str	r3, [r4]
	ldr	r2, [r4, #4]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [r4, #4]
	ldr	r3, [r4, #4]
	b	.L17
.L16:
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	growMemoryBlock, .-growMemoryBlock
	.align	2
	.global	growMemoryBlockEx
	.syntax unified
	.arm
	.fpu softvfp
	.type	growMemoryBlockEx, %function
growMemoryBlockEx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	mov	r5, r0
	mov	r4, r1
	b	.L19
.L21:
	mov	r0, r4
	bl	growMemoryBlock
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	b	.L20
.L19:
	ldr	r3, [r4, #8]
	add	r2, r5, r3
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bhi	.L21
	mov	r3, #1
.L20:
	mov	r0, r3
	pop	{r4, r5, fp, pc}
	.size	growMemoryBlockEx, .-growMemoryBlockEx
	.align	2
	.global	incMemoryBlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	incMemoryBlock, %function
incMemoryBlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r3, r0
	ldr	r2, [r3, #8]
	add	r1, r2, #1
	ldr	r2, [r3, #4]
	cmp	r1, r2
	bls	.L23
	mov	r0, r3
	bl	growMemoryBlock
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
.L23:
	mov	r3, #1
	b	.L26
.L24:
	mov	r3, #0
.L26:
	mov	r0, r3
	pop	{fp, pc}
	.size	incMemoryBlock, .-incMemoryBlock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
