	.file	"365512.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Start to occupy 1GB memory."
.LC1:
	.string	"Memory allocation failed."
.LC2:
	.string	"Releasing after 1s."
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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, 40
	.cfi_offset 3, -24
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 32768
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	mov	QWORD PTR -40[rbp], 0
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 131072
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 13
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	QWORD PTR -32[rbp], 1
.L5:
	cmp	QWORD PTR -32[rbp], 31
	jbe	.L6
	add	QWORD PTR -40[rbp], 1
.L4:
	cmp	QWORD PTR -40[rbp], 8191
	jbe	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	QWORD PTR -40[rbp], 0
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
.L9:
	add	QWORD PTR -40[rbp], 1
.L8:
	cmp	QWORD PTR -40[rbp], 8191
	jbe	.L10
.L3:
	cmp	QWORD PTR -24[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
.L11:
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"365512.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Start to occupy 1GB memory.\000"
	.align	2
.LC1:
	.ascii	"Memory allocation failed.\000"
	.align	2
.LC2:
	.ascii	"Releasing after 1s.\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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r0, .L13
	bl	puts
	mov	r0, #32768
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L13+4
	bl	puts
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L7:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	mov	r0, #131072
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L6:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bls	.L6
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #8192
	bcc	.L7
	ldr	r0, .L13+8
	bl	puts
	mov	r0, #1
	bl	sleep
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L8
.L10:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L9:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r3, [fp, #-24]
	cmp	r3, #8192
	bcc	.L10
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #-16]
	bl	free
.L11:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
