	.file	"672601.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Welcome here you get to make choices about your kingdom!"
.LC1:
	.string	"Do we have enough coconuts?"
	.align 8
.LC2:
	.string	"We have too many coconuts. Throw them to the townspeople?"
	.align 8
.LC3:
	.string	"\nEnter 'y' for yes or 'n' for no ('q' to quit):"
.LC4:
	.string	" %c"
.LC5:
	.string	"With any luck we wil prosper!"
.LC6:
	.string	"This isn'e looking good..."
.LC7:
	.string	"Very Wise."
.LC8:
	.string	"Bring in more coconuts!"
	.align 8
.LC9:
	.string	"The townspeople don't like this and are revolting!"
	.align 8
.LC10:
	.string	"Where did we even find all these coconuts, we aren't near a tropical climate..."
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], -1
	mov	DWORD PTR -12[rbp], 2
	mov	DWORD PTR -16[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
.L28:
	mov	BYTE PTR -21[rbp], 97
	cmp	DWORD PTR -20[rbp], 2
	je	.L31
	cmp	DWORD PTR -20[rbp], 2
	jg	.L9
	cmp	DWORD PTR -20[rbp], 1
	je	.L4
	cmp	DWORD PTR -20[rbp], 1
	jg	.L9
	cmp	DWORD PTR -20[rbp], -1
	je	.L5
	cmp	DWORD PTR -20[rbp], 0
	jmp	.L3
.L5:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L4:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L7
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L32
.L7:
	cmp	DWORD PTR -16[rbp], 1
	jne	.L32
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L32
.L31:
	nop
	jmp	.L9
.L32:
	nop
.L3:
	jmp	.L9
.L11:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -21[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L9:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 110
	je	.L10
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 121
	je	.L10
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 113
	jne	.L11
.L10:
	cmp	DWORD PTR -20[rbp], 2
	je	.L12
	cmp	DWORD PTR -20[rbp], 2
	jg	.L13
	cmp	DWORD PTR -20[rbp], 1
	je	.L14
	cmp	DWORD PTR -20[rbp], 1
	jg	.L13
	cmp	DWORD PTR -20[rbp], -1
	je	.L15
	cmp	DWORD PTR -20[rbp], 0
	je	.L16
	jmp	.L13
.L15:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 121
	jne	.L17
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L33
.L17:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 110
	jne	.L33
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L33
.L16:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 121
	jmp	.L13
.L14:
	cmp	DWORD PTR -16[rbp], 0
	je	.L20
	cmp	DWORD PTR -16[rbp], 1
	je	.L21
	jmp	.L13
.L20:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 121
	jne	.L23
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L34
.L23:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 110
	jne	.L34
	lea	rdi, .LC8[rip]
	call	puts@PLT
	add	DWORD PTR -16[rbp], 1
	jmp	.L34
.L21:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 121
	jne	.L25
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -16[rbp], 1
	jmp	.L35
.L25:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 110
	jne	.L35
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L34:
	nop
	jmp	.L13
.L35:
	nop
	jmp	.L13
.L12:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 121
	jmp	.L13
.L33:
	nop
.L13:
	call	rand@PLT
	mov	edx, DWORD PTR -12[rbp]
	lea	ecx, 1[rdx]
	cdq
	idiv	ecx
	mov	DWORD PTR -20[rbp], edx
	call	getchar@PLT
	call	getchar@PLT
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 113
	jne	.L28
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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	"672601.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Welcome here you get to make choices about your kin"
	.ascii	"gdom!\000"
	.align	2
.LC1:
	.ascii	"Do we have enough coconuts?\000"
	.align	2
.LC2:
	.ascii	"We have too many coconuts. Throw them to the townsp"
	.ascii	"eople?\000"
	.align	2
.LC3:
	.ascii	"\012Enter 'y' for yes or 'n' for no ('q' to quit):\000"
	.align	2
.LC4:
	.ascii	" %c\000"
	.align	2
.LC5:
	.ascii	"With any luck we wil prosper!\000"
	.align	2
.LC6:
	.ascii	"This isn'e looking good...\000"
	.align	2
.LC7:
	.ascii	"Very Wise.\000"
	.align	2
.LC8:
	.ascii	"Bring in more coconuts!\000"
	.align	2
.LC9:
	.ascii	"The townspeople don't like this and are revolting!\000"
	.align	2
.LC10:
	.ascii	"Where did we even find all these coconuts, we aren'"
	.ascii	"t near a tropical climate...\000"
	.global	__aeabi_idivmod
	.align	2
.LC11:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #2
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L30:
	mov	r3, #97
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L10
.L4:
	.word	.L7
	.word	.L10
	.word	.L5
	.word	.L10
.L7:
	ldr	r0, .L37+4
	bl	puts
	b	.L2
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L37+8
	bl	puts
	b	.L33
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L33
	ldr	r0, .L37+12
	bl	puts
.L33:
	nop
.L2:
	b	.L10
.L12:
	ldr	r0, .L37+16
	bl	puts
	sub	r3, fp, #21
	mov	r1, r3
	ldr	r0, .L37+20
	bl	__isoc99_scanf
.L10:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L11
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L11
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L12
.L11:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L15:
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L14
.L18:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L19
	ldr	r0, .L37+24
	bl	puts
	b	.L34
.L19:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L34
	ldr	r0, .L37+28
	bl	puts
	b	.L34
.L17:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #121
	b	.L13
.L16:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L23
	b	.L13
.L22:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L25
	ldr	r0, .L37+32
	bl	puts
	b	.L35
.L25:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L35
	ldr	r0, .L37+36
	bl	puts
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L35
.L23:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L27
	ldr	r0, .L37+40
	bl	printf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L36
.L27:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L36
	ldr	r0, .L37+44
	bl	printf
	b	.L36
.L35:
	nop
	b	.L13
.L36:
	nop
	b	.L13
.L14:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #121
	b	.L13
.L34:
	nop
.L13:
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-20]
	bl	getchar
	bl	getchar
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L30
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
