	.file	"36352.c"
	.intel_syntax noprefix
	.text
	.globl	weapon
	.data
	.align 16
	.type	weapon, @object
	.size	weapon, 20
weapon:
	.long	60
	.long	21
	.long	61
	.long	33
	.long	51
	.text
	.globl	GetRandom
	.type	GetRandom, @function
GetRandom:
.LFB0:
	.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	xrnd@PLT
	cwde
	imul	eax, DWORD PTR -20[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sar	rax, 16
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	GetRandom, .-GetRandom
	.globl	PercentChance
	.type	PercentChance, @function
PercentChance:
.LFB1:
	.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	DWORD PTR -8[rbp], esi
	movzx	eax, BYTE PTR NotLucky[rip]
	test	al, al
	je	.L4
	cmp	DWORD PTR -8[rbp], 0
	js	.L4
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
.L4:
	mov	edi, 100
	call	GetRandom
	cmp	DWORD PTR -4[rbp], eax
	jle	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	PercentChance, .-PercentChance
	.section	.rodata
	.align 8
.LC0:
	.string	"\205t\302\337\265\255g\254\325\215\300umi\365\257\325\265\251co\327r\241\316\241w\277p\312\244H\236ap\374\273\241\275\300a\327\243\264ax\236\275\346\361\271\267\307\336\311u."
	.align 8
.LC1:
	.string	"\205t\302\337\265d\262\273m\325\265c\362\254\241\247\237\254\302r\265p\317ad\204f\323\300\232\365f\236\247\200\346\367t\330\342\237\312gu\236\335\200\237\302\337s."
	.align 8
.LC2:
	.string	"\205\302b\357r\265s\341ew\315\246s\330p\361\326\253\257\225\232t\330\264\335\373\327\345s\265nimb\354\332et\361e\327\241\316\241\305i\317tto."
	.text
	.globl	VillainBusy
	.type	VillainBusy, @function
VillainBusy:
.LFB2:
	.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
	cmp	DWORD PTR -4[rbp], 0
	jne	.L8
	movzx	eax, WORD PTR Obj[rip+296]
	cmp	ax, 2054
	je	.L12
	movzx	edx, WORD PTR Obj[rip+296]
	movzx	eax, WORD PTR Obj[rip+16]
	cmp	dx, ax
	jne	.L10
	mov	esi, 90
	mov	edi, 75
	call	PercentChance
	test	eax, eax
	je	.L10
	mov	WORD PTR Obj[rip+296], 2054
	movzx	eax, WORD PTR Obj[rip+304]
	or	eax, 8
	mov	WORD PTR Obj[rip+304], ax
	movzx	eax, WORD PTR Obj[rip+304]
	or	eax, 16
	mov	WORD PTR Obj[rip+304], ax
	movzx	eax, WORD PTR Obj[rip+304]
	and	ah, -3
	mov	WORD PTR Obj[rip+304], ax
	mov	DWORD PTR TrollDescType[rip], 0
	movzx	edx, WORD PTR Obj[rip+86]
	movzx	eax, WORD PTR Obj[rip+16]
	cmp	dx, ax
	jne	.L11
	lea	rdi, .LC0[rip]
	call	PrintCompLine@PLT
.L11:
	mov	edi, 1
	call	ReturnOverlay1@PLT
	jmp	.L12
.L10:
	movzx	edx, WORD PTR Obj[rip+86]
	movzx	eax, WORD PTR Obj[rip+16]
	cmp	dx, ax
	jne	.L12
	mov	DWORD PTR TrollDescType[rip], 2
	lea	rdi, .LC1[rip]
	call	PrintCompLine@PLT
	mov	edi, 1
	call	ReturnOverlay1@PLT
	jmp	.L12
.L8:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L12
	movzx	eax, WORD PTR Obj[rip+842]
	cmp	ax, 2053
	je	.L12
	movzx	edx, WORD PTR Obj[rip+842]
	movzx	eax, WORD PTR Obj[rip+72]
	cmp	dx, ax
	jne	.L12
	mov	WORD PTR Obj[rip+842], 2053
	movzx	eax, WORD PTR Obj[rip+850]
	or	eax, 8
	mov	WORD PTR Obj[rip+850], ax
	movzx	eax, WORD PTR Obj[rip+850]
	or	eax, 16
	mov	WORD PTR Obj[rip+850], ax
	movzx	edx, WORD PTR Obj[rip+72]
	movzx	eax, WORD PTR Obj[rip+16]
	cmp	dx, ax
	jne	.L13
	lea	rdi, .LC2[rip]
	call	PrintCompLine@PLT
.L13:
	mov	edi, 1
	call	ReturnOverlay1@PLT
.L12:
	mov	edi, 0
	call	ReturnOverlay1@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	VillainBusy, .-VillainBusy
	.globl	CureRoutine
	.type	CureRoutine, @function
CureRoutine:
.LFB3:
	.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 EnableCureRoutine[rip]
	test	eax, eax
	jne	.L15
	mov	edi, 0
	call	ReturnOverlay0_@PLT
.L15:
	mov	eax, DWORD PTR EnableCureRoutine[rip]
	sub	eax, 1
	mov	DWORD PTR EnableCureRoutine[rip], eax
	mov	eax, DWORD PTR EnableCureRoutine[rip]
	test	eax, eax
	je	.L16
	mov	edi, 0
	call	ReturnOverlay0_@PLT
.L16:
	mov	eax, DWORD PTR PlayerStrength[rip]
	test	eax, eax
	jle	.L17
	mov	DWORD PTR PlayerStrength[rip], 0
	jmp	.L18
.L17:
	mov	eax, DWORD PTR PlayerStrength[rip]
	test	eax, eax
	jns	.L18
	mov	eax, DWORD PTR PlayerStrength[rip]
	add	eax, 1
	mov	DWORD PTR PlayerStrength[rip], eax
.L18:
	mov	eax, DWORD PTR PlayerStrength[rip]
	test	eax, eax
	jns	.L19
	mov	eax, DWORD PTR LoadAllowed[rip]
	cmp	eax, 99
	jg	.L20
	mov	eax, DWORD PTR LoadAllowed[rip]
	add	eax, 10
	mov	DWORD PTR LoadAllowed[rip], eax
.L20:
	mov	DWORD PTR EnableCureRoutine[rip], 30
	jmp	.L21
.L19:
	mov	DWORD PTR LoadAllowed[rip], 100
	mov	DWORD PTR EnableCureRoutine[rip], 0
.L21:
	mov	edi, 0
	call	ReturnOverlay0_@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	CureRoutine, .-CureRoutine
	.globl	FindWeapon
	.type	FindWeapon, @function
FindWeapon:
.LFB4:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L23
.L25:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, weapon[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	lea	rax, Obj[rip+2]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	mov	edx, DWORD PTR -20[rbp]
	add	edx, 2048
	cmp	eax, edx
	jne	.L24
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, weapon[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cwde
	mov	edi, eax
	call	ReturnOverlay1@PLT
.L24:
	add	DWORD PTR -4[rbp], 1
.L23:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L25
	mov	edi, 0
	call	ReturnOverlay1@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	FindWeapon, .-FindWeapon
	.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	"36352.c"
	.text
	.global	weapon
	.data
	.align	2
	.type	weapon, %object
	.size	weapon, 20
weapon:
	.word	60
	.word	21
	.word	61
	.word	33
	.word	51
	.text
	.align	2
	.global	GetRandom
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetRandom, %function
GetRandom:
	@ 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	xrnd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	GetRandom, .-GetRandom
	.align	2
	.global	PercentChance
	.syntax unified
	.arm
	.fpu softvfp
	.type	PercentChance, %function
PercentChance:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L7
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
.L4:
	mov	r0, #100
	bl	GetRandom
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	ble	.L5
	mov	r3, #1
	b	.L6
.L5:
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	NotLucky
	.size	PercentChance, .-PercentChance
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\205t\302\337\265\255g\254\325\215\300umi\365\257\325"
	.ascii	"\265\251co\327r\241\316\241w\277p\312\244H\236ap\374"
	.ascii	"\273\241\275\300a\327\243\264ax\236\275\346\361\271"
	.ascii	"\267\307\336\311u.\000"
	.align	2
.LC1:
	.ascii	"\205t\302\337\265d\262\273m\325\265c\362\254\241\247"
	.ascii	"\237\254\302r\265p\317ad\204f\323\300\232\365f\236\247"
	.ascii	"\200\346\367t\330\342\237\312gu\236\335\200\237\302"
	.ascii	"\337s.\000"
	.align	2
.LC2:
	.ascii	"\205\302b\357r\265s\341ew\315\246s\330p\361\326\253"
	.ascii	"\257\225\232t\330\264\335\373\327\345s\265nimb\354\332"
	.ascii	"et\361e\327\241\316\241\305i\317tto.\000"
	.text
	.align	2
	.global	VillainBusy
	.syntax unified
	.arm
	.fpu softvfp
	.type	VillainBusy, %function
VillainBusy:
	@ 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	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L16
	add	r3, r3, #296
	ldrh	r3, [r3]
	ldr	r2, .L16+4
	cmp	r3, r2
	beq	.L14
	ldr	r3, .L16
	add	r3, r3, #296
	ldrh	r2, [r3]
	ldr	r3, .L16
	ldrh	r3, [r3, #16]
	cmp	r2, r3
	bne	.L12
	mov	r1, #90
	mov	r0, #75
	bl	PercentChance
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L16
	add	r3, r3, #296
	ldr	r2, .L16+4
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16
	add	r3, r3, #304
	ldrh	r3, [r3]
	orr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, .L16
	add	r3, r3, #304
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16
	add	r3, r3, #304
	ldrh	r3, [r3]
	orr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, .L16
	add	r3, r3, #304
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16
	add	r3, r3, #304
	ldrh	r3, [r3]
	bic	r3, r3, #512
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, .L16
	add	r3, r3, #304
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16
	ldrh	r2, [r3, #86]
	ldr	r3, .L16
	ldrh	r3, [r3, #16]
	cmp	r2, r3
	bne	.L13
	ldr	r0, .L16+12
	bl	PrintCompLine
.L13:
	mov	r0, #1
	bl	ReturnOverlay1
	b	.L14
.L12:
	ldr	r3, .L16
	ldrh	r2, [r3, #86]
	ldr	r3, .L16
	ldrh	r3, [r3, #16]
	cmp	r2, r3
	bne	.L14
	ldr	r3, .L16+8
	mov	r2, #2
	str	r2, [r3]
	ldr	r0, .L16+16
	bl	PrintCompLine
	mov	r0, #1
	bl	ReturnOverlay1
	b	.L14
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L14
	ldr	r3, .L16
	add	r3, r3, #840
	add	r3, r3, #2
	ldrh	r3, [r3]
	ldr	r2, .L16+20
	cmp	r3, r2
	beq	.L14
	ldr	r3, .L16
	add	r3, r3, #840
	add	r3, r3, #2
	ldrh	r2, [r3]
	ldr	r3, .L16
	ldrh	r3, [r3, #72]
	cmp	r2, r3
	bne	.L14
	ldr	r3, .L16
	add	r3, r3, #840
	add	r3, r3, #2
	ldr	r2, .L16+20
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16
	add	r3, r3, #848
	add	r3, r3, #2
	ldrh	r3, [r3]
	orr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, .L16
	add	r3, r3, #848
	add	r3, r3, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16
	add	r3, r3, #848
	add	r3, r3, #2
	ldrh	r3, [r3]
	orr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, .L16
	add	r3, r3, #848
	add	r3, r3, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16
	ldrh	r2, [r3, #72]
	ldr	r3, .L16
	ldrh	r3, [r3, #16]
	cmp	r2, r3
	bne	.L15
	ldr	r0, .L16+24
	bl	PrintCompLine
.L15:
	mov	r0, #1
	bl	ReturnOverlay1
.L14:
	mov	r0, #0
	bl	ReturnOverlay1
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	Obj
	.word	2054
	.word	TrollDescType
	.word	.LC0
	.word	.LC1
	.word	2053
	.word	.LC2
	.size	VillainBusy, .-VillainBusy
	.align	2
	.global	CureRoutine
	.syntax unified
	.arm
	.fpu softvfp
	.type	CureRoutine, %function
CureRoutine:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	mov	r0, #0
	bl	ReturnOverlay0_
.L19:
	ldr	r3, .L26
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L26
	str	r3, [r2]
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	mov	r0, #0
	bl	ReturnOverlay0_
.L20:
	ldr	r3, .L26+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L21
	ldr	r3, .L26+4
	mov	r2, #0
	str	r2, [r3]
	b	.L22
.L21:
	ldr	r3, .L26+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L22
	ldr	r3, .L26+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L26+4
	str	r3, [r2]
.L22:
	ldr	r3, .L26+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L23
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r3, #99
	bgt	.L24
	ldr	r3, .L26+8
	ldr	r3, [r3]
	add	r3, r3, #10
	ldr	r2, .L26+8
	str	r3, [r2]
.L24:
	ldr	r3, .L26
	mov	r2, #30
	str	r2, [r3]
	b	.L25
.L23:
	ldr	r3, .L26+8
	mov	r2, #100
	str	r2, [r3]
	ldr	r3, .L26
	mov	r2, #0
	str	r2, [r3]
.L25:
	mov	r0, #0
	bl	ReturnOverlay0_
	nop
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	EnableCureRoutine
	.word	PlayerStrength
	.word	LoadAllowed
	.size	CureRoutine, .-CureRoutine
	.align	2
	.global	FindWeapon
	.syntax unified
	.arm
	.fpu softvfp
	.type	FindWeapon, %function
FindWeapon:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L29
.L31:
	ldr	r2, .L32
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L32+4
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	add	r3, r3, #2
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2048
	cmp	r2, r3
	bne	.L30
	ldr	r2, .L32
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	ReturnOverlay1
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L31
	mov	r0, #0
	bl	ReturnOverlay1
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	weapon
	.word	Obj
	.size	FindWeapon, .-FindWeapon
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
