	.file	"727131.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -164[rbp], 0
	mov	DWORD PTR -160[rbp], 0
	mov	DWORD PTR -156[rbp], 0
	call	initscr@PLT
	call	noecho@PLT
	mov	edi, 0
	call	curs_set@PLT
	call	start_color@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 1
	call	init_pair@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 256
	mov	rdi, rax
	call	wbkgdset@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 6[rax]
	cwde
	add	eax, 1
	jmp	.L3
.L2:
	mov	eax, -1
.L3:
	mov	DWORD PTR -152[rbp], eax
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 4[rax]
	cwde
	add	eax, 1
	jmp	.L5
.L4:
	mov	eax, -1
.L5:
	mov	DWORD PTR -148[rbp], eax
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -164[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	add	rax, -128
	mov	QWORD PTR [rax], 0
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 120
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -164[rbp], 1
.L6:
	cmp	DWORD PTR -164[rbp], 6
	jle	.L7
	mov	DWORD PTR -160[rbp], 0
	jmp	.L8
.L11:
	mov	DWORD PTR -164[rbp], 0
	jmp	.L9
.L10:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -144[rbp], rax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, ecx
	add	eax, 97
	mov	edx, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -160[rbp]
	lea	edx, 1[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, DWORD PTR -164[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 120
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 16[rax]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 120
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -164[rbp], 1
.L9:
	cmp	DWORD PTR -164[rbp], 3
	jle	.L10
	add	DWORD PTR -160[rbp], 1
.L8:
	cmp	DWORD PTR -160[rbp], 6
	jle	.L11
.L20:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L12
.L19:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	add	rax, -128
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -136[rbp], rax
	jmp	.L13
.L18:
	mov	rax, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, DWORD PTR -148[rbp]
	sub	edx, 2
	cmp	eax, edx
	jl	.L14
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	add	rax, -128
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -160[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, rbp
	add	rdx, -128
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	add	rax, -128
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L15
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 120
	mov	QWORD PTR [rax], rdx
.L15:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -164[rbp], 0
	jmp	.L16
.L17:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -144[rbp], rax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, ecx
	add	eax, 97
	mov	edx, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -160[rbp]
	lea	edx, 1[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, DWORD PTR -164[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 120
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 16[rax]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 120
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -164[rbp], 1
.L16:
	cmp	DWORD PTR -164[rbp], 3
	jle	.L17
.L14:
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -136[rbp], rax
.L13:
	cmp	QWORD PTR -136[rbp], 0
	jne	.L18
	add	DWORD PTR -160[rbp], 1
.L12:
	cmp	DWORD PTR -160[rbp], 6
	jle	.L19
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 120000
	mov	eax, 0
	call	usleep@PLT
	jmp	.L20
	.cfi_endproc
.LFE6:
	.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	"727131.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-76]
	bl	initscr
	bl	noecho
	mov	r0, #0
	bl	curs_set
	bl	start_color
	mov	r2, #0
	mov	r1, #2
	mov	r0, #1
	bl	init_pair
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r1, #256
	mov	r0, r3
	bl	wbkgdset
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldrsh	r3, [r3, #6]
	add	r3, r3, #1
	b	.L3
.L2:
	mvn	r3, #0
.L3:
	str	r3, [fp, #-72]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldrsh	r3, [r3, #4]
	add	r3, r3, #1
	b	.L5
.L4:
	mvn	r3, #0
.L5:
	str	r3, [fp, #-68]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L6
.L7:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-60]
	sub	r2, fp, #64
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-56]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L6:
	ldr	r3, [fp, #-92]
	cmp	r3, #6
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L8
.L11:
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L9
.L10:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	bl	rand
	mov	r1, r0
	ldr	r3, .L22+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #97
	and	r2, r3, #255
	ldr	r3, [fp, #-84]
	strb	r2, [r3]
	ldr	r3, [fp, #-88]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-84]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-84]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-56]
	ldr	r2, [fp, #-84]
	str	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r2, r3, #12
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-56]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L9:
	ldr	r3, [fp, #-92]
	cmp	r3, #3
	ble	.L10
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L8:
	ldr	r3, [fp, #-88]
	cmp	r3, #6
	ble	.L11
.L20:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L12
.L19:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	str	r3, [fp, #-80]
	b	.L13
.L18:
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-68]
	sub	r3, r3, #2
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-60]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	bne	.L15
	sub	r2, fp, #64
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-56]
.L15:
	ldr	r0, [fp, #-84]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L16
.L17:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	bl	rand
	mov	r1, r0
	ldr	r3, .L22+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #97
	and	r2, r3, #255
	ldr	r3, [fp, #-84]
	strb	r2, [r3]
	ldr	r3, [fp, #-88]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-84]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-84]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-56]
	ldr	r2, [fp, #-84]
	str	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r2, r3, #12
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-56]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L16:
	ldr	r3, [fp, #-92]
	cmp	r3, #3
	ble	.L17
.L14:
	ldr	r3, .L22+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-80]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	wmove
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	mov	r0, r2
	bl	waddch
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-80]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-80]
.L13:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L12:
	ldr	r3, [fp, #-88]
	cmp	r3, #6
	ble	.L19
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r0, .L22+12
	bl	usleep
	b	.L20
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	stdscr
	.word	1717986919
	.word	120000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
