000f26bc - 000f34c0

From Final Fantasy Hacktics Wiki
Revision as of 10:16, 15 January 2022 by Talcall (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ReloadMapState() code? 
Expects r4 and r5 to be parsed from 000f3718 - 000f4ac8 or 000f34c4 - 000f3634
r4 = input byte
r5 = start of map GNS data

000f26bc: 27bdff88 addiu r29,r29,0xff88
000f26c0: afb20058 sw r18,0x0058(r29)
000f26c4: 00a09021 addu r18,r5,r0			#r18 = r5
000f26c8: afb00050 sw r16,0x0050(r29)
000f26cc: 00808021 addu r16,r4,r0			#r16 = r4
000f26d0: afbf0074 sw r31,0x0074(r29)
000f26d4: afbe0070 sw r30,0x0070(r29)
000f26d8: afb7006c sw r23,0x006c(r29)
000f26dc: afb60068 sw r22,0x0068(r29)
000f26e0: afb50064 sw r21,0x0064(r29)
000f26e4: afb40060 sw r20,0x0060(r29)
000f26e8: afb3005c sw r19,0x005c(r29)
000f26ec: afb10054 sw r17,0x0054(r29)
000f26f0: 3c05800e lui r5,0x800e
000f26f4: 24a56b94 addiu r5,r5,0x6b94			#current map data
000f26f8: 88a20003 lwl r2,0x0003(r5)
000f26fc: 98a20000 lwr r2,0x0000(r5)
000f2700: 88a30007 lwl r3,0x0007(r5)
000f2704: 98a30004 lwr r3,0x0004(r5)
000f2708: aba2003b swl r2,0x003b(r29)
000f270c: bba20038 swr r2,0x0038(r29)
000f2710: aba3003f swl r3,0x003f(r29)
000f2714: bba3003c swr r3,0x003c(r29)
000f2718: 3c05800e lui r5,0x800e
000f271c: 24a56b9c addiu r5,r5,0x6b9c
000f2720: 8ca20000 lw r2,0x0000(r5)
000f2724: 8ca30004 lw r3,0x0004(r5)
000f2728: 8ca40008 lw r4,0x0008(r5)
000f272c: afa20040 sw r2,0x0040(r29)
000f2730: afa30044 sw r3,0x0044(r29)
000f2734: afa40048 sw r4,0x0048(r29)
000f2738: 8ca2000c lw r2,0x000c(r5)
000f273c: 00000000 nop
000f2740: afa2004c sw r2,0x004c(r29)
000f2744: 0c0091b5 jal 0x000246d4
000f2748: 34040001 ori r4,r0,0x0001			#input is 0x1
000f274c: 1440fffd bne r2,r0,0x000f2744			#branch if ? fails(?)
000f2750: 320200ff andi r2,r16,0x00ff			#r2 = input
000f2754: 2443fff0 addiu r3,r2,0xfff0			#r3 = input - 0x10
000f2758: 2c62007c sltiu r2,r3,0x007c			#set if 0x10 <= input < 0x8c
000f275c: 1040034b beq r2,r0,0x000f348c		#branch if input < 0x10 OR input > 0x8c
000f2760: 00031080 sll r2,r3,0x02			#r2 = (input - 0x10) * 4 (word pointer)
000f2764: 3c01800e lui r1,0x800e
000f2768: 00220821 addu r1,r1,r2
000f276c: 8c226f70 lw r2,0x6f70(r1)			#load from a list of pointers (0x800e6f70 + (input word - 0x10) * 4)
000f2770: 00000000 nop
000f2774: 00400008 jr r2
000f2778: 00000000 nop
000f277c: 00008021 addu r16,r0,r0			#r16 = 0
000f2780: 3c04800f lui r4,0x800f
000f2784: 24847994 addiu r4,r4,0x7994
000f2788: 00001821 addu r3,r0,r0
000f278c: 3c01800f lui r1,0x800f
000f2790: ac205b64 sw r0,0x5b64(r1)			#0
000f2794: 3c01800f lui r1,0x800f
000f2798: ac205b68 sw r0,0x5b68(r1)			#0
000f279c: 3c01800f lui r1,0x800f
000f27a0: ac205b6c sw r0,0x5b6c(r1)			#0
000f27a4: 3c01800f lui r1,0x800f
000f27a8: ac205b70 sw r0,0x5b70(r1)			#0
000f27ac: 3c018010 lui r1,0x8010
000f27b0: 00230821 addu r1,r1,r3
000f27b4: a420be90 sh r0,-0x4170(r1)			#0
000f27b8: 3c018010 lui r1,0x8010
000f27bc: 00230821 addu r1,r1,r3
000f27c0: a420be92 sh r0,-0x416e(r1)			#0
000f27c4: 3c018010 lui r1,0x8010
000f27c8: 00230821 addu r1,r1,r3
000f27cc: a420be94 sh r0,-0x416c(r1)			#0
000f27d0: 3c018010 lui r1,0x8010
000f27d4: 00230821 addu r1,r1,r3
000f27d8: a420be96 sh r0,-0x416a(r1)
000f27dc: ac800000 sw r0,0x0000(r4)			#0
000f27e0: 24840004 addiu r4,r4,0x0004
000f27e4: 26100001 addiu r16,r16,0x0001		#counter + 1
000f27e8: 2a020009 slti r2,r16,0x0009
000f27ec: 1440ffef bne r2,r0,0x000f27ac		#loop until counter = 0x9
000f27f0: 24630098 addiu r3,r3,0x0098			#r3 + 0x98
000f27f4: 02402021 addu r4,r18,r0			#r4 = map GNS
000f27f8: 3c058010 lui r5,0x8010
000f27fc: 24a5be00 addiu r5,r5,0xbe00			#r5 = 0x800f4200
000f2800: 3c01800f lui r1,0x800f
000f2804: ac247994 sw r4,0x7994(r1)			#save map GNS pointer to 0x800f7994
000f2808: 0c03d375 jal 0x000f4dd4			#000f4dd4 - 000f5574 - seems to initialise something, doesn't seem to do it all the time.
000f280c: 00000000 nop
000f2810: 3c02800f lui r2,0x800f
000f2814: 8c425b64 lw r2,0x5b64(r2)			#load texture/mesh loop?
000f2818: 3c03800f lui r3,0x800f
000f281c: 8c635b68 lw r3,0x5b68(r3)			#load weather loop?
000f2820: 3c04800f lui r4,0x800f
000f2824: 8c845b6c lw r4,0x5b6c(r4)			#file type indicator loop?
000f2828: 3c05800f lui r5,0x800f
000f282c: 8ca55b70 lw r5,0x5b70(r5)			#er... padding loop?
000f2830: 3c01800f lui r1,0x800f
000f2834: ac225b74 sw r2,0x5b74(r1)			#duplicate everything 10 bytes upwards
000f2838: 3c01800f lui r1,0x800f
000f283c: ac235b78 sw r3,0x5b78(r1)
000f2840: 3c01800f lui r1,0x800f
000f2844: ac245b7c sw r4,0x5b7c(r1)
000f2848: 3c01800f lui r1,0x800f
000f284c: ac255b80 sw r5,0x5b80(r1)
000f2850: 0803cd24 j 0x000f3490
000f2854: 03c01021 addu r2,r30,r0			#r2 = r30

000f2858: 3c01800f lui r1,0x800f
000f285c: ac327998 sw r18,0x7998(r1)
000f2860: 3c058010 lui r5,0x8010
000f2864: 24a5be98 addiu r5,r5,0xbe98
000f2868: 0c03d375 jal 0x000f4dd4
000f286c: 02402021 addu r4,r18,r0
000f2870: 0803cd24 j 0x000f3490
000f2874: 03c01021 addu r2,r30,r0

000f2878: 3c01800f lui r1,0x800f
000f287c: ac32799c sw r18,0x799c(r1)
000f2880: 3c058010 lui r5,0x8010
000f2884: 24a5bf30 addiu r5,r5,0xbf30
000f2888: 0c03d375 jal 0x000f4dd4
000f288c: 02402021 addu r4,r18,r0
000f2890: 0803cd24 j 0x000f3490
000f2894: 03c01021 addu r2,r30,r0

000f2898: 3c01800f lui r1,0x800f
000f289c: ac3279a0 sw r18,0x79a0(r1)
000f28a0: 3c058010 lui r5,0x8010
000f28a4: 24a5bfc8 addiu r5,r5,0xbfc8
000f28a8: 0c03d375 jal 0x000f4dd4
000f28ac: 02402021 addu r4,r18,r0
000f28b0: 0803cd24 j 0x000f3490
000f28b4: 03c01021 addu r2,r30,r0

000f28b8: 3c01800f lui r1,0x800f
000f28bc: ac3279a4 sw r18,0x79a4(r1)
000f28c0: 3c058010 lui r5,0x8010
000f28c4: 24a5c060 addiu r5,r5,0xc060
000f28c8: 0c03d375 jal 0x000f4dd4
000f28cc: 02402021 addu r4,r18,r0
000f28d0: 0803cd24 j 0x000f3490
000f28d4: 03c01021 addu r2,r30,r0

000f28d8: 3c01800f lui r1,0x800f
000f28dc: ac3279a8 sw r18,0x79a8(r1)
000f28e0: 3c058010 lui r5,0x8010
000f28e4: 24a5c0f8 addiu r5,r5,0xc0f8
000f28e8: 0c03d375 jal 0x000f4dd4
000f28ec: 02402021 addu r4,r18,r0
000f28f0: 0803cd24 j 0x000f3490
000f28f4: 03c01021 addu r2,r30,r0

000f28f8: 3c01800f lui r1,0x800f
000f28fc: ac3279ac sw r18,0x79ac(r1)
000f2900: 3c058010 lui r5,0x8010
000f2904: 24a5c190 addiu r5,r5,0xc190
000f2908: 0c03d375 jal 0x000f4dd4
000f290c: 02402021 addu r4,r18,r0
000f2910: 0803cd24 j 0x000f3490
000f2914: 03c01021 addu r2,r30,r0

000f2918: 3c01800f lui r1,0x800f
000f291c: ac3279b0 sw r18,0x79b0(r1)
000f2920: 3c058010 lui r5,0x8010
000f2924: 24a5c228 addiu r5,r5,0xc228
000f2928: 0c03d375 jal 0x000f4dd4
000f292c: 02402021 addu r4,r18,r0
000f2930: 0803cd24 j 0x000f3490
000f2934: 03c01021 addu r2,r30,r0

000f2938: 3c01800f lui r1,0x800f
000f293c: ac3279b4 sw r18,0x79b4(r1)
000f2940: 3c058010 lui r5,0x8010
000f2944: 24a5c2c0 addiu r5,r5,0xc2c0
000f2948: 0c03d375 jal 0x000f4dd4
000f294c: 02402021 addu r4,r18,r0
000f2950: 0803cd24 j 0x000f3490
000f2954: 03c01021 addu r2,r30,r0

000f2958: 26440380 addiu r4,r18,0x0380			#r4 = 
000f295c: 00008021 addu r16,r0,r0
000f2960: 34060080 ori r6,r0,0x0080
000f2964: 00001821 addu r3,r0,r0
000f2968: 00002821 addu r5,r0,r0
000f296c: 94820000 lhu r2,0x0000(r4)
000f2970: 3c018012 lui r1,0x8012
000f2974: 00250821 addu r1,r1,r5
000f2978: a422a2e6 sh r2,-0x5d1a(r1)
000f297c: 30428000 andi r2,r2,0x8000
000f2980: 14400037 bne r2,r0,0x000f2a60
000f2984: 24840002 addiu r4,r4,0x0002
000f2988: 3c018010 lui r1,0x8010
000f298c: 00230821 addu r1,r1,r3
000f2990: a026c560 sb r6,-0x3aa0(r1)
000f2994: 3c018010 lui r1,0x8010
000f2998: 00230821 addu r1,r1,r3
000f299c: a026c56c sb r6,-0x3a94(r1)
000f29a0: 3c018010 lui r1,0x8010
000f29a4: 00230821 addu r1,r1,r3
000f29a8: a026c578 sb r6,-0x3a88(r1)
000f29ac: 3c018010 lui r1,0x8010
000f29b0: 00230821 addu r1,r1,r3
000f29b4: a026c561 sb r6,-0x3a9f(r1)
000f29b8: 3c018010 lui r1,0x8010
000f29bc: 00230821 addu r1,r1,r3
000f29c0: a026c56d sb r6,-0x3a93(r1)
000f29c4: 3c018010 lui r1,0x8010
000f29c8: 00230821 addu r1,r1,r3
000f29cc: a026c579 sb r6,-0x3a87(r1)
000f29d0: 3c018010 lui r1,0x8010
000f29d4: 00230821 addu r1,r1,r3
000f29d8: a026c562 sb r6,-0x3a9e(r1)
000f29dc: 3c018010 lui r1,0x8010
000f29e0: 00230821 addu r1,r1,r3
000f29e4: a026c56e sb r6,-0x3a92(r1)
000f29e8: 3c018010 lui r1,0x8010
000f29ec: 00230821 addu r1,r1,r3
000f29f0: a026c57a sb r6,-0x3a86(r1)
000f29f4: 3c018011 lui r1,0x8011
000f29f8: 00230821 addu r1,r1,r3
000f29fc: a026b388 sb r6,-0x4c78(r1)
000f2a00: 3c018011 lui r1,0x8011
000f2a04: 00230821 addu r1,r1,r3
000f2a08: a026b394 sb r6,-0x4c6c(r1)
000f2a0c: 3c018011 lui r1,0x8011
000f2a10: 00230821 addu r1,r1,r3
000f2a14: a026b3a0 sb r6,-0x4c60(r1)
000f2a18: 3c018011 lui r1,0x8011
000f2a1c: 00230821 addu r1,r1,r3
000f2a20: a026b389 sb r6,-0x4c77(r1)
000f2a24: 3c018011 lui r1,0x8011
000f2a28: 00230821 addu r1,r1,r3
000f2a2c: a026b395 sb r6,-0x4c6b(r1)
000f2a30: 3c018011 lui r1,0x8011
000f2a34: 00230821 addu r1,r1,r3
000f2a38: a026b3a1 sb r6,-0x4c5f(r1)
000f2a3c: 3c018011 lui r1,0x8011
000f2a40: 00230821 addu r1,r1,r3
000f2a44: a026b38a sb r6,-0x4c76(r1)
000f2a48: 3c018011 lui r1,0x8011
000f2a4c: 00230821 addu r1,r1,r3
000f2a50: a026b396 sb r6,-0x4c6a(r1)
000f2a54: 3c018011 lui r1,0x8011
000f2a58: 00230821 addu r1,r1,r3
000f2a5c: a026b3a2 sb r6,-0x4c5e(r1)
000f2a60: 24630028 addiu r3,r3,0x0028
000f2a64: 26100001 addiu r16,r16,0x0001
000f2a68: 2a020168 slti r2,r16,0x0168
000f2a6c: 1440ffbf bne r2,r0,0x000f296c
000f2a70: 24a50018 addiu r5,r5,0x0018
000f2a74: 2a020200 slti r2,r16,0x0200
000f2a78: 10400005 beq r2,r0,0x000f2a90
000f2a7c: 00000000 nop
000f2a80: 26100001 addiu r16,r16,0x0001
000f2a84: 2a020200 slti r2,r16,0x0200
000f2a88: 1440fffd bne r2,r0,0x000f2a80
000f2a8c: 24840002 addiu r4,r4,0x0002
000f2a90: 00008021 addu r16,r0,r0
000f2a94: 34060080 ori r6,r0,0x0080
000f2a98: 00001821 addu r3,r0,r0
000f2a9c: 00002821 addu r5,r0,r0
000f2aa0: 94820000 lhu r2,0x0000(r4)
000f2aa4: 3c018012 lui r1,0x8012
000f2aa8: 00250821 addu r1,r1,r5
000f2aac: a422c4a6 sh r2,-0x3b5a(r1)
000f2ab0: 30428000 andi r2,r2,0x8000
000f2ab4: 14400049 bne r2,r0,0x000f2bdc
000f2ab8: 24840002 addiu r4,r4,0x0002
000f2abc: 3c018010 lui r1,0x8010
000f2ac0: 00230821 addu r1,r1,r3
000f2ac4: a026fda0 sb r6,-0x0260(r1)
000f2ac8: 3c018010 lui r1,0x8010
000f2acc: 00230821 addu r1,r1,r3
000f2ad0: a026fdac sb r6,-0x0254(r1)
000f2ad4: 3c018010 lui r1,0x8010
000f2ad8: 00230821 addu r1,r1,r3
000f2adc: a026fdb8 sb r6,-0x0248(r1)
000f2ae0: 3c018010 lui r1,0x8010
000f2ae4: 00230821 addu r1,r1,r3
000f2ae8: a026fdc4 sb r6,-0x023c(r1)
000f2aec: 3c018010 lui r1,0x8010
000f2af0: 00230821 addu r1,r1,r3
000f2af4: a026fda1 sb r6,-0x025f(r1)
000f2af8: 3c018010 lui r1,0x8010
000f2afc: 00230821 addu r1,r1,r3
000f2b00: a026fdad sb r6,-0x0253(r1)
000f2b04: 3c018010 lui r1,0x8010
000f2b08: 00230821 addu r1,r1,r3
000f2b0c: a026fdb9 sb r6,-0x0247(r1)
000f2b10: 3c018010 lui r1,0x8010
000f2b14: 00230821 addu r1,r1,r3
000f2b18: a026fdc5 sb r6,-0x023b(r1)
000f2b1c: 3c018010 lui r1,0x8010
000f2b20: 00230821 addu r1,r1,r3
000f2b24: a026fda2 sb r6,-0x025e(r1)
000f2b28: 3c018010 lui r1,0x8010
000f2b2c: 00230821 addu r1,r1,r3
000f2b30: a026fdae sb r6,-0x0252(r1)
000f2b34: 3c018010 lui r1,0x8010
000f2b38: 00230821 addu r1,r1,r3
000f2b3c: a026fdba sb r6,-0x0246(r1)
000f2b40: 3c018010 lui r1,0x8010
000f2b44: 00230821 addu r1,r1,r3
000f2b48: a026fdc6 sb r6,-0x023a(r1)
000f2b4c: 3c018011 lui r1,0x8011
000f2b50: 00230821 addu r1,r1,r3
000f2b54: a026ebc8 sb r6,-0x1438(r1)
000f2b58: 3c018011 lui r1,0x8011
000f2b5c: 00230821 addu r1,r1,r3
000f2b60: a026ebd4 sb r6,-0x142c(r1)
000f2b64: 3c018011 lui r1,0x8011
000f2b68: 00230821 addu r1,r1,r3
000f2b6c: a026ebe0 sb r6,-0x1420(r1)
000f2b70: 3c018011 lui r1,0x8011
000f2b74: 00230821 addu r1,r1,r3
000f2b78: a026ebec sb r6,-0x1414(r1)
000f2b7c: 3c018011 lui r1,0x8011
000f2b80: 00230821 addu r1,r1,r3
000f2b84: a026ebc9 sb r6,-0x1437(r1)
000f2b88: 3c018011 lui r1,0x8011
000f2b8c: 00230821 addu r1,r1,r3
000f2b90: a026ebd5 sb r6,-0x142b(r1)
000f2b94: 3c018011 lui r1,0x8011
000f2b98: 00230821 addu r1,r1,r3
000f2b9c: a026ebe1 sb r6,-0x141f(r1)
000f2ba0: 3c018011 lui r1,0x8011
000f2ba4: 00230821 addu r1,r1,r3
000f2ba8: a026ebed sb r6,-0x1413(r1)
000f2bac: 3c018011 lui r1,0x8011
000f2bb0: 00230821 addu r1,r1,r3
000f2bb4: a026ebca sb r6,-0x1436(r1)
000f2bb8: 3c018011 lui r1,0x8011
000f2bbc: 00230821 addu r1,r1,r3
000f2bc0: a026ebd6 sb r6,-0x142a(r1)
000f2bc4: 3c018011 lui r1,0x8011
000f2bc8: 00230821 addu r1,r1,r3
000f2bcc: a026ebe2 sb r6,-0x141e(r1)
000f2bd0: 3c018011 lui r1,0x8011
000f2bd4: 00230821 addu r1,r1,r3
000f2bd8: a026ebee sb r6,-0x1412(r1)
000f2bdc: 24630034 addiu r3,r3,0x0034
000f2be0: 26100001 addiu r16,r16,0x0001
000f2be4: 2a0202c6 slti r2,r16,0x02c6
000f2be8: 1440ffad bne r2,r0,0x000f2aa0
000f2bec: 24a50020 addiu r5,r5,0x0020
000f2bf0: 2a020300 slti r2,r16,0x0300
000f2bf4: 10400005 beq r2,r0,0x000f2c0c
000f2bf8: 00000000 nop
000f2bfc: 26100001 addiu r16,r16,0x0001
000f2c00: 2a020300 slti r2,r16,0x0300
000f2c04: 1440fffd bne r2,r0,0x000f2bfc
000f2c08: 24840002 addiu r4,r4,0x0002
000f2c0c: 00008021 addu r16,r0,r0
000f2c10: 00001821 addu r3,r0,r0
000f2c14: 94820000 lhu r2,0x0000(r4)
000f2c18: 24840002 addiu r4,r4,0x0002
000f2c1c: 26100001 addiu r16,r16,0x0001
000f2c20: 3c018012 lui r1,0x8012
000f2c24: 00230821 addu r1,r1,r3
000f2c28: a4222012 sh r2,0x2012(r1)
000f2c2c: 2a020040 slti r2,r16,0x0040
000f2c30: 1440fff8 bne r2,r0,0x000f2c14
000f2c34: 24630018 addiu r3,r3,0x0018
000f2c38: 00001821 addu r3,r0,r0
000f2c3c: 94820000 lhu r2,0x0000(r4)
000f2c40: 3c018012 lui r1,0x8012
000f2c44: 00230821 addu r1,r1,r3
000f2c48: a4222612 sh r2,0x2612(r1)
000f2c4c: 24630020 addiu r3,r3,0x0020
000f2c50: 28622000 slti r2,r3,0x2000
000f2c54: 1440fff9 bne r2,r0,0x000f2c3c
000f2c58: 24840002 addiu r4,r4,0x0002
000f2c5c: 0c039ca8 jal 0x000e72a0
000f2c60: 34040046 ori r4,r0,0x0046
000f2c64: 0803cd24 j 0x000f3490
000f2c68: 03c01021 addu r2,r30,r0
000f2c6c: 34020001 ori r2,r0,0x0001
000f2c70: 3c01800f lui r1,0x800f
000f2c74: a0226cb0 sb r2,0x6cb0(r1)
000f2c78: 00008021 addu r16,r0,r0
000f2c7c: 02402021 addu r4,r18,r0
000f2c80: 90820000 lbu r2,0x0000(r4)
000f2c84: 3c01800f lui r1,0x800f
000f2c88: 00300821 addu r1,r1,r16
000f2c8c: a0226ab0 sb r2,0x6ab0(r1)
000f2c90: 26100001 addiu r16,r16,0x0001
000f2c94: 2a020200 slti r2,r16,0x0200
000f2c98: 1440fff9 bne r2,r0,0x000f2c80
000f2c9c: 24840001 addiu r4,r4,0x0001
000f2ca0: 0803cd24 j 0x000f3490
000f2ca4: 03c01021 addu r2,r30,r0
000f2ca8: 02402021 addu r4,r18,r0			#r4 = Map GNS
000f2cac: 00002821 addu r5,r0,r0			#0
000f2cb0: 00003021 addu r6,r0,r0			#0
000f2cb4: 34070001 ori r7,r0,0x0001			#r7 = 1
000f2cb8: 340201e0 ori r2,r0,0x01e0			#r2 = 0x01e0
000f2cbc: 3c01800f lui r1,0x800f
000f2cc0: a422682a sh r2,0x682a(r1)			#save  0x01e0 to ?
000f2cc4: 34020100 ori r2,r0,0x0100
000f2cc8: 3c01800f lui r1,0x800f
000f2ccc: a422682c sh r2,0x682c(r1)			#save 0x0100 to ?
000f2cd0: 3c01800f lui r1,0x800f
000f2cd4: a0206cb0 sb r0,0x6cb0(r1)			#0
000f2cd8: 0803cb43 j 0x000f2d0c
000f2cdc: 34020001 ori r2,r0,0x0001			#r2 = 1
000f2ce0: 02402021 addu r4,r18,r0			#Map GNS pointer
000f2ce4: 34050001 ori r5,r0,0x0001			#1
000f2ce8: 00003021 addu r6,r0,r0
000f2cec: 34070001 ori r7,r0,0x0001			#1
000f2cf0: 340201e1 ori r2,r0,0x01e1			#0x01e1
000f2cf4: 3c01800f lui r1,0x800f
000f2cf8: a422682a sh r2,0x682a(r1)			#0x01e1
000f2cfc: 34020100 ori r2,r0,0x0100
000f2d00: 3c01800f lui r1,0x800f
000f2d04: a422682c sh r2,0x682c(r1)			#0x0100
000f2d08: 34020001 ori r2,r0,0x0001
000f2d0c: 3c01800f lui r1,0x800f
000f2d10: a4206828 sh r0,0x6828(r1)			#0
000f2d14: 3c01800f lui r1,0x800f
000f2d18: a422682e sh r2,0x682e(r1)			#1
000f2d1c: 0c0249b6 jal 0x000926d8
000f2d20: 00000000 nop
000f2d24: 0803cd24 j 0x000f3490
000f2d28: 03c01021 addu r2,r30,r0			#r30
000f2d2c: 34040002 ori r4,r0,0x0002
000f2d30: 0c011280 jal 0x00044a00
000f2d34: 340503ca ori r5,r0,0x03ca
000f2d38: 0803cd24 j 0x000f3490
000f2d3c: 03c01021 addu r2,r30,r0
000f2d40: 3c04800f lui r4,0x800f
000f2d44: 24846828 addiu r4,r4,0x6828
000f2d48: 34020300 ori r2,r0,0x0300
000f2d4c: a4820000 sh r2,0x0000(r4)
000f2d50: 34020040 ori r2,r0,0x0040
000f2d54: 3c01800f lui r1,0x800f
000f2d58: a422682c sh r2,0x682c(r1)
000f2d5c: 34020100 ori r2,r0,0x0100
000f2d60: 3c01800f lui r1,0x800f
000f2d64: a420682a sh r0,0x682a(r1)
000f2d68: 3c01800f lui r1,0x800f
000f2d6c: a422682e sh r2,0x682e(r1)
000f2d70: 0c00923f jal 0x000248fc
000f2d74: 02402821 addu r5,r18,r0
000f2d78: 0c0091b5 jal 0x000246d4
000f2d7c: 34040001 ori r4,r0,0x0001
000f2d80: 1440fffd bne r2,r0,0x000f2d78
000f2d84: 03c01021 addu r2,r30,r0
000f2d88: 0803cd24 j 0x000f3490
000f2d8c: 00000000 nop
000f2d90: 3c04800f lui r4,0x800f
000f2d94: 24846828 addiu r4,r4,0x6828
000f2d98: 34020340 ori r2,r0,0x0340
000f2d9c: a4820000 sh r2,0x0000(r4)
000f2da0: 34020040 ori r2,r0,0x0040
000f2da4: 3c01800f lui r1,0x800f
000f2da8: a422682c sh r2,0x682c(r1)
000f2dac: 34020100 ori r2,r0,0x0100
000f2db0: 3c01800f lui r1,0x800f
000f2db4: a420682a sh r0,0x682a(r1)
000f2db8: 3c01800f lui r1,0x800f
000f2dbc: a422682e sh r2,0x682e(r1)
000f2dc0: 0c00923f jal 0x000248fc
000f2dc4: 02402821 addu r5,r18,r0
000f2dc8: 0c0091b5 jal 0x000246d4
000f2dcc: 34040001 ori r4,r0,0x0001
000f2dd0: 1440fffd bne r2,r0,0x000f2dc8
000f2dd4: 03c01021 addu r2,r30,r0
000f2dd8: 0803cd24 j 0x000f3490
000f2ddc: 00000000 nop
000f2de0: 3c04800f lui r4,0x800f
000f2de4: 24846828 addiu r4,r4,0x6828
000f2de8: 34020380 ori r2,r0,0x0380
000f2dec: a4820000 sh r2,0x0000(r4)
000f2df0: 34020040 ori r2,r0,0x0040
000f2df4: 3c01800f lui r1,0x800f
000f2df8: a422682c sh r2,0x682c(r1)
000f2dfc: 34020100 ori r2,r0,0x0100
000f2e00: 3c01800f lui r1,0x800f
000f2e04: a420682a sh r0,0x682a(r1)
000f2e08: 3c01800f lui r1,0x800f
000f2e0c: a422682e sh r2,0x682e(r1)
000f2e10: 0c00923f jal 0x000248fc
000f2e14: 02402821 addu r5,r18,r0
000f2e18: 0c0091b5 jal 0x000246d4
000f2e1c: 34040001 ori r4,r0,0x0001
000f2e20: 1440fffd bne r2,r0,0x000f2e18
000f2e24: 03c01021 addu r2,r30,r0
000f2e28: 0803cd24 j 0x000f3490
000f2e2c: 00000000 nop
000f2e30: 3c04800f lui r4,0x800f
000f2e34: 24846828 addiu r4,r4,0x6828
000f2e38: 340203c0 ori r2,r0,0x03c0
000f2e3c: a4820000 sh r2,0x0000(r4)
000f2e40: 34020040 ori r2,r0,0x0040
000f2e44: 3c01800f lui r1,0x800f
000f2e48: a422682c sh r2,0x682c(r1)
000f2e4c: 34020100 ori r2,r0,0x0100
000f2e50: 3c01800f lui r1,0x800f
000f2e54: a420682a sh r0,0x682a(r1)
000f2e58: 3c01800f lui r1,0x800f
000f2e5c: a422682e sh r2,0x682e(r1)
000f2e60: 0c00923f jal 0x000248fc
000f2e64: 02402821 addu r5,r18,r0
000f2e68: 0c0091b5 jal 0x000246d4
000f2e6c: 34040001 ori r4,r0,0x0001
000f2e70: 1440fffd bne r2,r0,0x000f2e68
000f2e74: 03c01021 addu r2,r30,r0
000f2e78: 0803cd24 j 0x000f3490
000f2e7c: 00000000 nop
000f2e80: 3c02800f lui r2,0x800f
000f2e84: 90426cbc lbu r2,0x6cbc(r2)
000f2e88: 00000000 nop
000f2e8c: 10400003 beq r2,r0,0x000f2e9c
000f2e90: 34040013 ori r4,r0,0x0013
000f2e94: 0c03c9af jal 0x000f26bc
000f2e98: 02402821 addu r5,r18,r0
000f2e9c: 3c02800f lui r2,0x800f
000f2ea0: 90426cc0 lbu r2,0x6cc0(r2)
000f2ea4: 00000000 nop
000f2ea8: 10400004 beq r2,r0,0x000f2ebc
000f2eac: 34040014 ori r4,r0,0x0014
000f2eb0: 34058000 ori r5,r0,0x8000
000f2eb4: 0c03c9af jal 0x000f26bc
000f2eb8: 02452821 addu r5,r18,r5
000f2ebc: 3c02800f lui r2,0x800f
000f2ec0: 90426cc4 lbu r2,0x6cc4(r2)
000f2ec4: 00000000 nop
000f2ec8: 10400004 beq r2,r0,0x000f2edc
000f2ecc: 34040015 ori r4,r0,0x0015
000f2ed0: 3c050001 lui r5,0x0001
000f2ed4: 0c03c9af jal 0x000f26bc
000f2ed8: 02452821 addu r5,r18,r5
000f2edc: 3c02800f lui r2,0x800f
000f2ee0: 90426cc8 lbu r2,0x6cc8(r2)
000f2ee4: 00000000 nop
000f2ee8: 10400005 beq r2,r0,0x000f2f00
000f2eec: 3c050001 lui r5,0x0001
000f2ef0: 34a58000 ori r5,r5,0x8000
000f2ef4: 34040016 ori r4,r0,0x0016
000f2ef8: 0c03c9af jal 0x000f26bc
000f2efc: 02452821 addu r5,r18,r5
000f2f00: 3c01800f lui r1,0x800f
000f2f04: a0206cbc sb r0,0x6cbc(r1)
000f2f08: 3c01800f lui r1,0x800f
000f2f0c: a0206cc0 sb r0,0x6cc0(r1)
000f2f10: 3c01800f lui r1,0x800f
000f2f14: a0206cc4 sb r0,0x6cc4(r1)
000f2f18: 3c01800f lui r1,0x800f
000f2f1c: a0206cc8 sb r0,0x6cc8(r1)
000f2f20: 3c01800f lui r1,0x800f
000f2f24: a0206cb4 sb r0,0x6cb4(r1)
000f2f28: 0803cd24 j 0x000f3490
000f2f2c: 03c01021 addu r2,r30,r0
000f2f30: 34100010 ori r16,r0,0x0010
000f2f34: 26510040 addiu r17,r18,0x0040
000f2f38: 8e220000 lw r2,0x0000(r17)
000f2f3c: 00000000 nop
000f2f40: 10400004 beq r2,r0,0x000f2f54
000f2f44: 26310004 addiu r17,r17,0x0004
000f2f48: 320400ff andi r4,r16,0x00ff
000f2f4c: 0c03c9af jal 0x000f26bc
000f2f50: 02422821 addu r5,r18,r2
000f2f54: 26100001 addiu r16,r16,0x0001
000f2f58: 2a020031 slti r2,r16,0x0031
000f2f5c: 1440fff6 bne r2,r0,0x000f2f38
000f2f60: 03c01021 addu r2,r30,r0
000f2f64: 0803cd24 j 0x000f3490
000f2f68: 00000000 nop
000f2f6c: 34020001 ori r2,r0,0x0001
000f2f70: 3c01800f lui r1,0x800f
000f2f74: a0226aac sb r2,0x6aac(r1)
000f2f78: 00008021 addu r16,r0,r0
000f2f7c: 02402021 addu r4,r18,r0
000f2f80: 90820000 lbu r2,0x0000(r4)
000f2f84: 3c01800f lui r1,0x800f
000f2f88: 00300821 addu r1,r1,r16
000f2f8c: a0226a7c sb r2,0x6a7c(r1)
000f2f90: 26100001 addiu r16,r16,0x0001
000f2f94: 2a02002d slti r2,r16,0x002d
000f2f98: 1440fff9 bne r2,r0,0x000f2f80
000f2f9c: 24840001 addiu r4,r4,0x0001
000f2fa0: 0803cd24 j 0x000f3490
000f2fa4: 03c01021 addu r2,r30,r0
000f2fa8: 26430012 addiu r3,r18,0x0012			#r3 = GNS pointer + 0x12
000f2fac: 3c01800f lui r1,0x800f
000f2fb0: a0206aac sb r0,0x6aac(r1)			#0
000f2fb4: 3c01800f lui r1,0x800f
000f2fb8: a4205b34 sh r0,0x5b34(r1)			#0
000f2fbc: 3c01800f lui r1,0x800f
000f2fc0: a4205b36 sh r0,0x5b36(r1)			#0
000f2fc4: 3c01800f lui r1,0x800f
000f2fc8: a4205b38 sh r0,0x5b38(r1)			#0
000f2fcc: 94620000 lhu r2,0x0000(r3)
000f2fd0: 00000000 nop
000f2fd4: a7a20018 sh r2,0x0018(r29)			#store in stack (?)
000f2fd8: 94620002 lhu r2,0x0002(r3)
000f2fdc: 00000000 nop
000f2fe0: a7a2001a sh r2,0x001a(r29)			#
000f2fe4: 94620004 lhu r2,0x0004(r3)
000f2fe8: 00000000 nop
000f2fec: a7a2001c sh r2,0x001c(r29)			#
000f2ff0: 94620006 lhu r2,0x0006(r3)
000f2ff4: 00000000 nop
000f2ff8: a7a2001e sh r2,0x001e(r29)			#
000f2ffc: 94620008 lhu r2,0x0008(r3)
000f3000: 00000000 nop
000f3004: a7a20020 sh r2,0x0020(r29)			#
000f3008: 9462000a lhu r2,0x000a(r3)
000f300c: 00000000 nop
000f3010: a7a20022 sh r2,0x0022(r29)			#
000f3014: 9462000c lhu r2,0x000c(r3)
000f3018: 00000000 nop
000f301c: a7a20024 sh r2,0x0024(r29)			#
000f3020: 9462000e lhu r2,0x000e(r3)
000f3024: 02402021 addu r4,r18,r0			#r4 = GNS pointer
000f3028: a7a20026 sh r2,0x0026(r29)			#
000f302c: 94620010 lhu r2,0x0010(r3)
000f3030: 27a50018 addiu r5,r29,0x0018			#r5 = stack pointer at store location
000f3034: 0c039d9f jal 0x000e767c			#000e767c - 000e77b4
000f3038: a7a20028 sh r2,0x0028(r29)			#
000f303c: 92450024 lbu r5,0x0024(r18)
000f3040: 92460025 lbu r6,0x0025(r18)
000f3044: 92470026 lbu r7,0x0026(r18)
000f3048: 0c039dee jal 0x000e77b8			#000e77b8 - 000e78bc
000f304c: 34040009 ori r4,r0,0x0009
000f3050: 34040058 ori r4,r0,0x0058
000f3054: 92430027 lbu r3,0x0027(r18)
000f3058: 92460028 lbu r6,0x0028(r18)
000f305c: 92470029 lbu r7,0x0029(r18)
000f3060: 3c028012 lui r2,0x8012
000f3064: 244251c8 addiu r2,r2,0x51c8			#0x801251c8
000f3068: a0430000 sb r3,0x0000(r2)
000f306c: 3c018012 lui r1,0x8012
000f3070: a02651c9 sb r6,0x51c9(r1)
000f3074: 3c018012 lui r1,0x8012
000f3078: a02751ca sb r7,0x51ca(r1)
000f307c: 9243002a lbu r3,0x002a(r18)
000f3080: 9246002b lbu r6,0x002b(r18)
000f3084: 9247002c lbu r7,0x002c(r18)
000f3088: 3c018012 lui r1,0x8012
000f308c: a02351cc sb r3,0x51cc(r1)
000f3090: 3c018012 lui r1,0x8012
000f3094: a02651cd sb r6,0x51cd(r1)
000f3098: 3c018012 lui r1,0x8012
000f309c: a02751ce sb r7,0x51ce(r1)
000f30a0: 3c08800f lui r8,0x800f
000f30a4: 25087a44 addiu r8,r8,0x7a44			#0x800f7a44
000f30a8: 88430003 lwl r3,0x0003(r2)
000f30ac: 98430000 lwr r3,0x0000(r2)
000f30b0: 00000000 nop
000f30b4: a9030003 swl r3,0x0003(r8)
000f30b8: b9030000 swr r3,0x0000(r8)
000f30bc: 3c078012 lui r7,0x8012
000f30c0: 24e751cc addiu r7,r7,0x51cc			#0x801251cc
000f30c4: 3c06800f lui r6,0x800f
000f30c8: 24c67a48 addiu r6,r6,0x7a48			#0x800f7a48
000f30cc: 88e20003 lwl r2,0x0003(r7)
000f30d0: 98e20000 lwr r2,0x0000(r7)
000f30d4: 00000000 nop
000f30d8: a8c20003 swl r2,0x0003(r6)
000f30dc: b8c20000 swr r2,0x0000(r6)
000f30e0: 0c03a064 jal 0x000e8190
000f30e4: 00002821 addu r5,r0,r0			#r5 = 0
000f30e8: 0803cd24 j 0x000f3490
000f30ec: 03c01021 addu r2,r30,r0
000f30f0: 00008021 addu r16,r0,r0
000f30f4: 3c028012 lui r2,0x8012
000f30f8: 24421d7c addiu r2,r2,0x1d7c
000f30fc: 24540013 addiu r20,r2,0x0013
000f3100: 2453000e addiu r19,r2,0x000e
000f3104: 00008821 addu r17,r0,r0
000f3108: 0040b821 addu r23,r2,r0
000f310c: 0240b021 addu r22,r18,r0
000f3110: 00009021 addu r18,r0,r0
000f3114: 3c15800f lui r21,0x800f
000f3118: 26b56ccc addiu r21,r21,0x6ccc			#0x800f6ccc
000f311c: aea00000 sw r0,0x0000(r21)
000f3120: 8ac20003 lwl r2,0x0003(r22)
000f3124: 9ac20000 lwr r2,0x0000(r22)
000f3128: 8ac30007 lwl r3,0x0007(r22)
000f312c: 9ac30004 lwr r3,0x0004(r22)
000f3130: 8ac4000b lwl r4,0x000b(r22)
000f3134: 9ac40008 lwr r4,0x0008(r22)
000f3138: 8ac5000f lwl r5,0x000f(r22)
000f313c: 9ac5000c lwr r5,0x000c(r22)
000f3140: aae20003 swl r2,0x0003(r23)
000f3144: bae20000 swr r2,0x0000(r23)
000f3148: aae30007 swl r3,0x0007(r23)
000f314c: bae30004 swr r3,0x0004(r23)
000f3150: aae4000b swl r4,0x000b(r23)
000f3154: bae40008 swr r4,0x0008(r23)
000f3158: aae5000f swl r5,0x000f(r23)
000f315c: bae5000c swr r5,0x000c(r23)
000f3160: 8ac20013 lwl r2,0x0013(r22)
000f3164: 9ac20010 lwr r2,0x0010(r22)
000f3168: 00000000 nop
000f316c: aae20013 swl r2,0x0013(r23)
000f3170: bae20010 swr r2,0x0010(r23)
000f3174: 3c04800f lui r4,0x800f
000f3178: 24846db4 addiu r4,r4,0x6db4
000f317c: 0c008fa8 jal 0x00023ea0
000f3180: 02242021 addu r4,r17,r4
000f3184: 3c018012 lui r1,0x8012
000f3188: 00320821 addu r1,r1,r18
000f318c: 94221d84 lhu r2,0x1d84(r1)
000f3190: 3c01800f lui r1,0x800f
000f3194: 00310821 addu r1,r1,r17
000f3198: a4226dc0 sh r2,0x6dc0(r1)
000f319c: 3c018012 lui r1,0x8012
000f31a0: 00320821 addu r1,r1,r18
000f31a4: 94221d86 lhu r2,0x1d86(r1)
000f31a8: 3c01800f lui r1,0x800f
000f31ac: 00310821 addu r1,r1,r17
000f31b0: a4226dc2 sh r2,0x6dc2(r1)
000f31b4: 3c018012 lui r1,0x8012
000f31b8: 00320821 addu r1,r1,r18
000f31bc: 94221d80 lhu r2,0x1d80(r1)
000f31c0: 3c01800f lui r1,0x800f
000f31c4: 00310821 addu r1,r1,r17
000f31c8: a4226dc8 sh r2,0x6dc8(r1)
000f31cc: 3c018012 lui r1,0x8012
000f31d0: 00320821 addu r1,r1,r18
000f31d4: 94221d82 lhu r2,0x1d82(r1)
000f31d8: 3c01800f lui r1,0x800f
000f31dc: 00310821 addu r1,r1,r17
000f31e0: a4226dca sh r2,0x6dca(r1)
000f31e4: 3c018012 lui r1,0x8012
000f31e8: 00320821 addu r1,r1,r18
000f31ec: 94221d7c lhu r2,0x1d7c(r1)
000f31f0: 3c01800f lui r1,0x800f
000f31f4: 00310821 addu r1,r1,r17
000f31f8: a4226dc4 sh r2,0x6dc4(r1)
000f31fc: 3c018012 lui r1,0x8012
000f3200: 00320821 addu r1,r1,r18
000f3204: 94221d7e lhu r2,0x1d7e(r1)
000f3208: 3c01800f lui r1,0x800f
000f320c: 00310821 addu r1,r1,r17
000f3210: a4226dc6 sh r2,0x6dc6(r1)
000f3214: 92620000 lbu r2,0x0000(r19)
000f3218: 00000000 nop
000f321c: 2442fffb addiu r2,r2,0xfffb
000f3220: 2c420018 sltiu r2,r2,0x0018
000f3224: 10400003 beq r2,r0,0x000f3234
000f3228: 00000000 nop
000f322c: 0803cc92 j 0x000f3248
000f3230: a2800000 sb r0,0x0000(r20)
000f3234: 92620000 lbu r2,0x0000(r19)
000f3238: 00000000 nop
000f323c: 10400002 beq r2,r0,0x000f3248
000f3240: 34020001 ori r2,r0,0x0001
000f3244: a2820000 sb r2,0x0000(r20)
000f3248: 26940014 addiu r20,r20,0x0014
000f324c: 26730014 addiu r19,r19,0x0014
000f3250: 26310018 addiu r17,r17,0x0018
000f3254: 26f70014 addiu r23,r23,0x0014
000f3258: 26d60014 addiu r22,r22,0x0014
000f325c: 26520014 addiu r18,r18,0x0014
000f3260: 26100001 addiu r16,r16,0x0001
000f3264: 2a020020 slti r2,r16,0x0020
000f3268: 1440ffac bne r2,r0,0x000f311c
000f326c: 26b50004 addiu r21,r21,0x0004
000f3270: 0803cd24 j 0x000f3490
000f3274: 03c01021 addu r2,r30,r0
000f3278: 00008021 addu r16,r0,r0
000f327c: 3c03800f lui r3,0x800f
000f3280: 2463687c addiu r3,r3,0x687c
000f3284: 02402021 addu r4,r18,r0
000f3288: 94820000 lhu r2,0x0000(r4)
000f328c: 24840002 addiu r4,r4,0x0002
000f3290: 26100001 addiu r16,r16,0x0001
000f3294: a4620000 sh r2,0x0000(r3)
000f3298: 2a020100 slti r2,r16,0x0100
000f329c: 1440fffa bne r2,r0,0x000f3288
000f32a0: 24630002 addiu r3,r3,0x0002
000f32a4: 0803cd24 j 0x000f3490
000f32a8: 03c01021 addu r2,r30,r0
000f32ac: 92420000 lbu r2,0x0000(r18)
000f32b0: 3c01800f lui r1,0x800f
000f32b4: a0226860 sb r2,0x6860(r1)
000f32b8: 92420001 lbu r2,0x0001(r18)
000f32bc: 3c01800f lui r1,0x800f
000f32c0: a0226864 sb r2,0x6864(r1)
000f32c4: 0c060fa8 jal 0x00183ea0
000f32c8: 02402021 addu r4,r18,r0
000f32cc: 0803cd24 j 0x000f3490
000f32d0: 03c01021 addu r2,r30,r0
000f32d4: 8e420000 lw r2,0x0000(r18)
000f32d8: 00000000 nop
000f32dc: 1040006b beq r2,r0,0x000f348c
000f32e0: 02402021 addu r4,r18,r0
000f32e4: 0c03c8a5 jal 0x000f2294
000f32e8: 00000000 nop
000f32ec: 00402021 addu r4,r2,r0
000f32f0: 8c820000 lw r2,0x0000(r4)
000f32f4: 00000000 nop
000f32f8: 1440fffa bne r2,r0,0x000f32e4
000f32fc: 03c01021 addu r2,r30,r0
000f3300: 0803cd24 j 0x000f3490
000f3304: 00000000 nop

0x83
000f3308: 2643000c addiu r3,r18,0x000c
000f330c: 94620000 lhu r2,0x0000(r3)
000f3310: 3c04800f lui r4,0x800f
000f3314: 24845b9c addiu r4,r4,0x5b9c
000f3318: 00021023 subu r2,r0,r2
000f331c: a4820000 sh r2,0x0000(r4)
000f3320: 94620002 lhu r2,0x0002(r3)
000f3324: 3c01800f lui r1,0x800f
000f3328: a4225b9e sh r2,0x5b9e(r1)
000f332c: 94620004 lhu r2,0x0004(r3)
000f3330: 3c05800f lui r5,0x800f
000f3334: 24a55c0c addiu r5,r5,0x5c0c
000f3338: 00021023 subu r2,r0,r2
000f333c: 3c01800f lui r1,0x800f
000f3340: a4225ba0 sh r2,0x5ba0(r1)
000f3344: 0c0238d6 jal 0x0008e358
000f3348: 00000000 nop
000f334c: 0803cd24 j 0x000f3490
000f3350: 03c01021 addu r2,r30,r0

0x84
000f3354: 2643000c addiu r3,r18,0x000c			#r3 = r18 + 0xc
000f3358: 94620000 lhu r2,0x0000(r3)			#load that (normally 0x0022? not normally called, I guess...)
000f335c: 3c05800f lui r5,0x800f
000f3360: 24a55c0c addiu r5,r5,0x5c0c
000f3364: a4a20000 sh r2,0x0000(r5)			#save that... there
000f3368: 94620002 lhu r2,0x0002(r3)			#normally 0x4411
000f336c: 3c01800f lui r1,0x800f
000f3370: a4225c0e sh r2,0x5c0e(r1)			#"
000f3374: 94620004 lhu r2,0x0004(r3)			#normally 0x6633
000f3378: 3c04800f lui r4,0x800f
000f337c: 24845b9c addiu r4,r4,0x5b9c			#r4 = 0x800f5b9c
000f3380: 3c01800f lui r1,0x800f
000f3384: a4225c10 sh r2,0x5c10(r1)			#save normally 0x6633 here
000f3388: 0c0238d6 jal 0x0008e358			#0008e358 - 0008e464
000f338c: 00000000 nop
000f3390: 0803cd24 j 0x000f3490
000f3394: 03c01021 addu r2,r30,r0

0x85
000f3398: 3c048011 lui r4,0x8011
000f339c: 2484aaf8 addiu r4,r4,0xaaf8			#0x8011aaf8
000f33a0: 00002821 addu r5,r0,r0			#0
000f33a4: 00003021 addu r6,r0,r0			#0
000f33a8: 3c03800b lui r3,0x800b
000f33ac: 24636698 addiu r3,r3,0x6698			#weather mod address
000f33b0: 8c620000 lw r2,0x0000(r3)			#load weather mod
000f33b4: 00003821 addu r7,r0,r0			#0
000f33b8: afa00010 sw r0,0x0010(r29)			#store 0 in stack
000f33bc: 34420002 ori r2,r2,0x0002			#include indoors mod
000f33c0: 0c009533 jal 0x000254cc			#? 0x254cc
000f33c4: ac620000 sw r2,0x0000(r3)			#save new weather mod
000f33c8: 3c048012 lui r4,0x8012
000f33cc: 24849920 addiu r4,r4,0x9920			#r4 = 0x800b6698
000f33d0: 00002821 addu r5,r0,r0			#r5 = 0
000f33d4: 0803cd08 j 0x000f3420
000f33d8: 00003021 addu r6,r0,r0			#r6 = 0

0x86
000f33dc: 3c048011 lui r4,0x8011
000f33e0: 2484aaf8 addiu r4,r4,0xaaf8			#8011aaf8
000f33e4: 00002821 addu r5,r0,r0			#r5 = 0
000f33e8: 34060001 ori r6,r0,0x0001			#r6 = 1
000f33ec: 00003821 addu r7,r0,r0			#r7 = 0
000f33f0: 3c02800b lui r2,0x800b
000f33f4: 24426698 addiu r2,r2,0x6698			#old weather mod address
000f33f8: afa00010 sw r0,0x0010(r29)			#clears something in stack. (beats me what though)
000f33fc: 8c430000 lw r3,0x0000(r2)			#Load old weather mod
000f3400: 2408fffd addiu r8,r0,0xfffd			#r8 = 0xfffffffd
000f3404: 00681824 and r3,r3,r8			#clears indoors mod
000f3408: 0c009533 jal 0x000254cc			#? 0x254cc
000f340c: ac430000 sw r3,0x0000(r2)			#Save weather mod
000f3410: 3c048012 lui r4,0x8012
000f3414: 24849920 addiu r4,r4,0x9920			#80129920
000f3418: 00002821 addu r5,r0,r0			#r5 = 0
000f341c: 34060001 ori r6,r0,0x0001			#r6 = 1
000f3420: 00003821 addu r7,r0,r0			#r7 = 0
000f3424: 0c009533 jal 0x000254cc			#? 0x254cc
000f3428: afa00010 sw r0,0x0010(r29)			#clears something in stack, again
000f342c: 0803cd24 j 0x000f3490
000f3430: 03c01021 addu r2,r30,r0

0x88
000f3434: 3c02800b lui r2,0x800b
000f3438: 24426698 addiu r2,r2,0x6698			#Weather mod location
000f343c: 8c430000 lw r3,0x0000(r2)			#load old weather mod
000f3440: 2404fffe addiu r4,r0,0xfffe			#r4 = 0x2
000f3444: 00641824 and r3,r3,r4			#remove snow mod
000f3448: 0803cd23 j 0x000f348c
000f344c: ac430000 sw r3,0x0000(r2)			#save new weather mod

0x89
000f3450: 3c03800b lui r3,0x800b
000f3454: 24636698 addiu r3,r3,0x6698			#weather mod location
000f3458: 8c620000 lw r2,0x0000(r3)			#load old weather mod
000f345c: 00000000 nop
000f3460: 34420001 ori r2,r2,0x0001			#add snow mod
000f3464: 0803cd23 j 0x000f348c			#
000f3468: ac620000 sw r2,0x0000(r3)			#save new weather mod

0x8b
000f346c: 3c04800b lui r4,0x800b
000f3470: 24846698 addiu r4,r4,0x6698			#weather mod location
000f3474: 8c830000 lw r3,0x0000(r4)			#load old weather mod
000f3478: 8642000c lh r2,0x000c(r18)			#load ? (if 0x22, end weather mod becomes 0x117f... uh, not sure what that's about)
000f347c: 3063007f andi r3,r3,0x007f			#seperate out weather flags
000f3480: 000211c0 sll r2,r2,0x07			#r2 * 0x80
000f3484: 00621825 or r3,r3,r2				#combine r2 & r3
000f3488: ac830000 sw r3,0x0000(r4)			#save new weather mod (?)

000f348c: 03c01021 addu r2,r30,r0
000f3490: 8fbf0074 lw r31,0x0074(r29)
000f3494: 8fbe0070 lw r30,0x0070(r29)
000f3498: 8fb7006c lw r23,0x006c(r29)
000f349c: 8fb60068 lw r22,0x0068(r29)
000f34a0: 8fb50064 lw r21,0x0064(r29)
000f34a4: 8fb40060 lw r20,0x0060(r29)
000f34a8: 8fb3005c lw r19,0x005c(r29)
000f34ac: 8fb20058 lw r18,0x0058(r29)
000f34b0: 8fb10054 lw r17,0x0054(r29)
000f34b4: 8fb00050 lw r16,0x0050(r29)
000f34b8: 27bd0078 addiu r29,r29,0x0078
000f34bc: 03e00008 jr r31
000f34c0: 00000000 nop