	.file	"190768509.c"
	.intel_syntax noprefix
	.text
	.globl	p
	.data
	.align 32
	.type	p, @object
	.size	p, 40
p:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	3
	.long	2
	.long	2
	.long	1
	.long	0
	.long	-1
	.globl	cpos
	.bss
	.align 4
	.type	cpos, @object
	.size	cpos, 4
cpos:
	.zero	4
	.globl	hpos
	.align 4
	.type	hpos, @object
	.size	hpos, 4
hpos:
	.zero	4
	.globl	turn
	.align 4
	.type	turn, @object
	.size	turn, 4
turn:
	.zero	4
	.globl	corral
	.align 16
	.type	corral, @object
	.size	corral, 30
corral:
	.zero	30
	.globl	msg
	.align 8
	.type	msg, @object
	.size	msg, 10
msg:
	.zero	10
	.section	.rodata
.LC0:
	.string	"%d\t%s %s "
	.text
	.globl	draw_corral
	.type	draw_corral, @function
draw_corral:
.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, 16
	mov	DWORD PTR -4[rbp], 1
	jmp	.L2
.L7:
	mov	eax, DWORD PTR cpos[rip]
	cmp	DWORD PTR -4[rbp], eax
	je	.L3
	mov	eax, DWORD PTR hpos[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L4
	mov	eax, 72
	jmp	.L6
.L4:
	mov	eax, 32
	jmp	.L6
.L3:
	mov	eax, 67
.L6:
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, corral[rip]
	mov	BYTE PTR [rdx+rcx], al
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 21
	jle	.L7
	mov	eax, DWORD PTR turn[rip]
	lea	rcx, msg[rip]
	lea	rdx, corral[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movabs	rax, 9042521604759584
	mov	QWORD PTR msg[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	draw_corral, .-draw_corral
	.globl	check_hpos
	.type	check_hpos, @function
check_hpos:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR hpos[rip]
	test	eax, eax
	jg	.L9
	mov	DWORD PTR hpos[rip], 1
.L9:
	mov	eax, DWORD PTR hpos[rip]
	cmp	eax, 21
	jle	.L11
	mov	DWORD PTR hpos[rip], 21
.L11:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_hpos, .-check_hpos
	.globl	kick
	.type	kick, @function
kick:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	neg	eax
	mov	edx, DWORD PTR hpos[rip]
	add	eax, edx
	mov	DWORD PTR hpos[rip], eax
	call	check_hpos
	movabs	rax, 9399060987603275
	mov	QWORD PTR msg[rip], 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
	movsx	rax, ecx
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 2
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	kick, .-kick
	.globl	bolt
	.type	bolt, @function
bolt:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	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
	movsx	rax, ecx
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, eax
	add	eax, 9
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR hpos[rip]
	sub	eax, edx
	mov	DWORD PTR hpos[rip], eax
	call	check_hpos
	mov	eax, DWORD PTR hpos[rip]
	mov	edx, DWORD PTR cpos[rip]
	sub	eax, edx
	cmp	eax, -1
	jl	.L15
	mov	eax, DWORD PTR hpos[rip]
	mov	edx, DWORD PTR cpos[rip]
	sub	eax, edx
	cmp	eax, 1
	jg	.L15
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	add	eax, eax
	add	edx, eax
	mov	eax, DWORD PTR hpos[rip]
	add	eax, edx
	mov	DWORD PTR hpos[rip], eax
.L15:
	movabs	rax, 9399061139189570
	mov	QWORD PTR msg[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	bolt, .-bolt
	.globl	setup
	.type	setup, @function
setup:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	movabs	rax, 2314885530818453577
	movabs	rdx, 2314885530818453536
	mov	QWORD PTR corral[rip], rax
	mov	QWORD PTR corral[rip+8], rdx
	movabs	rax, 20582995649896480
	mov	QWORD PTR corral[rip+16], rax
	mov	DWORD PTR cpos[rip], 1
	mov	DWORD PTR turn[rip], 0
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
	cmp	DWORD PTR -4[rbp], 5
	jg	.L17
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 13
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 3
.L18:
	mov	DWORD PTR hpos[rip], eax
	movabs	rax, 9042521604759584
	mov	QWORD PTR msg[rip], rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 2
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	setup, .-setup
	.section	.rodata
.LC1:
	.string	""
.LC2:
	.string	"? "
.LC3:
	.string	"%d"
.LC4:
	.string	"Illegal move. Try again ? "
.LC5:
	.string	"\nYippee! Way to go Cowboy."
	.align 8
.LC6:
	.string	"\nThose kicks landed you in the hospital! Get well soon!"
	.align 8
.LC7:
	.string	"\nEnough! You'd do better as a camp cook!"
	.text
	.globl	catch
	.type	catch, @function
catch:
.LFB11:
	.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
	call	setup
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -24[rbp], eax
.L31:
	mov	eax, DWORD PTR turn[rip]
	add	eax, 1
	mov	DWORD PTR turn[rip], eax
	call	draw_corral
	mov	eax, DWORD PTR hpos[rip]
	mov	edx, DWORD PTR cpos[rip]
	sub	eax, edx
	cdq
	xor	eax, edx
	mov	DWORD PTR -16[rbp], eax
	sub	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR hpos[rip]
	mov	edx, DWORD PTR cpos[rip]
	sub	eax, edx
	test	eax, eax
	jle	.L21
	mov	eax, 1
	jmp	.L22
.L21:
	mov	eax, -1
.L22:
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L23
	lea	rdi, .LC1[rip]
	call	puts@PLT
	sub	DWORD PTR -28[rbp], 1
	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
	movsx	rax, ecx
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 1
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR hpos[rip]
	add	eax, edx
	mov	DWORD PTR hpos[rip], eax
	call	check_hpos
	jmp	.L24
.L23:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L25
.L26:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L25:
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jle	.L26
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 5
	jg	.L26
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR cpos[rip]
	add	eax, edx
	cmp	eax, 21
	jg	.L26
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR cpos[rip]
	add	eax, edx
	test	eax, eax
	jle	.L26
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR cpos[rip]
	add	eax, edx
	mov	DWORD PTR cpos[rip], eax
	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
	movsx	rax, ecx
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR hpos[rip]
	add	eax, edx
	mov	DWORD PTR hpos[rip], eax
	call	check_hpos
	mov	eax, DWORD PTR -32[rbp]
	add	eax, eax
	cmp	DWORD PTR -16[rbp], eax
	jge	.L27
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 1
	jle	.L27
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	bolt
	jmp	.L24
.L27:
	mov	eax, DWORD PTR hpos[rip]
	cmp	eax, 1
	jle	.L28
	mov	eax, DWORD PTR hpos[rip]
	cmp	eax, 20
	jle	.L29
	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
	cmp	ecx, 1
	jg	.L29
	cmp	DWORD PTR -16[rbp], 7
	jg	.L29
.L28:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	bolt
	jmp	.L24
.L29:
	mov	eax, DWORD PTR hpos[rip]
	mov	edx, DWORD PTR cpos[rip]
	sub	eax, edx
	cmp	eax, -2
	jl	.L24
	mov	eax, DWORD PTR hpos[rip]
	mov	edx, DWORD PTR cpos[rip]
	sub	eax, edx
	cmp	eax, 2
	jg	.L24
	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
	cmp	ecx, 2
	jg	.L24
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	kick
	mov	DWORD PTR -28[rbp], eax
	add	DWORD PTR -24[rbp], 1
.L24:
	mov	eax, DWORD PTR turn[rip]
	cmp	eax, 99
	jg	.L30
	mov	edx, DWORD PTR hpos[rip]
	mov	eax, DWORD PTR cpos[rip]
	cmp	edx, eax
	je	.L30
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L31
.L30:
	mov	eax, DWORD PTR turn[rip]
	add	eax, 1
	mov	DWORD PTR turn[rip], eax
	mov	edx, DWORD PTR hpos[rip]
	mov	eax, DWORD PTR cpos[rip]
	cmp	edx, eax
	jne	.L32
	movabs	rax, 9416665992618307
	mov	QWORD PTR msg[rip], rax
	call	draw_corral
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L36
.L32:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L34
	call	draw_corral
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L36
.L34:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L36:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	catch, .-catch
	.section	.rodata
.LC8:
	.string	"\nAnother roundup ? (y/n) "
.LC9:
	.string	"%s"
	.text
	.globl	play_more
	.type	play_more, @function
play_more:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -64[rbp]
	cmp	al, 121
	sete	al
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	play_more, .-play_more
	.section	.rodata
	.align 8
.LC10:
	.ascii	"Corral\n-----\nYou are the cowboy trying to catch your horse"
	.ascii	" in the corral!\nMove toward your horse from 1 to "
	.string	"5 steps at a time.  If you move more than\nhalf the distiance between you and the horse he will bolt. He may also\nbolt if he's pinned to the rail. Also, if you're close enough he may kick!\n\nAfter the '?' type a digit from 1 to 5 for the cowboy's next move.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
.L41:
	call	catch
	call	play_more
	test	eax, eax
	jne	.L41
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.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	"190768509.c"
	.text
	.global	p
	.data
	.align	2
	.type	p, %object
	.size	p, 40
p:
	.word	0
	.word	1
	.word	2
	.word	3
	.word	3
	.word	2
	.word	2
	.word	1
	.word	0
	.word	-1
	.comm	cpos,4,4
	.comm	hpos,4,4
	.comm	turn,4,4
	.comm	corral,30,4
	.comm	msg,10,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\011%s %s \000"
	.align	2
.LC1:
	.ascii	"       \000"
	.text
	.align	2
	.global	draw_corral
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_corral, %function
draw_corral:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L7:
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L4
	mov	r3, #72
	b	.L6
.L4:
	mov	r3, #32
	b	.L6
.L3:
	mov	r3, #67
.L6:
	ldr	r1, .L8+8
	ldr	r2, [fp, #-8]
	add	r2, r1, r2
	strb	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #21
	ble	.L7
	ldr	r3, .L8+12
	ldr	r1, [r3]
	ldr	r3, .L8+16
	ldr	r2, .L8+8
	ldr	r0, .L8+20
	bl	printf
	ldr	r2, .L8+16
	ldr	r3, .L8+24
	mov	r0, r2
	mov	r1, r3
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	cpos
	.word	hpos
	.word	corral
	.word	turn
	.word	msg
	.word	.LC0
	.word	.LC1
	.size	draw_corral, .-draw_corral
	.align	2
	.global	check_hpos
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_hpos, %function
check_hpos:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L11
	ldr	r3, .L14
	mov	r2, #1
	str	r2, [r3]
.L11:
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #21
	ble	.L13
	ldr	r3, .L14
	mov	r2, #21
	str	r2, [r3]
.L13:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	hpos
	.size	check_hpos, .-check_hpos
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Kicked!\000"
	.text
	.align	2
	.global	kick
	.syntax unified
	.arm
	.fpu softvfp
	.type	kick, %function
kick:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #30
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r3, r2
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L18
	str	r3, [r2]
	bl	check_hpos
	ldr	r2, .L18+4
	ldr	r3, .L18+8
	mov	r0, r2
	mov	r1, r3
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	bl	rand
	mov	r1, r0
	ldr	r3, .L18+12
	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
	ldr	r3, .L18+16
	ldr	r3, [r3, r2, lsl #2]
	add	r3, r3, #2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	hpos
	.word	msg
	.word	.LC2
	.word	1717986919
	.word	p
	.size	kick, .-kick
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Bolted!\000"
	.text
	.align	2
	.global	bolt
	.syntax unified
	.arm
	.fpu softvfp
	.type	bolt, %function
bolt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	rand
	mov	r1, r0
	ldr	r3, .L22
	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
	ldr	r3, .L22+4
	ldr	r3, [r3, r2, lsl #2]
	lsl	r3, r3, #1
	add	r3, r3, #9
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	ldr	r2, .L22+8
	ldr	r2, [r2]
	sub	r3, r2, r3
	ldr	r2, .L22+8
	str	r3, [r2]
	bl	check_hpos
	ldr	r3, .L22+8
	ldr	r2, [r3]
	ldr	r3, .L22+12
	ldr	r3, [r3]
	sub	r3, r2, r3
	cmn	r3, #1
	blt	.L21
	ldr	r3, .L22+8
	ldr	r2, [r3]
	ldr	r3, .L22+12
	ldr	r3, [r3]
	sub	r3, r2, r3
	cmp	r3, #1
	bgt	.L21
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, .L22+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L22+8
	str	r3, [r2]
.L21:
	ldr	r2, .L22+16
	ldr	r3, .L22+20
	mov	r0, r2
	mov	r1, r3
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	1717986919
	.word	p
	.word	hpos
	.word	cpos
	.word	msg
	.word	.LC3
	.size	bolt, .-bolt
	.section	.rodata
	.align	2
.LC4:
	.ascii	"I                     I\000"
	.text
	.align	2
	.global	setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r2, .L28
	ldr	r3, .L28+4
	mov	r0, r2
	mov	r1, r3
	mov	r3, #24
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L28+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L28+12
	mov	r2, #0
	str	r2, [r3]
	bl	rand
	mov	r2, r0
	ldr	r3, .L28+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bgt	.L25
	ldr	r3, [fp, #-8]
	add	r3, r3, #13
	b	.L26
.L25:
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
.L26:
	ldr	r2, .L28+20
	str	r3, [r2]
	ldr	r2, .L28+24
	ldr	r3, .L28+28
	mov	r0, r2
	mov	r1, r3
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L28+32
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	corral
	.word	.LC4
	.word	cpos
	.word	turn
	.word	1717986919
	.word	hpos
	.word	msg
	.word	.LC1
	.word	p
	.size	setup, .-setup
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"? \000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"Illegal move. Try again ? \000"
	.align	2
.LC9:
	.ascii	"Caught!\000"
	.align	2
.LC10:
	.ascii	"\012Yippee! Way to go Cowboy.\000"
	.align	2
.LC11:
	.ascii	"\012Those kicks landed you in the hospital! Get wel"
	.ascii	"l soon!\000"
	.align	2
.LC12:
	.ascii	"\012Enough! You'd do better as a camp cook!\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	catch
	.syntax unified
	.arm
	.fpu softvfp
	.type	catch, %function
catch:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	setup
	str	r0, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
.L41:
	ldr	r3, .L47+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L47+4
	str	r3, [r2]
	bl	draw_corral
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, .L47+12
	ldr	r3, [r3]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, .L47+12
	ldr	r3, [r3]
	sub	r3, r2, r3
	cmp	r3, #0
	ble	.L31
	mov	r3, #1
	b	.L32
.L31:
	mvn	r3, #0
.L32:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L33
	ldr	r0, .L47+16
	bl	puts
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	bl	rand
	mov	r1, r0
	ldr	r3, .L47+20
	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
	ldr	r3, .L47+24
	ldr	r3, [r3, r2, lsl #2]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, .L47+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L47+8
	str	r3, [r2]
	bl	check_hpos
	b	.L34
.L33:
	ldr	r0, .L47+28
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L47+32
	bl	__isoc99_scanf
	b	.L35
.L36:
	ldr	r0, .L47+36
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L47+32
	bl	__isoc99_scanf
.L35:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L36
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	bgt	.L36
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, .L47+12
	ldr	r3, [r3]
	add	r3, r2, r3
	cmp	r3, #21
	bgt	.L36
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, .L47+12
	ldr	r3, [r3]
	add	r3, r2, r3
	cmp	r3, #0
	ble	.L36
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, .L47+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L47+12
	str	r3, [r2]
	bl	rand
	mov	r1, r0
	ldr	r3, .L47+20
	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
	ldr	r3, .L47+24
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, .L47+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L47+8
	str	r3, [r2]
	bl	check_hpos
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L37
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L37
	ldr	r0, [fp, #-12]
	bl	bolt
	b	.L34
.L37:
	ldr	r3, .L47+8
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L38
	ldr	r3, .L47+8
	ldr	r3, [r3]
	cmp	r3, #20
	ble	.L39
	bl	rand
	mov	r1, r0
	ldr	r3, .L47+20
	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
	cmp	r2, #1
	bgt	.L39
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	bgt	.L39
.L38:
	ldr	r0, [fp, #-12]
	bl	bolt
	b	.L34
.L39:
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, .L47+12
	ldr	r3, [r3]
	sub	r3, r2, r3
	cmn	r3, #2
	blt	.L34
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, .L47+12
	ldr	r3, [r3]
	sub	r3, r2, r3
	cmp	r3, #2
	bgt	.L34
	bl	rand
	mov	r1, r0
	ldr	r3, .L47+20
	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
	cmp	r2, #2
	bgt	.L34
	ldr	r0, [fp, #-12]
	bl	kick
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L34:
	ldr	r3, .L47+4
	ldr	r3, [r3]
	cmp	r3, #99
	bgt	.L40
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, .L47+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L40
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L41
.L40:
	ldr	r3, .L47+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L47+4
	str	r3, [r2]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, .L47+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L42
	ldr	r2, .L47+40
	ldr	r3, .L47+44
	mov	r0, r2
	mov	r1, r3
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	bl	draw_corral
	ldr	r0, .L47+48
	bl	puts
	b	.L46
.L42:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L44
	bl	draw_corral
	ldr	r0, .L47+52
	bl	puts
	b	.L46
.L44:
	ldr	r0, .L47+56
	bl	puts
.L46:
	nop
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC13
	.word	turn
	.word	hpos
	.word	cpos
	.word	.LC5
	.word	1717986919
	.word	p
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	msg
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	catch, .-catch
	.section	.rodata
	.align	2
.LC14:
	.ascii	"\012Another roundup ? (y/n) \000"
	.align	2
.LC15:
	.ascii	"%s\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	play_more
	.syntax unified
	.arm
	.fpu softvfp
	.type	play_more, %function
play_more:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L52+4
	bl	printf
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L52+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	cmp	r3, #121
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC16
	.word	.LC14
	.word	.LC15
	.size	play_more, .-play_more
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Corral\012-----\012You are the cowboy trying to cat"
	.ascii	"ch your horse in the corral!\012Move toward your ho"
	.ascii	"rse from 1 to 5 steps at a time.  If you move more "
	.ascii	"than\012half the distiance between you and the hors"
	.ascii	"e he will bolt. He may also\012bolt if he's pinned "
	.ascii	"to the rail. Also, if you're close enough he may ki"
	.ascii	"ck!\012\012After the '?' type a digit from 1 to 5 f"
	.ascii	"or the cowboy's next move.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L56
	bl	puts
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L55:
	bl	catch
	bl	play_more
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	mov	r0, #0
	bl	exit
.L57:
	.align	2
.L56:
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
