	.file	"192856.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Error initializing ncurses.\n"
.LC1:
	.string	"Hello World!"
	.align 8
.LC2:
	.string	"Move to the target (X), 'q' to quit"
.LC3:
	.string	"O"
.LC4:
	.string	"X"
.LC5:
	.string	"You won!"
	.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, 48
	mov	DWORD PTR -28[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	initscr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	call	noecho@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	edi, 0
	call	curs_set@PLT
	cmp	QWORD PTR -8[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 4[rax]
	cwde
	add	eax, 1
	jmp	.L4
.L3:
	mov	eax, -1
.L4:
	mov	DWORD PTR -24[rbp], eax
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 6[rax]
	cwde
	add	eax, 1
	jmp	.L6
.L5:
	mov	eax, -1
.L6:
	mov	DWORD PTR -20[rbp], eax
	sub	DWORD PTR -24[rbp], 1
	sub	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -32[rbp], eax
	call	rand@PLT
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	DWORD PTR -16[rbp], edx
	call	rand@PLT
	cdq
	idiv	DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	edx, -6[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L8
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L8:
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L10
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L10:
	mov	ecx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC3[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	lea	rdx, .LC4[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	jmp	.L11
.L29:
	cmp	DWORD PTR -28[rbp], 0
	je	.L12
	jmp	.L11
.L12:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L14
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 32
	mov	rdi, rax
	call	waddch@PLT
.L14:
	cmp	DWORD PTR -40[rbp], 261
	je	.L15
	cmp	DWORD PTR -40[rbp], 261
	jg	.L16
	cmp	DWORD PTR -40[rbp], 260
	je	.L17
	cmp	DWORD PTR -40[rbp], 260
	jg	.L16
	cmp	DWORD PTR -40[rbp], 258
	je	.L18
	cmp	DWORD PTR -40[rbp], 259
	je	.L19
	jmp	.L16
.L18:
	mov	DWORD PTR -40[rbp], 118
	add	DWORD PTR -36[rbp], 1
	jmp	.L16
.L17:
	mov	DWORD PTR -40[rbp], 60
	sub	DWORD PTR -32[rbp], 1
	jmp	.L16
.L15:
	mov	DWORD PTR -40[rbp], 62
	add	DWORD PTR -32[rbp], 1
	jmp	.L16
.L19:
	mov	DWORD PTR -40[rbp], 94
	sub	DWORD PTR -36[rbp], 1
	nop
.L16:
	cmp	DWORD PTR -36[rbp], 0
	jg	.L20
	mov	DWORD PTR -36[rbp], 1
.L20:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jg	.L21
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	DWORD PTR -36[rbp], eax
.L21:
	cmp	DWORD PTR -32[rbp], 0
	jns	.L22
	mov	DWORD PTR -32[rbp], 0
.L22:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L23
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -32[rbp], eax
.L23:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L25
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L25:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L26
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L26
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L28
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 32
	mov	rdi, rax
	call	waddch@PLT
.L28:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 4
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, edx
	shr	ecx, 31
	add	edx, ecx
	sar	edx
	mov	ecx, edx
	lea	rdx, .LC5[rip]
	mov	esi, eax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
	mov	DWORD PTR -28[rbp], 1
.L26:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
.L11:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 113
	jne	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	delwin@PLT
	call	endwin@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"192856.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error initializing ncurses.\012\000"
	.global	__aeabi_idivmod
	.align	2
.LC1:
	.ascii	"Hello World!\000"
	.align	2
.LC2:
	.ascii	"Move to the target (X), 'q' to quit\000"
	.align	2
.LC3:
	.ascii	"O\000"
	.align	2
.LC4:
	.ascii	"X\000"
	.align	2
.LC5:
	.ascii	"You won!\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	initscr
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L32
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L32+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	bl	noecho
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	keypad
	mov	r0, #0
	bl	curs_set
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #4]
	add	r3, r3, #1
	b	.L4
.L3:
	mvn	r3, #0
.L4:
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #6]
	add	r3, r3, #1
	b	.L6
.L5:
	mvn	r3, #0
.L6:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-32]
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, .L32+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #6
	mov	r2, r3
	mov	r1, #0
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L8
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L32+12
	mov	r0, r3
	bl	waddnstr
.L8:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L10
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L32+16
	mov	r0, r3
	bl	waddnstr
.L10:
	ldr	r2, .L32+20
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	mvprintw
	ldr	r2, .L32+24
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	mvprintw
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	wmove
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	b	.L11
.L30:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L12
	b	.L11
.L12:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L14
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r1, #32
	mov	r0, r3
	bl	waddch
.L14:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #256
	sub	r3, r3, #2
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L15
.L17:
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L16
.L20:
	mov	r3, #118
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L15
.L18:
	mov	r3, #60
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L15
.L16:
	mov	r3, #62
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L15
.L19:
	mov	r3, #94
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	nop
.L15:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bgt	.L21
	mov	r3, #1
	str	r3, [fp, #-36]
.L21:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bgt	.L22
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
.L22:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L23
	mov	r3, #0
	str	r3, [fp, #-32]
.L23:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L24
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
.L24:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L26
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L26:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L27
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L27
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L29
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r1, #32
	mov	r0, r3
	bl	waddch
.L29:
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #4
	ldr	r2, .L32+28
	mov	r1, r3
	bl	mvprintw
	mov	r3, #1
	str	r3, [fp, #-28]
.L27:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	wmove
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
.L11:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #113
	bne	.L30
	ldr	r0, [fp, #-24]
	bl	delwin
	bl	endwin
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	stderr
	.word	.LC0
	.word	stdscr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
