	.file	"70449103.c"
	.intel_syntax noprefix
	.text
	.globl	waitfor
	.type	waitfor, @function
waitfor:
.LFB6:
	.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
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L7:
	call	getchar@PLT
	mov	BYTE PTR -21[rbp], al
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L3
	mov	eax, 0
	jmp	.L4
.L3:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -21[rbp], al
	jne	.L5
	add	DWORD PTR -20[rbp], 1
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -21[rbp], al
	jne	.L6
	mov	DWORD PTR -20[rbp], 1
	jmp	.L2
.L6:
	mov	DWORD PTR -20[rbp], 0
.L2:
	mov	ebx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L7
	mov	eax, 1
.L4:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	waitfor, .-waitfor
	.section	.rodata
.LC0:
	.string	"skip begin end\n"
	.align 8
.LC1:
	.string	"error: no random access memory left, exiting.\n"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 3
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L10
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
.L11:
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L12:
	call	getchar@PLT
	mov	BYTE PTR -45[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -45[rbp], al
	jne	.L13
	mov	DWORD PTR -44[rbp], 0
	jmp	.L14
.L16:
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -45[rbp]
	mov	BYTE PTR [rdx], al
	call	getchar@PLT
	mov	BYTE PTR -45[rbp], al
	add	DWORD PTR -44[rbp], 1
.L14:
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -45[rbp], al
	jne	.L15
	mov	ebx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L16
.L15:
	mov	rdx, QWORD PTR stdin[rip]
	movsx	eax, BYTE PTR -45[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	mov	ebx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L17
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	waitfor
	test	eax, eax
	je	.L23
	jmp	.L19
.L17:
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L13:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L24
	movsx	eax, BYTE PTR -45[rbp]
	mov	edi, eax
	call	putchar@PLT
.L19:
	jmp	.L12
.L23:
	nop
	jmp	.L20
.L24:
	nop
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"70449103.c"
	.text
	.align	2
	.global	waitfor
	.syntax unified
	.arm
	.fpu softvfp
	.type	waitfor, %function
waitfor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L7:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	mov	r3, #0
	b	.L4
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L6
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L6:
	mov	r3, #0
	str	r3, [fp, #-8]
.L2:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcc	.L7
	mov	r3, #1
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	stdin
	.size	waitfor, .-waitfor
	.section	.rodata
	.align	2
.LC0:
	.ascii	"skip begin end\012\000"
	.align	2
.LC1:
	.ascii	"error: no random access memory left, exiting.\012\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	beq	.L11
	ldr	r3, .L27
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L27+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bls	.L12
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	b	.L13
.L12:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
.L13:
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L27
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L27+8
	bl	fwrite
	mov	r0, #2
	bl	exit
.L14:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L16
.L18:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r2, [fp, #-29]
	strb	r2, [r3]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L16:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L17
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	bls	.L18
.L17:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, .L27+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	bne	.L19
	ldr	r0, [fp, #-20]
	bl	waitfor
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	b	.L21
.L19:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r0, .L27+16
	bl	printf
	b	.L21
.L15:
	ldr	r3, .L27+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L21:
	b	.L14
.L25:
	nop
	b	.L22
.L26:
	nop
.L22:
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	stdin
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
