	.file	"985217.c"
	.intel_syntax noprefix
	.text
	.globl	escape
	.type	escape, @function
escape:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	escape, .-escape
	.section	.rodata
.LC0:
	.string	"getrusage"
.LC1:
	.string	"/proc/%d/status"
.LC2:
	.string	"r"
.LC3:
	.string	"fopen"
.LC4:
	.string	"VmSize"
	.align 8
.LC5:
	.string	"%s: max RSS = %ld kB; vm size = %s\n"
	.text
	.globl	report_memory
	.type	report_memory, @function
report_memory:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 720
	mov	QWORD PTR -712[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -672[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	getrusage@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -528[rbp]
	mov	ecx, edx
	lea	rdx, .LC1[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -528[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -688[rbp], rax
	cmp	QWORD PTR -688[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rax, -272[rbp]
	mov	QWORD PTR -696[rbp], rax
	jmp	.L5
.L10:
	lea	rax, -272[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strstr@PLT
	lea	rdx, -272[rbp]
	cmp	rax, rdx
	jne	.L5
	lea	rax, -272[rbp]
	add	rax, 7
	mov	QWORD PTR -696[rbp], rax
	jmp	.L6
.L7:
	add	QWORD PTR -696[rbp], 1
.L6:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -696[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -696[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -680[rbp], rax
	cmp	QWORD PTR -680[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -680[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L12
.L5:
	mov	rdx, QWORD PTR -688[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L10
	jmp	.L9
.L12:
	nop
.L9:
	mov	rdx, QWORD PTR -640[rbp]
	mov	rcx, QWORD PTR -696[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	report_memory, .-report_memory
	.section	.rodata
.LC6:
	.string	"PID = %d\n"
.LC7:
	.string	"started"
.LC8:
	.string	"after malloc"
.LC9:
	.string	"after touch"
.LC10:
	.string	"press ENTER"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	call	report_memory
	mov	DWORD PTR -12[rbp], 104857600
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	escape
	lea	rdi, .LC8[rip]
	call	report_memory
	mov	DWORD PTR -16[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -16[rbp], 1
.L14:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L15
	lea	rdi, .LC9[rip]
	call	report_memory
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"985217.c"
	.text
	.align	2
	.global	escape
	.syntax unified
	.arm
	.fpu softvfp
	.type	escape, %function
escape:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	escape, .-escape
	.section	.rodata
	.align	2
.LC0:
	.ascii	"getrusage\000"
	.align	2
.LC1:
	.ascii	"/proc/%d/status\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"fopen\000"
	.align	2
.LC4:
	.ascii	"VmSize\000"
	.align	2
.LC5:
	.ascii	"%s: max RSS = %ld kB; vm size = %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	report_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	report_memory, %function
report_memory:
	@ args = 0, pretend = 0, frame = 608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #608
	str	r0, [fp, #-608]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #592
	mov	r1, r3
	mov	r0, #0
	bl	getrusage
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L13+4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	bl	getpid
	mov	r3, r0
	sub	r0, fp, #520
	ldr	r2, .L13+8
	mov	r1, #256
	bl	snprintf
	sub	r3, fp, #520
	ldr	r1, .L13+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-600]
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L13+16
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #264
	str	r3, [fp, #-604]
	b	.L5
.L10:
	sub	r3, fp, #264
	ldr	r1, .L13+20
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	sub	r3, fp, #264
	cmp	r2, r3
	bne	.L5
	sub	r3, fp, #264
	add	r3, r3, #7
	str	r3, [fp, #-604]
	b	.L6
.L7:
	ldr	r3, [fp, #-604]
	add	r3, r3, #1
	str	r3, [fp, #-604]
.L6:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-604]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L7
	mov	r1, #10
	ldr	r0, [fp, #-604]
	bl	strchr
	str	r0, [fp, #-596]
	ldr	r3, [fp, #-596]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-596]
	mov	r2, #0
	strb	r2, [r3]
	b	.L12
.L5:
	sub	r3, fp, #264
	ldr	r2, [fp, #-600]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	b	.L9
.L12:
	nop
.L9:
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-604]
	ldr	r1, [fp, #-608]
	ldr	r0, .L13+24
	bl	printf
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	report_memory, .-report_memory
	.section	.rodata
	.align	2
.LC7:
	.ascii	"PID = %d\012\000"
	.align	2
.LC8:
	.ascii	"started\000"
	.align	2
.LC9:
	.ascii	"after malloc\000"
	.align	2
.LC10:
	.ascii	"after touch\000"
	.align	2
.LC11:
	.ascii	"press ENTER\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L19
	bl	printf
	ldr	r0, .L19+4
	bl	report_memory
	mov	r3, #104857600
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	escape
	ldr	r0, .L19+8
	bl	report_memory
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L16
.L17:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L17
	ldr	r0, .L19+12
	bl	report_memory
	ldr	r0, .L19+16
	bl	puts
	ldr	r3, .L19+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
