// File: /workspace/github_c_makefile_star2_O3/garnett1966[P]Mystery-Mansion/src/mansion.c
// Function: MMRI
void MMRI(IV, IRS)
	int IV;
	int IRS;
{
	int J;

	IR=ITST[1];
	IC=0;
	for (J=1; J<=53; J++) {
		if ((IV == 1) && ((IVEN[J] > 10000) || 
		    ((IVEN[J]-100*(IVEN[J]/100)) != IR))) continue;
		if ((IV == 2) && (IVEN[J] < 20000)) continue;
		if ((IV == 4) && (IRS != J)) continue;
		if ((IV == 3) && ((IVEN[J] < 10000) || (IVEN[J] > 20000) ||
		    (IFSD(IVEN[J]) != IRS))) continue;
		if ((IV == 1) && (J == 4) && ((IVEN[4] == 493) ||
		    (IVEN[4] == 1493))) continue;
		if ((IV == 1) && (J == 5) && (IVEN[5] == 1316)) continue;
		if ((IV == 1) && (J == 17) && (IVEN[17] == 1141)) continue;
		if ((IV == 1) && (J == 19) && (IR == 16)) continue;
		if ((IV == 1) && (J == 29) && (IVEN[29] == 1214)) continue;
		if ((IV == 1) && (J == 30) && (IR == 25)) continue;
		if ((IV == 1) && (J == 37) && (IVEN[37] == 1153)) continue;
		if ((IV == 1) && (J == 39) && (IVEN[39] == 1253)) continue;
		if ((IV == 1) && (J == 40) && (IVEN[40] == 1151)) continue;
		if ((IV == 1) && (J == 42) && (IVEN[42] == 1151)) continue;
		if ((IV == 1) && (J == 46) && (IVEN[46] == 1101)) continue;
		if ((IV == 1) && (J == 28) && (IVEN[28] == 1184)) continue;
		if ((IV == 1) && (IC == 0)) printf("\n\nYOU CAN SEE:");
		if ((IV == 2) && (J == 53)) continue;
		if (J == 1) printf("\nTHE VAMPIRE RING ");
		if (J == 2) printf("\nA SET OF KEYS    ");
		if (J == 3) printf("\nA WIND UP CLOCK  ");
		if (J == 4) printf("\nA BATTERY LANTERN");
		if (J == 5) printf("\nA SILVER CROSS   ");
		if (J == 6) printf("\nA POCKET COMPASS ");
		if (J == 7) printf("\nA PIRATE TREASURE");
		if (J == 8) printf("\nA NEW BATTERY    ");
		if (J == 9) printf("\nA HAND GUN       ");
		if (J == 10) printf("\nA BUTCHER KNIFE  ");
		if (J == 11) printf("\nA TWO BLADED AXE ");
		if (J == 12) printf("\nA SWORD          ");
		if ((J == 13) && (ITST[10] != 13)) 
			printf("\nA VIAL OF POISON ");
		if ((J == 13) && (ITST[10] == 13)) 
			printf("\nAN EMPTY VIAL    ");
		if (J == 14) printf("\nA CLUB           ");
		if (J == 15) printf("\nA COIL OF ROPE   ");
		if (J == 16) printf("\nA DESK CHAIR     ");
		if (J == 17) printf("\nAN UNEVEN AMULET ");
		if (J == 18) printf("\nAN OLD TALISMAN  ");
		if ((J == 19) && (IFD(IVEN[19]) == 1)) 
			printf("\nA LIT CANDLE     ");
		if ((J == 19) && (IFD(IVEN[19]) != 1)) 
			printf("\nA CANDLE         ");
		if (J == 20) printf("\nA SILVER BULLET  ");
		if (J == 21) printf("\nA BOOK           ");
		if (J == 22) printf("\nA NOTE           ");
		if (J == 23) printf("\nA MATTER XMITTER ");
		if (J == 24) printf("\nSOME FOOD        ");
		if (J == 25) printf("\nA WITCH'S BROOM  ");
		if (J == 26) printf("\nA MATTER RECEIVER");
		if ((J == 27) && (IFD(IVEN[27]) == 1)) 
			printf("\nA BURNING TORCH  ");
		if ((J == 27) && (IFD(IVEN[27]) != 1)) 
			printf("\nA USELESS TORCH  ");
		if (J == 28) printf("\nA SMALL ROAD MAP ");
		if (J == 29) printf("\nA WOODEN WEDGE   ");
		if (J == 30) printf("\nA DUSTY GLOBE    ");
		if (J == 31) printf("\nA KITCHEN MATCH  ");
		if (J == 32) printf("\nA RUSTY SHOVEL   ");
		if (J == 33) printf("\nA SMALL OILCAN   ");
		if (J == 34) printf("\nA GREASY HATCHET ");
		if (J == 35) printf("\nA MYSTERY CHEST  ");
		if (J == 36) printf("\nA BAG OF PEARLS  ");
		if (J == 37) printf("\nA LARGE EMERALD  ");
		if (J == 38) printf("\nTWELVE GOLD COINS");
		if (J == 39) printf("\nA SILVER GOBLET  ");
		if (J == 40) printf("\nSEVERAL DIAMONDS ");
		if (J == 41) printf("\nSOME FINE JEWELRY");
		if (J == 42) printf("\nA RUBY NECKLACE  ");
		if (J == 43) printf("\nA JEWELED CROWN  ");
		if (J == 44) printf("\nSOME DARTS       ");
		if (J == 45) printf("\nA METAL SHIELD   ");
		if (J == 46) printf("\nA DUNGEON KEY    ");
		if (J == 47) printf("\nAN OLD BATTERY   ");
		if (J == 48) printf("\nA GAUDY GAUNTLET ");
		if (J == 49) printf("\nA PARANOID PARROT");
		if (J == 50) printf("\nA MENACING MACE  ");
		if (J == 51) printf("\nA BLANK          ");
		if (J == 52) printf("\nA BLANK          ");
		if (J == 53) printf("\nYOUR CLOTHES     ");
		IC=1;
	}
	if (((IV == 2) || (IV == 3)) && (IC == 0))
		printf("\nNOTHING");
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edi, %ebx
movl 0x21069(%rip), %eax     # 0x24374
movl %eax, 0x216af(%rip)     # 0x249c0
movl $0x0, 0x216a9(%rip)     # 0x249c4
movl %esi, %esi
movl $0x1, %r13d
leaq 0x13152(%rip), %r14     # 0x1647c
leaq 0x2086f(%rip), %r8      # 0x23ba0
leaq 0x13bda(%rip), %rdi     # 0x16f12
leaq 0x13c7e(%rip), %r9      # 0x16fbd
movsd 0x12cc1(%rip), %xmm1    # 0x16008
leaq 0x13dd8(%rip), %r10     # 0x17126
leaq 0x13133(%rip), %r11     # 0x16488
cmpl $0x1, %ebx
jne 0x33bc
movl (%r8,%r13,4), %eax
cmpl $0x2710, %eax           # imm = 0x2710
jg 0x36c9
movslq %eax, %rcx
imulq $0x51eb851f, %rcx, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
subl %ecx, %eax
cmpl 0x21635(%rip), %eax     # 0x249c0
jne 0x36c9
cmpq $0x4, %r13
jne 0x36a6
movl 0x2080f(%rip), %eax     # 0x23bb0
cmpl $0x1ed, %eax            # imm = 0x1ED
je 0x36c9
cmpl $0x5d5, %eax            # imm = 0x5D5
je 0x36c9
movb $0x1, %r15b
jmp 0x342f
cmpl $0x2, %ebx
jne 0x33dc
cmpl $0x4e20, (%r8,%r13,4)   # imm = 0x4E20
jl 0x36c9
cmpq $0x4, %r13
sete %r15b
movb $0x1, %r12b
jmp 0x3432
cmpl $0x4, %ebx
sete %al
cmpq %r13, %rsi
setne %cl
testb %cl, %al
jne 0x36c9
cmpl $0x3, %ebx
jne 0x3427
movl (%r8,%r13,4), %eax
leal -0x4e21(%rax), %ecx
cmpl $0xffffd8ef, %ecx       # imm = 0xFFFFD8EF
jb 0x36c9
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
imull $-0x64, %ecx, %ecx
addl %eax, %ecx
cmpl %esi, %ecx
jne 0x36c9
cmpq $0x4, %r13
sete %r15b
xorl %r12d, %r12d
cmpq $0x5, %r13
sete -0x29(%rbp)
cmpl $0x1, %ebx
jne 0x3455
cmpq $0x11, %r13
jne 0x3455
cmpl $0x475, 0x20795(%rip)   # imm = 0x475
je 0x36c9
cmpl $0x1, %ebx
sete %al
cmpq $0x13, %r13
sete %cl
andb %al, %cl
movl 0x21556(%rip), %eax     # 0x249c0
cmpl $0x10, %eax
sete %dl
testb %dl, %cl
jne 0x36c9
cmpl $0x1, %ebx
jne 0x3493
cmpq $0x1d, %r13
jne 0x3493
cmpl $0x4be, 0x20787(%rip)   # imm = 0x4BE
je 0x36c9
cmpl $0x1, %ebx
sete %cl
cmpq $0x1e, %r13
sete %dl
andb %cl, %dl
cmpl $0x19, %eax
sete %al
testb %al, %dl
jne 0x36c9
cmpl $0x1, %ebx
jne 0x34cb
cmpq $0x25, %r13
jne 0x34cb
cmpl $0x481, 0x2076f(%rip)   # imm = 0x481
je 0x36c9
cmpl $0x1, %ebx
jne 0x34e6
cmpq $0x27, %r13
jne 0x34e6
cmpl $0x4e5, 0x2075c(%rip)   # imm = 0x4E5
je 0x36c9
cmpl $0x1, %ebx
jne 0x3501
cmpq $0x28, %r13
jne 0x3501
cmpl $0x47f, 0x20745(%rip)   # imm = 0x47F
je 0x36c9
cmpl $0x1, %ebx
jne 0x351c
cmpq $0x2a, %r13
jne 0x351c
cmpl $0x47f, 0x20732(%rip)   # imm = 0x47F
je 0x36c9
cmpl $0x1, %ebx
jne 0x3537
cmpq $0x2e, %r13
jne 0x3537
cmpl $0x44d, 0x20727(%rip)   # imm = 0x44D
je 0x36c9
cmpl $0x1, %ebx
jne 0x3552
cmpq $0x1c, %r13
jne 0x3552
cmpl $0x4a0, 0x206c4(%rip)   # imm = 0x4A0
je 0x36c9
cmpl $0x1, %ebx
movq %rsi, -0x38(%rbp)
jne 0x358e
cmpl $0x0, 0x21462(%rip)     # 0x249c4
jne 0x358e
leaq 0x1394c(%rip), %rdi     # 0x16eb7
xorl %eax, %eax
callq 0x3070
leaq 0x12f0f(%rip), %r11     # 0x16488
leaq 0x13ba6(%rip), %r10     # 0x17126
leaq 0x13a36(%rip), %r9      # 0x16fbd
leaq 0x13984(%rip), %rdi     # 0x16f12
cmpq $0x35, %r13
sete %al
testb %r12b, %al
jne 0x3a4f
cmpq $0x3, %r13
ja 0x35d3
movslq (%r14), %rdi
leaq 0x12ece(%rip), %rax     # 0x1647c
addq %rax, %rdi
xorl %eax, %eax
movq %r10, %r12
callq 0x3070
leaq 0x12ec6(%rip), %r11     # 0x16488
movq %r12, %r10
leaq 0x139f1(%rip), %r9      # 0x16fbd
leaq 0x1393f(%rip), %rdi     # 0x16f12
testb %r15b, %r15b
je 0x3600
leaq 0x13920(%rip), %rdi     # 0x16eff
xorl %eax, %eax
movq %r9, %r12
movq %r10, %r15
callq 0x3070
leaq 0x12e95(%rip), %r11     # 0x16488
movq %r15, %r10
movq %r12, %r9
leaq 0x13912(%rip), %rdi     # 0x16f12
cmpb $0x0, -0x29(%rbp)
jne 0x361c
leaq -0x6(%r13), %rax
cmpl $0x6, %eax
ja 0x3800
movl %eax, %eax
movslq (%r11,%rax,4), %rdi
addq %r11, %rdi
movq %r10, %r15
xorl %eax, %eax
movq %r9, %r12
callq 0x3070
movq %r12, %r9
cmpq $0xd, %r13
sete %al
testb %al, %al
je 0x36e7
cmpl $0xd, 0x20d56(%rip)     # 0x24398
jne 0x36e7
movq %r9, %r12
movq %r9, %rdi
xorl %eax, %eax
callq 0x3070
leaq 0x139f9(%rip), %rsi     # 0x17055
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
leaq 0x13a93(%rip), %rdx     # 0x17100
leaq 0x13a9f(%rip), %r8      # 0x17113
movq %r15, %r10
leaq 0x12b2a(%rip), %r9      # 0x161a8
leaq 0x139e3(%rip), %r11     # 0x17068
leal -0x14(%r13), %eax
cmpl $0x7, %eax
ja 0x390c
movslq (%r9,%rax,4), %rax
addq %r9, %rax
movq %rsi, %rdi
jmpq *%rax
movq %r11, %rdi
jmp 0x392f
xorl %r12d, %r12d
cmpq $0x5, %r13
sete -0x29(%rbp)
jne 0x36df
cmpl $0x524, 0x204f7(%rip)   # imm = 0x524
movl $0x0, %r15d
jne 0x343a
incq %r13
addq $0x4, %r14
cmpq $0x36, %r13
jne 0x3355
jmp 0x3a4f
xorl %r15d, %r15d
jmp 0x343a
movq %r9, %r12
leaq -0xe(%r13), %rax
cmpl $0x3, %eax
leaq 0x1395d(%rip), %rsi     # 0x17055
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
leaq 0x139f7(%rip), %rdx     # 0x17100
leaq 0x13a03(%rip), %r8      # 0x17113
movq %r15, %r10
leaq 0x12a8e(%rip), %r9      # 0x161a8
leaq 0x13947(%rip), %r11     # 0x17068
jae 0x3738
movl %eax, %eax
leaq 0x12d78(%rip), %rcx     # 0x164a4
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
jmp 0x392f
leaq 0x138ca(%rip), %rdi     # 0x17009
cmpq $0x11, %r13
je 0x392f
leaq 0x138cc(%rip), %rdi     # 0x1701c
cmpq $0x12, %r13
je 0x392f
cmpq $0x13, %r13
jne 0x3685
movslq 0x20481(%rip), %rax     # 0x23bec
imulq $0x10624dd3, %rax, %rcx # imm = 0x10624DD3
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x26, %rcx
addl %edx, %ecx
imulq $0x68db8bad, %rax, %rax # imm = 0x68DB8BAD
movq %rax, %rdx
shrq $0x3f, %rdx
sarq $0x2c, %rax
addl %edx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %ecx
leaq 0x138a1(%rip), %rdi     # 0x17042
cmpl $0x1, %ecx
jne 0x392f
leaq 0x1387e(%rip), %rdi     # 0x1702f
xorl %eax, %eax
movq %r10, %r15
callq 0x3070
movq %r15, %r10
movslq 0x20427(%rip), %rax     # 0x23bec
imulq $0x10624dd3, %rax, %rcx # imm = 0x10624DD3
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x26, %rcx
addl %edx, %ecx
imulq $0x68db8bad, %rax, %rax # imm = 0x68DB8BAD
movq %rax, %rdx
shrq $0x3f, %rdx
sarq $0x2c, %rax
addl %edx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %ecx
leaq 0x13847(%rip), %rdi     # 0x17042
jmp 0x38f3
movq %r10, %r15
cmpq $0xd, %r13
sete %al
jne 0x3633
cmpl $0xd, 0x20b81(%rip)     # 0x24398
je 0x3633
leaq 0x13786(%rip), %rdi     # 0x16faa
xorl %eax, %eax
movq %r9, %r12
callq 0x3070
movq %r12, %r9
movb $0x1, %al
jmp 0x3633
leaq 0x13862(%rip), %rdi     # 0x170a1
jmp 0x392f
leaq 0x13830(%rip), %rdi     # 0x1707b
jmp 0x392f
leaq 0x13837(%rip), %rdi     # 0x1708e
jmp 0x392f
movslq 0x203a9(%rip), %rax     # 0x23c0c
imulq $0x10624dd3, %rax, %rcx # imm = 0x10624DD3
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x26, %rcx
addl %edx, %ecx
imulq $0x68db8bad, %rax, %rax # imm = 0x68DB8BAD
movq %rax, %rdx
shrq $0x3f, %rdx
sarq $0x2c, %rax
addl %edx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %ecx
leaq 0x13854(%rip), %rdi     # 0x170ed
cmpl $0x1, %ecx
jne 0x392f
leaq 0x13831(%rip), %rdi     # 0x170da
xorl %eax, %eax
movq %r10, %r15
callq 0x3070
movq %r15, %r10
movslq 0x2034f(%rip), %rax     # 0x23c0c
imulq $0x10624dd3, %rax, %rcx # imm = 0x10624DD3
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x26, %rcx
addl %edx, %ecx
imulq $0x68db8bad, %rax, %rax # imm = 0x68DB8BAD
movq %rax, %rdx
shrq $0x3f, %rdx
sarq $0x2c, %rax
addl %edx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %ecx
leaq 0x137fa(%rip), %rdi     # 0x170ed
cmpl $0x1, %ecx
jne 0x392f
jmp 0x393c
leaq 0x137b3(%rip), %rdi     # 0x170b4
jmp 0x392f
leaq 0x137bd(%rip), %rdi     # 0x170c7
jmp 0x392f
movq %r13, %rax
andq %rcx, %rax
cmpq $0x1c, %r13
movq %r8, %rdi
cmoveq %rdx, %rdi
cmpq $0x1c, %rax
cmovneq %r10, %rdi
leaq -0x1c(%r13), %rcx
cmpq $0x3, %rcx
jae 0x396f
xorl %eax, %eax
movq %r10, %r15
callq 0x3070
movq %r15, %r10
movl $0x1, 0x2107e(%rip)     # 0x249c4
movq -0x38(%rbp), %rsi
leaq 0x2024f(%rip), %r8      # 0x23ba0
leaq 0x135ba(%rip), %rdi     # 0x16f12
movq %r12, %r9
movsd 0x126a5(%rip), %xmm1    # 0x16008
leaq 0x12b1e(%rip), %r11     # 0x16488
jmp 0x36c9
leaq -0x1f(%r13), %rcx
cmpl $0x6, %ecx
jae 0x3986
movl %ecx, %eax
leaq 0x12b2f(%rip), %rcx     # 0x164b0
jmp 0x372c
leaq 0x1381e(%rip), %rdi     # 0x171ab
cmpq $0x25, %r13
je 0x392f
cmpq $0x26, %r13
leaq 0x13833(%rip), %rdi     # 0x171d1
leaq 0x13819(%rip), %rcx     # 0x171be
cmoveq %rcx, %rdi
cmpq $0x26, %rax
leaq 0x13830(%rip), %rax     # 0x171e4
cmovneq %rax, %rdi
leaq -0x26(%r13), %rax
cmpq $0x3, %rax
jb 0x392f
cmpq $0x29, %r13
leaq 0x13839(%rip), %rdi     # 0x1720a
leaq 0x1381f(%rip), %rax     # 0x171f7
cmoveq %rax, %rdi
leaq -0x29(%r13), %rax
cmpq $0x2, %rax
jb 0x392f
movq %r10, %rcx
leaq -0x2b(%r13), %rax
cmpl $0x3, %eax
jae 0x3a0e
movl %eax, %eax
leaq 0x12ac9(%rip), %rdx     # 0x164c8
movslq (%rdx,%rax,4), %rdi
addq %rdx, %rdi
movq %rcx, %r10
jmp 0x392f
leaq 0x13841(%rip), %rdi     # 0x17256
cmpq $0x2e, %r13
movq %rcx, %r10
je 0x392f
leaq -0x2f(%r13), %rax
cmpl $0x6, %eax
jae 0x3a36
movl %eax, %eax
leaq 0x12aa0(%rip), %rdx     # 0x164d4
jmp 0x39ff
leaq 0x1388b(%rip), %rdi     # 0x172c8
cmpq $0x35, %r13
movq %rcx, %r10
je 0x392f
jmp 0x393c
andl $-0x2, %ebx
cmpl $0x2, %ebx
jne 0x3a7c
cmpl $0x0, 0x20f66(%rip)     # 0x249c4
jne 0x3a7c
leaq 0x13874(%rip), %rdi     # 0x172db
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3070
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq