// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movl %edi, %ebx
movl 0x20093(%rip), %eax     # 0x23374
movl %eax, 0x206d9(%rip)     # 0x239c0
andl $0x0, 0x206d6(%rip)     # 0x239c4
movl %esi, %esi
pushq $0x1
popq %r15
leaq 0x12181(%rip), %r12     # 0x1547c
leaq 0x1f89e(%rip), %r8      # 0x22ba0
pushq $0x64
popq %rdi
leaq 0x12bab(%rip), %r9      # 0x15eb7
leaq 0x12bec(%rip), %r10     # 0x15eff
leaq 0x12bf8(%rip), %r11     # 0x15f12
movsd 0x11ce6(%rip), %xmm1    # 0x15008
cmpq $0x36, %r15
je 0x3998
cmpl $0x1, %ebx
jne 0x337a
movl (%r8,%r15,4), %eax
cmpl $0x2710, %eax           # imm = 0x2710
jg 0x36b9
cltd
idivl %edi
cmpl 0x20677(%rip), %edx     # 0x239c0
jne 0x36b9
cmpq $0x4, %r15
jne 0x33ec
movl 0x1f851(%rip), %eax     # 0x22bb0
cmpl $0x1ed, %eax            # imm = 0x1ED
je 0x36b9
cmpl $0x5d5, %eax            # imm = 0x5D5
je 0x36b9
movb $0x1, %r14b
jmp 0x33ef
cmpl $0x2, %ebx
jne 0x339a
cmpl $0x4e20, (%r8,%r15,4)   # imm = 0x4E20
jl 0x36b9
cmpq $0x4, %r15
sete %r14b
movb $0x1, %r13b
jmp 0x33f2
cmpl $0x4, %ebx
sete %al
cmpq %r15, %rsi
setne %cl
testb %cl, %al
jne 0x36b9
cmpl $0x3, %ebx
jne 0x33e2
movl (%r8,%r15,4), %eax
leal -0x4e21(%rax), %ecx
cmpl $0xffffd8ef, %ecx       # imm = 0xFFFFD8EF
jb 0x36b9
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
imull $-0x64, %ecx, %ecx
addl %eax, %ecx
cmpl %esi, %ecx
jne 0x36b9
cmpq $0x4, %r15
sete %r14b
jmp 0x33ef
xorl %r14d, %r14d
xorl %r13d, %r13d
cmpl $0x1, %ebx
jne 0x340d
cmpq $0x5, %r15
jne 0x340d
cmpl $0x524, 0x1f7ad(%rip)   # imm = 0x524
je 0x36b9
cmpl $0x1, %ebx
jne 0x3428
cmpq $0x11, %r15
jne 0x3428
cmpl $0x475, 0x1f7c2(%rip)   # imm = 0x475
je 0x36b9
cmpl $0x1, %ebx
sete %al
cmpq $0x13, %r15
sete %cl
andb %al, %cl
movl 0x20583(%rip), %eax     # 0x239c0
cmpl $0x10, %eax
sete %dl
testb %dl, %cl
jne 0x36b9
cmpl $0x1, %ebx
jne 0x3466
cmpq $0x1d, %r15
jne 0x3466
cmpl $0x4be, 0x1f7b4(%rip)   # imm = 0x4BE
je 0x36b9
cmpl $0x1, %ebx
sete %cl
cmpq $0x1e, %r15
sete %dl
andb %cl, %dl
cmpl $0x19, %eax
sete %al
testb %al, %dl
jne 0x36b9
cmpl $0x1, %ebx
jne 0x349e
cmpq $0x25, %r15
jne 0x349e
cmpl $0x481, 0x1f79c(%rip)   # imm = 0x481
je 0x36b9
cmpl $0x1, %ebx
jne 0x34b9
cmpq $0x27, %r15
jne 0x34b9
cmpl $0x4e5, 0x1f789(%rip)   # imm = 0x4E5
je 0x36b9
cmpl $0x1, %ebx
jne 0x34d4
cmpq $0x28, %r15
jne 0x34d4
cmpl $0x47f, 0x1f772(%rip)   # imm = 0x47F
je 0x36b9
cmpl $0x1, %ebx
jne 0x34ef
cmpq $0x2a, %r15
jne 0x34ef
cmpl $0x47f, 0x1f75f(%rip)   # imm = 0x47F
je 0x36b9
cmpl $0x1, %ebx
jne 0x350a
cmpq $0x2e, %r15
jne 0x350a
cmpl $0x44d, 0x1f754(%rip)   # imm = 0x44D
je 0x36b9
cmpl $0x1, %ebx
jne 0x3525
cmpq $0x1c, %r15
jne 0x3525
cmpl $0x4a0, 0x1f6f1(%rip)   # imm = 0x4A0
je 0x36b9
cmpl $0x1, %ebx
movq %rsi, -0x30(%rbp)
jne 0x356c
cmpl $0x0, 0x2048f(%rip)     # 0x239c4
jne 0x356c
movq %r9, %rdi
xorl %eax, %eax
callq 0x3070
movsd 0x11abf(%rip), %xmm1    # 0x15008
leaq 0x129c2(%rip), %r11     # 0x15f12
leaq 0x129a8(%rip), %r10     # 0x15eff
leaq 0x12959(%rip), %r9      # 0x15eb7
pushq $0x64
popq %rdi
leaq 0x1f638(%rip), %r8      # 0x22ba0
movq -0x30(%rbp), %rsi
cmpq $0x35, %r15
sete %al
testb %r13b, %al
jne 0x36b9
cmpq $0x3, %r15
ja 0x35a4
movslq (%r12), %rdi
leaq 0x11eef(%rip), %rax     # 0x1547c
addq %rax, %rdi
xorl %eax, %eax
movq %r11, %r13
callq 0x3070
movq %r13, %r11
leaq 0x1295b(%rip), %r10     # 0x15eff
cmpq $0x5, %r15
sete %al
orb %r14b, %al
testb %r14b, %r14b
movq %r11, %rdi
cmovneq %r10, %rdi
testb %al, %al
jne 0x35d5
leaq -0x6(%r15), %rax
cmpl $0x6, %eax
ja 0x35e8
movl %eax, %eax
leaq 0x11eba(%rip), %rcx     # 0x15488
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
xorl %eax, %eax
movq %r10, %r13
movq %r11, %r14
callq 0x3070
movq %r14, %r11
movq %r13, %r10
cmpq $0xd, %r15
sete %cl
movl 0x1fda3(%rip), %eax     # 0x23398
cmpl $0xd, %eax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x3622
leaq 0x129a1(%rip), %rdi     # 0x15faa
xorl %eax, %eax
movq %r10, %r13
movq %r11, %r14
callq 0x3070
movq %r14, %r11
movq %r13, %r10
movl 0x1fd76(%rip), %eax     # 0x23398
cmpq $0xd, %r15
leaq 0x1f573(%rip), %r8      # 0x22ba0
leaq 0x12883(%rip), %r9      # 0x15eb7
movsd 0x119cc(%rip), %xmm1    # 0x15008
jne 0x364a
leaq 0x12978(%rip), %rdi     # 0x15fbd
cmpl $0xd, %eax
je 0x367f
leaq -0xe(%r15), %rax
cmpl $0x3, %eax
jae 0x3665
movl %eax, %eax
leaq 0x11e48(%rip), %rcx     # 0x154a4
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
jmp 0x367f
leaq 0x1299d(%rip), %rdi     # 0x16009
cmpq $0x11, %r15
je 0x367f
leaq 0x129a3(%rip), %rdi     # 0x1601c
cmpq $0x12, %r15
jne 0x36c5
xorl %eax, %eax
movq %r8, %r14
movq %r9, %r13
callq 0x3070
movsd 0x11974(%rip), %xmm1    # 0x15008
leaq 0x12877(%rip), %r11     # 0x15f12
leaq 0x1285d(%rip), %r10     # 0x15eff
movq %r13, %r9
movq %r14, %r8
movl $0x1, 0x20312(%rip)     # 0x239c4
movq -0x30(%rbp), %rsi
pushq $0x64
popq %rdi
incq %r15
addq $0x4, %r12
jmp 0x3322
cmpq $0x13, %r15
jne 0x3762
movl 0x1f517(%rip), %ecx     # 0x22bec
movl %ecx, %eax
cltd
movl $0x3e8, %esi            # imm = 0x3E8
idivl %esi
movl %eax, %esi
movl %ecx, %eax
cltd
movl $0x2710, %ecx           # imm = 0x2710
idivl %ecx
imull $-0xa, %eax, %eax
addl %esi, %eax
leaq 0x1294b(%rip), %rdi     # 0x16042
cmpl $0x1, %eax
jne 0x367f
leaq 0x1292c(%rip), %rdi     # 0x1602f
xorl %eax, %eax
movq %r8, %r14
movq %r9, %r13
callq 0x3070
movsd 0x118f0(%rip), %xmm1    # 0x15008
leaq 0x127f3(%rip), %r11     # 0x15f12
leaq 0x127d9(%rip), %r10     # 0x15eff
movq %r13, %r9
movq %r14, %r8
movl 0x1f4ba(%rip), %ecx     # 0x22bec
movl %ecx, %eax
cltd
movl $0x3e8, %esi            # imm = 0x3E8
idivl %esi
movl %eax, %esi
movl %ecx, %eax
cltd
movl $0x2710, %ecx           # imm = 0x2710
idivl %ecx
imull $-0xa, %eax, %eax
addl %esi, %eax
leaq 0x128ee(%rip), %rdi     # 0x16042
cmpl $0x1, %eax
jne 0x367f
jmp 0x36a8
leal -0x14(%r15), %eax
cmpl $0x7, %eax
ja 0x385c
leaq 0x11a32(%rip), %rcx     # 0x151a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x128d1(%rip), %rdi     # 0x16055
jmpq *%rax
leaq 0x128db(%rip), %rdi     # 0x16068
jmp 0x367f
leaq 0x12908(%rip), %rdi     # 0x160a1
jmp 0x367f
leaq 0x128d6(%rip), %rdi     # 0x1607b
jmp 0x367f
leaq 0x128dd(%rip), %rdi     # 0x1608e
jmp 0x367f
movl 0x1f450(%rip), %ecx     # 0x22c0c
movl %ecx, %eax
cltd
movl $0x3e8, %esi            # imm = 0x3E8
idivl %esi
movl %eax, %esi
movl %ecx, %eax
cltd
movl $0x2710, %ecx           # imm = 0x2710
idivl %ecx
imull $-0xa, %eax, %eax
addl %esi, %eax
leaq 0x1290f(%rip), %rdi     # 0x160ed
cmpl $0x1, %eax
jne 0x367f
leaq 0x128ec(%rip), %rdi     # 0x160da
xorl %eax, %eax
movq %r8, %r14
movq %r9, %r13
callq 0x3070
movsd 0x11805(%rip), %xmm1    # 0x15008
leaq 0x12708(%rip), %r11     # 0x15f12
leaq 0x126ee(%rip), %r10     # 0x15eff
movq %r13, %r9
movq %r14, %r8
movl 0x1f3ef(%rip), %ecx     # 0x22c0c
movl %ecx, %eax
cltd
movl $0x3e8, %esi            # imm = 0x3E8
idivl %esi
movl %eax, %esi
movl %ecx, %eax
cltd
movl $0x2710, %ecx           # imm = 0x2710
idivl %ecx
imull $-0xa, %eax, %eax
addl %esi, %eax
leaq 0x128ae(%rip), %rdi     # 0x160ed
jmp 0x3754
leaq 0x12869(%rip), %rdi     # 0x160b4
jmp 0x367f
leaq 0x12870(%rip), %rdi     # 0x160c7
jmp 0x367f
movq %r15, %rax
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
andq %rcx, %rax
cmpq $0x1c, %r15
leaq 0x1289c(%rip), %rdi     # 0x16113
leaq 0x12882(%rip), %rcx     # 0x16100
cmoveq %rcx, %rdi
cmpq $0x1c, %rax
leaq 0x12899(%rip), %rcx     # 0x16126
cmovneq %rcx, %rdi
leaq -0x1c(%r15), %rcx
cmpq $0x3, %rcx
jb 0x367f
movq %r9, %rsi
movq %r8, %rdx
leaq -0x1f(%r15), %rcx
cmpl $0x6, %ecx
jae 0x38c9
movl %ecx, %eax
leaq 0x11bf9(%rip), %rcx     # 0x154b0
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
movq %rdx, %r8
movq %rsi, %r9
jmp 0x367f
leaq 0x128db(%rip), %rdi     # 0x161ab
cmpq $0x25, %r15
movq %rdx, %r8
movq %rsi, %r9
je 0x367f
cmpq $0x26, %r15
leaq 0x128e6(%rip), %rdi     # 0x161d1
leaq 0x128cc(%rip), %rcx     # 0x161be
cmoveq %rcx, %rdi
cmpq $0x26, %rax
leaq 0x128e3(%rip), %rax     # 0x161e4
cmovneq %rax, %rdi
leaq -0x26(%r15), %rax
cmpq $0x3, %rax
jb 0x367f
cmpq $0x29, %r15
leaq 0x128ec(%rip), %rdi     # 0x1620a
leaq 0x128d2(%rip), %rax     # 0x161f7
cmoveq %rax, %rdi
leaq -0x29(%r15), %rax
cmpq $0x2, %rax
jb 0x367f
leaq -0x2b(%r15), %rax
cmpl $0x3, %eax
jae 0x394e
movl %eax, %eax
leaq 0x11b7f(%rip), %rcx     # 0x154c8
jmp 0x38b7
leaq 0x12901(%rip), %rdi     # 0x16256
cmpq $0x2e, %r15
movq %rdx, %r8
movq %rsi, %r9
je 0x367f
leaq -0x2f(%r15), %rax
cmpl $0x6, %eax
jae 0x397c
movl %eax, %eax
leaq 0x11b5d(%rip), %rcx     # 0x154d4
jmp 0x38b7
leaq 0x12945(%rip), %rdi     # 0x162c8
cmpq $0x35, %r15
movq %rdx, %r8
movq %rsi, %r9
je 0x367f
jmp 0x36a8
andl $-0x2, %ebx
cmpl $0x2, %ebx
jne 0x39c5
cmpl $0x0, 0x2001d(%rip)     # 0x239c4
jne 0x39c5
leaq 0x1292b(%rip), %rdi     # 0x162db
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3070
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq