	.file	"864459.c"
	.intel_syntax noprefix
	.text
	.globl	getch
	.type	getch, @function
getch:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -11
	mov	DWORD PTR -68[rbp], eax
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	call	getchar@PLT
	mov	DWORD PTR -148[rbp], eax
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	cmp	DWORD PTR -148[rbp], 27
	jne	.L2
	mov	eax, 0
	call	getch
	mov	eax, 0
	call	getch
	mov	DWORD PTR -148[rbp], eax
.L2:
	mov	eax, DWORD PTR -148[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getch, .-getch
	.globl	sleepm
	.type	sleepm, @function
sleepm:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	call	clock@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	nop
.L6:
	call	clock@PLT
	cmp	QWORD PTR -8[rbp], rax
	jg	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sleepm, .-sleepm
	.section	.rodata
.LC0:
	.string	"CL TEST"
.LC1:
	.string	"LAUNCHING"
.LC2:
	.string	"w"
.LC3:
	.string	"./urb/pt.sc"
.LC4:
	.string	"%d "
.LC5:
	.string	"./urb/app"
.LC6:
	.string	"\342\223\233\342\223\244\342\223\222\342\223\230\342\223\223\342\223\224"
.LC7:
	.string	"DONE"
.LC8:
	.string	"\n\n"
	.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
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
.L11:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	call	getch
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 120
	je	.L8
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	call	rand@PLT
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -16[rbp], 1
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -16[rbp], 1
.L9:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC5[rip]
	call	system@PLT
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	call	getch
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L8:
	cmp	DWORD PTR -16[rbp], 120
	jne	.L11
	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	"864459.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getch
	.syntax unified
	.arm
	.fpu softvfp
	.type	getch, %function
getch:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #128
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	sub	ip, fp, #68
	sub	lr, fp, #128
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-56]
	bic	r3, r3, #10
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	bl	getchar
	str	r0, [fp, #-132]
	sub	r3, fp, #128
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldr	r3, [fp, #-132]
	cmp	r3, #27
	bne	.L2
	bl	getch
	bl	getch
	str	r0, [fp, #-132]
.L2:
	ldr	r3, [fp, #-132]
	ldr	r2, .L5
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.size	getch, .-getch
	.align	2
	.global	sleepm
	.syntax unified
	.arm
	.fpu softvfp
	.type	sleepm, %function
sleepm:
	@ 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]
	bl	clock
	mov	r1, r0
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r3, [fp, #-8]
	nop
.L8:
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bgt	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sleepm, .-sleepm
	.section	.rodata
	.align	2
.LC1:
	.ascii	"CL TEST\000"
	.align	2
.LC2:
	.ascii	"LAUNCHING\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"./urb/pt.sc\000"
	.align	2
.LC5:
	.ascii	"%d \000"
	.align	2
.LC6:
	.ascii	"./urb/app\000"
	.align	2
.LC7:
	.ascii	"\342\223\233\342\223\244\342\223\222\342\223\230\342"
	.ascii	"\223\223\342\223\224\000"
	.align	2
.LC8:
	.ascii	"DONE\000"
	.align	2
.LC9:
	.ascii	"\012\012\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]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L13:
	ldr	r0, .L15
	bl	puts
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #120
	beq	.L10
	ldr	r0, .L15+4
	bl	puts
	ldr	r1, .L15+8
	ldr	r0, .L15+12
	bl	fopen
	str	r0, [fp, #-12]
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, .L15+16
	ldr	r0, [fp, #-12]
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L11
.L12:
	ldr	r3, [fp, #-16]
	mul	r2, r3, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L15+16
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L12
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, .L15+20
	bl	system
	ldr	r1, .L15+8
	ldr	r0, .L15+12
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L15+24
	bl	fwrite
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, .L15+28
	bl	puts
	bl	getch
	ldr	r0, .L15+32
	bl	puts
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #120
	bne	.L13
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
