	.file	"730855.c"
	.intel_syntax noprefix
	.text
	.local	errors
	.comm	errors,4,4
	.section	.rodata
.LC0:
	.string	"Error: %s\n"
	.text
	.type	merror, @function
merror:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, DWORD PTR errors[rip]
	add	eax, 1
	mov	DWORD PTR errors[rip], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	merror, .-merror
	.section	.rodata
.LC1:
	.string	"malloc (10) failed."
.LC2:
	.string	"malloc (20) failed."
.LC3:
	.string	"malloc_get_state () failed."
.LC4:
	.string	"realloc (i*4) failed."
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	merror
.L3:
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	merror
.L4:
	mov	edi, 10
	call	malloc@PLT
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
	jmp	.L5
.L9:
	mov	eax, 0
	call	malloc_get_state@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	lea	rdi, .LC3[rip]
	call	merror
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	malloc_set_state@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L8
	lea	rdi, .LC4[rip]
	call	merror
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -24[rbp], 1
.L5:
	cmp	QWORD PTR -24[rbp], 99
	jle	.L9
.L7:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 40
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L10
	lea	rdi, .LC1[rip]
	call	merror
.L10:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR errors[rip]
	test	eax, eax
	setne	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	"730855.c"
	.text
	.local	errors
	.comm	errors,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	merror, %function
merror:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L2
	str	r3, [r2]
	ldr	r1, [fp, #-8]
	ldr	r0, .L2+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	errors
	.word	.LC0
	.size	merror, .-merror
	.section	.rodata
	.align	2
.LC1:
	.ascii	"malloc (10) failed.\000"
	.align	2
.LC2:
	.ascii	"malloc (20) failed.\000"
	.align	2
.LC3:
	.ascii	"malloc_get_state () failed.\000"
	.align	2
.LC4:
	.ascii	"realloc (i*4) failed.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L14
	bl	merror
.L5:
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L14+4
	bl	merror
.L6:
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L11:
	bl	malloc_get_state
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L14+8
	bl	merror
	b	.L9
.L8:
	ldr	r0, [fp, #-8]
	bl	malloc_set_state
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	realloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L14+12
	bl	merror
.L10:
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	ble	.L11
.L9:
	mov	r1, #40
	ldr	r0, [fp, #-20]
	bl	realloc
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	free
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L14
	bl	merror
.L12:
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r3, .L14+16
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	errors
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
