Buy From Fitting Room
Jump to navigation
Jump to search
8013702c: 3c02801d lui r2,0x801d 80137030: 9042d788 lbu r2,-0x2878(r2) # numFormationUnits = *0x801cd788 80137034: 27bdffd0 addiu r29,r29,-0x0030 80137038: afb30024 sw r19,0x0024(r29) 8013703c: 00009821 addu r19,r0,r0 # count = 0 80137040: afbf002c sw r31,0x002c(r29) 80137044: afb40028 sw r20,0x0028(r29) 80137048: afb20020 sw r18,0x0020(r29) 8013704c: afb1001c sw r17,0x001c(r29) 80137050: 18400021 blez r2,0x801370d8 # if (numFormationUnits <= 0) return; 80137054: afb00018 sw r16,0x0018(r29) 80137058: 3c14801d lui r20,0x801d 8013705c: 2694d43c addiu r20,r20,-0x2bc4 # reserveItemsPtr = 0x801cd43c 80137060: 3c12801d lui r18,0x801d 80137064: 2652d5ec addiu r18,r18,-0x2a14 # formationUnitPtr = baseFormationUnitPtr (0x801cd5ec) # do { 80137068: 00008821 addu r17,r0,r0 # innerCount = 0 8013706c: 02808021 addu r16,r20,r0 # reserveItemsUnitPtr = reserveItemsPtr # do { 80137070: 8e430000 lw r3,0x0000(r18) # formationUnit = *formationUnitPtr 80137074: 00111040 sll r2,r17,0x01 # innerCount * 2 80137078: 00431821 addu r3,r2,r3 # formationUnit + (innerCount * 2) 8013707c: 94620054 lhu r2,0x0054(r3) # equipValue = *(formationUnit + (innerCount * 2) + 0x54) 80137080: 00000000 nop 80137084: 00021383 sra r2,r2,0x0e # equipValue >> 14 80137088: 10400005 beq r2,r0,0x801370a0 8013708c: 26310001 addiu r17,r17,0x0001 # innerCount = innerCount + 1 # if ((equipValue >> 14) != 0) { 80137090: 94620054 lhu r2,0x0054(r3) # equipValue 80137094: 00000000 nop 80137098: 304203ff andi r2,r2,0x03ff # equipValue & 0x03ff 8013709c: a4620054 sh r2,0x0054(r3) # *(&equipValue) = (equipValue & 0x03ff) # } 801370a0: 86040000 lh r4,0x0000(r16) # itemID = *reserveItemsUnitPtr 801370a4: 0c04822e jal 0x801208b8 # Modify Item Quantity (itemID, 1); 801370a8: 34050001 ori r5,r0,0x0001 801370ac: a6000000 sh r0,0x0000(r16) # *reserveItemsUnitPtr = 0 801370b0: 2a220005 slti r2,r17,0x0005 801370b4: 1440ffee bne r2,r0,0x80137070 # } while (innerCount < 5); 801370b8: 26100002 addiu r16,r16,0x0002 # reserveItemsUnitPtr = reserveItemsUnitPtr + 2 801370bc: 2694000a addiu r20,r20,0x000a # reserveItemsPtr = reserveItemsPtr + 10 801370c0: 3c02801d lui r2,0x801d 801370c4: 9042d788 lbu r2,-0x2878(r2) # numFormationUnits 801370c8: 26730001 addiu r19,r19,0x0001 # count = count + 1 801370cc: 0262102a slt r2,r19,r2 801370d0: 1440ffe5 bne r2,r0,0x80137068 801370d4: 26520004 addiu r18,r18,0x0004 # formationUnitPtr = formationUnitPtr + 4 // Go to next formation unit # } while (count < numFormationUnits); 801370d8: 8fbf002c lw r31,0x002c(r29) 801370dc: 8fb40028 lw r20,0x0028(r29) 801370e0: 8fb30024 lw r19,0x0024(r29) 801370e4: 8fb20020 lw r18,0x0020(r29) 801370e8: 8fb1001c lw r17,0x001c(r29) 801370ec: 8fb00018 lw r16,0x0018(r29) 801370f0: 27bd0030 addiu r29,r29,0x0030 801370f4: 03e00008 jr r31 801370f8: 00000000 nop