Advertisement
Gamebuster

Untitled

Jan 24th, 2022
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.64 KB | None | 0 0
  1. **************************************************************
  2. * FUNCTION *
  3. **************************************************************
  4. undefined calculateCRC()
  5. assume GQR0 = 0x0
  6. assume GQR1 = 0x0
  7. assume GQR2 = 0x0
  8. assume GQR3 = 0x0
  9. assume GQR4 = 0x0
  10. assume GQR5 = 0x0
  11. assume GQR6 = 0x0
  12. assume GQR7 = 0x0
  13. assume r13 = 0x805a7fe0
  14. assume r2 = 0x805acae0
  15. undefined r3:1 <RETURN>
  16. calculateCRC XREF[19]: zz_800171b0_:80017430(c),
  17. zz_80025480_:800258c8(c),
  18. zz_80025960_:80025db8(c),
  19. zz_80162860_:801628ec(c),
  20. zz_80162ae0_:80162bf0(c),
  21. zz_80165cd0_:80165cf8(c),
  22. zz_801660f0_:80166124(c),
  23. zz_801666f0_:80166830(c),
  24. zz_80167620_:8016770c(c),
  25. zz_801677c0_:80167864(c),
  26. zz_80169160_:801691f8(c),
  27. zz_80178170_:801781ac(c),
  28. zz_80178210_:8017827c(c),
  29. zz_80378ef0_:80378f18(c),
  30. zz_803d81d0_:803d82c0(c),
  31. zz_803f2ae0_:803f2be8(c),
  32. zz_803f2ae0_:803f2bf8(c),
  33. getMessageAttachment:803f8974(c),
  34. zz_803f9080_:803f91a0(c)
  35. 801744d0 2c 04 00 04 cmpwi r4,0x4
  36. 801744d4 7c 65 1b 78 or r5,r3,r3
  37. 801744d8 41 80 00 38 blt LAB_80174510
  38. 801744dc 88 c3 00 01 lbz r6,0x1(r3)
  39. 801744e0 38 84 ff fc subi r4,r4,0x4
  40. 801744e4 88 03 00 02 lbz r0,0x2(r3)
  41. 801744e8 38 a3 00 04 addi r5,r3,0x4
  42. 801744ec 54 c8 80 1e rlwinm r8,r6,0x10,0x0,0xf
  43. 801744f0 88 e3 00 00 lbz r7,0x0(r3)
  44. 801744f4 54 06 40 2e rlwinm r6,r0,0x8,0x0,0x17
  45. 801744f8 88 03 00 03 lbz r0,0x3(r3)
  46. 801744fc 50 e8 c0 0e rlwimi r8,r7,0x18,0x0,0x7
  47. 80174500 7d 08 33 78 or r8,r8,r6
  48. 80174504 7d 08 03 78 or r8,r8,r0
  49. 80174508 7d 09 40 f8 nor r9,r8,r8
  50. 8017450c 48 00 00 10 b LAB_8017451c
  51. LAB_80174510 XREF[1]: 801744d8(j)
  52. 80174510 3c 60 80 48 lis r3,-0x7fb8
  53. 80174514 38 63 18 d0 addi r3,r3,0x18d0
  54. 80174518 81 23 02 00 lwz r9,0x200(r3)=>DAT_80481ad0 = 690CE0EEh
  55. LAB_8017451c XREF[1]: 8017450c(j)
  56. 8017451c 2c 84 00 00 cmpwi cr1,r4,0x0
  57. 80174520 38 60 00 00 li r3,0x0
  58. 80174524 40 85 01 30 ble cr1,LAB_80174654
  59. 80174528 2c 04 00 08 cmpwi r4,0x8
  60. 8017452c 38 e4 ff f8 subi r7,r4,0x8
  61. 80174530 40 81 00 f0 ble LAB_80174620
  62. 80174534 39 00 00 00 li r8,0x0
  63. 80174538 41 84 00 18 blt cr1,LAB_80174550
  64. 8017453c 3c c0 80 00 lis r6,-0x8000
  65. 80174540 38 06 ff fe subi r0,r6,0x2
  66. 80174544 7c 04 00 00 cmpw r4,r0
  67. 80174548 41 81 00 08 bgt LAB_80174550
  68. 8017454c 39 00 00 01 li r8,0x1
  69. LAB_80174550 XREF[2]: 80174538(j), 80174548(j)
  70. 80174550 2c 08 00 00 cmpwi r8,0x0
  71. 80174554 41 82 00 cc beq LAB_80174620
  72. 80174558 38 07 00 07 addi r0,r7,0x7
  73. 8017455c 3d 80 80 48 lis r12,-0x7fb8
  74. 80174560 54 00 e8 fe rlwinm r0,r0,0x1d,0x3,0x1f
  75. 80174564 39 8c 18 d0 addi r12,r12,0x18d0
  76. 80174568 7c 09 03 a6 mtspr CTR,r0
  77. 8017456c 2c 07 00 00 cmpwi r7,0x0
  78. 80174570 40 81 00 b0 ble LAB_80174620
  79. LAB_80174574 XREF[1]: 8017461c(j)
  80. 80174574 55 20 55 ba rlwinm r0,r9,0xa,0x16,0x1d
  81. 80174578 88 e5 00 00 lbz r7,0x0(r5)
  82. 8017457c 7c 0c 00 2e lwzx r0,r12=>DAT_804818d0,r0
  83. 80174580 51 27 40 2e rlwimi r7,r9,0x8,0x0,0x17
  84. 80174584 88 c5 00 01 lbz r6,0x1(r5)
  85. 80174588 38 63 00 08 addi r3,r3,0x8
  86. 8017458c 7c e7 02 78 xor r7,r7,r0
  87. 80174590 89 65 00 02 lbz r11,0x2(r5)
  88. 80174594 54 e0 55 ba rlwinm r0,r7,0xa,0x16,0x1d
  89. 80174598 89 45 00 03 lbz r10,0x3(r5)
  90. 8017459c 7c 0c 00 2e lwzx r0,r12=>DAT_804818d0,r0
  91. 801745a0 50 e6 40 2e rlwimi r6,r7,0x8,0x0,0x17
  92. 801745a4 89 25 00 04 lbz r9,0x4(r5)
  93. 801745a8 7c c6 02 78 xor r6,r6,r0
  94. 801745ac 89 05 00 05 lbz r8,0x5(r5)
  95. 801745b0 54 c0 55 ba rlwinm r0,r6,0xa,0x16,0x1d
  96. 801745b4 88 e5 00 06 lbz r7,0x6(r5)
  97. 801745b8 7c 0c 00 2e lwzx r0,r12=>DAT_804818d0,r0
  98. 801745bc 50 cb 40 2e rlwimi r11,r6,0x8,0x0,0x17
  99. 801745c0 88 c5 00 07 lbz r6,0x7(r5)
  100. 801745c4 38 a5 00 08 addi r5,r5,0x8
  101. 801745c8 7d 6b 02 78 xor r11,r11,r0
  102. 801745cc 55 60 55 ba rlwinm r0,r11,0xa,0x16,0x1d
  103. 801745d0 7c 0c 00 2e lwzx r0,r12=>DAT_804818d0,r0
  104. 801745d4 51 6a 40 2e rlwimi r10,r11,0x8,0x0,0x17
  105. 801745d8 7d 4a 02 78 xor r10,r10,r0
  106. 801745dc 55 40 55 ba rlwinm r0,r10,0xa,0x16,0x1d
  107. 801745e0 7c 0c 00 2e lwzx r0,r12=>DAT_804818d0,r0
  108. 801745e4 51 49 40 2e rlwimi r9,r10,0x8,0x0,0x17
  109. 801745e8 7d 29 02 78 xor r9,r9,r0
  110. 801745ec 55 20 55 ba rlwinm r0,r9,0xa,0x16,0x1d
  111. 801745f0 7c 0c 00 2e lwzx r0,r12=>DAT_804818d0,r0
  112. 801745f4 51 28 40 2e rlwimi r8,r9,0x8,0x0,0x17
  113. 801745f8 7d 08 02 78 xor r8,r8,r0
  114. 801745fc 55 00 55 ba rlwinm r0,r8,0xa,0x16,0x1d
  115. 80174600 7c 0c 00 2e lwzx r0,r12=>DAT_804818d0,r0
  116. 80174604 51 07 40 2e rlwimi r7,r8,0x8,0x0,0x17
  117. 80174608 7c e7 02 78 xor r7,r7,r0
  118. 8017460c 54 e0 55 ba rlwinm r0,r7,0xa,0x16,0x1d
  119. 80174610 7c 0c 00 2e lwzx r0,r12=>DAT_804818d0,r0
  120. 80174614 50 e6 40 2e rlwimi r6,r7,0x8,0x0,0x17
  121. 80174618 7c c9 02 78 xor r9,r6,r0
  122. 8017461c 42 00 ff 58 bdnz LAB_80174574
  123. LAB_80174620 XREF[3]: 80174530(j), 80174554(j),
  124. 80174570(j)
  125. 80174620 3c c0 80 48 lis r6,-0x7fb8
  126. 80174624 7c 03 20 50 subf r0,r3,r4
  127. 80174628 38 c6 18 d0 addi r6,r6,0x18d0
  128. 8017462c 7c 09 03 a6 mtspr CTR,r0
  129. 80174630 7c 03 20 00 cmpw r3,r4
  130. 80174634 40 80 00 20 bge LAB_80174654
  131. LAB_80174638 XREF[1]: 80174650(j)
  132. 80174638 55 20 55 ba rlwinm r0,r9,0xa,0x16,0x1d
  133. 8017463c 88 65 00 00 lbz r3,0x0(r5)
  134. 80174640 7c 06 00 2e lwzx r0,r6=>DAT_804818d0,r0
  135. 80174644 51 23 40 2e rlwimi r3,r9,0x8,0x0,0x17
  136. 80174648 38 a5 00 01 addi r5,r5,0x1
  137. 8017464c 7c 69 02 78 xor r9,r3,r0
  138. 80174650 42 00 ff e8 bdnz LAB_80174638
  139. LAB_80174654 XREF[2]: 80174524(j), 80174634(j)
  140. 80174654 7d 23 48 f8 nor r3,r9,r9
  141. 80174658 4e 80 00 20 blr
  142.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement