luckytyphlosion

sub_8001D86

Feb 26th, 2019
207
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. thumb_local_start
  2. sub_8001D86:
  3. ldr r2, dword_8001FFC // =0xf0f0f0f0
  4. mov r9, r2
  5. ldr r2, dword_8001FF8 // =0xff00ff00
  6. mov r8, r2
  7. ldr r0, [r4]
  8. lsr r3, r2, #8
  9. and r2, r0
  10. and r3, r0
  11. lsr r0, r2, #8
  12. lsl r3, r3, #8
  13. orr r0, r3
  14. mov r2, #0x10
  15. ror r0, r2
  16. mov r2, r9
  17. lsr r3, r2, #4
  18. and r2, r0
  19. and r3, r0
  20. lsr r0, r2, #4
  21. lsl r3, r3, #4
  22. orr r0, r3
  23. str r0, [r5]
  24. ldr r0, [r4,#4]
  25. mov r2, r8
  26. lsr r3, r2, #8
  27. and r2, r0
  28. and r3, r0
  29. lsr r0, r2, #8
  30. lsl r3, r3, #8
  31. orr r0, r3
  32. mov r2, #0x10
  33. ror r0, r2
  34. mov r2, r9
  35. lsr r3, r2, #4
  36. and r2, r0
  37. and r3, r0
  38. lsr r0, r2, #4
  39. lsl r3, r3, #4
  40. orr r0, r3
  41. str r0, [r5,#4]
  42. ldr r0, [r4,#8]
  43. mov r2, r8
  44. lsr r3, r2, #8
  45. and r2, r0
  46. and r3, r0
  47. lsr r0, r2, #8
  48. lsl r3, r3, #8
  49. orr r0, r3
  50. mov r2, #0x10
  51. ror r0, r2
  52. mov r2, r9
  53. lsr r3, r2, #4
  54. and r2, r0
  55. and r3, r0
  56. lsr r0, r2, #4
  57. lsl r3, r3, #4
  58. orr r0, r3
  59. str r0, [r5,#8]
  60. ldr r0, [r4,#0xc]
  61. mov r2, r8
  62. lsr r3, r2, #8
  63. and r2, r0
  64. and r3, r0
  65. lsr r0, r2, #8
  66. lsl r3, r3, #8
  67. orr r0, r3
  68. mov r2, #0x10
  69. ror r0, r2
  70. mov r2, r9
  71. lsr r3, r2, #4
  72. and r2, r0
  73. and r3, r0
  74. lsr r0, r2, #4
  75. lsl r3, r3, #4
  76. orr r0, r3
  77. str r0, [r5,#0xc]
  78. ldr r0, [r4,#0x10]
  79. mov r2, r8
  80. lsr r3, r2, #8
  81. and r2, r0
  82. and r3, r0
  83. lsr r0, r2, #8
  84. lsl r3, r3, #8
  85. orr r0, r3
  86. mov r2, #0x10
  87. ror r0, r2
  88. mov r2, r9
  89. lsr r3, r2, #4
  90. and r2, r0
  91. and r3, r0
  92. lsr r0, r2, #4
  93. lsl r3, r3, #4
  94. orr r0, r3
  95. str r0, [r5,#0x10]
  96. ldr r0, [r4,#0x14]
  97. mov r2, r8
  98. lsr r3, r2, #8
  99. and r2, r0
  100. and r3, r0
  101. lsr r0, r2, #8
  102. lsl r3, r3, #8
  103. orr r0, r3
  104. mov r2, #0x10
  105. ror r0, r2
  106. mov r2, r9
  107. lsr r3, r2, #4
  108. and r2, r0
  109. and r3, r0
  110. lsr r0, r2, #4
  111. lsl r3, r3, #4
  112. orr r0, r3
  113. str r0, [r5,#0x14]
  114. ldr r0, [r4,#0x18]
  115. mov r2, r8
  116. lsr r3, r2, #8
  117. and r2, r0
  118. and r3, r0
  119. lsr r0, r2, #8
  120. lsl r3, r3, #8
  121. orr r0, r3
  122. mov r2, #0x10
  123. ror r0, r2
  124. mov r2, r9
  125. lsr r3, r2, #4
  126. and r2, r0
  127. and r3, r0
  128. lsr r0, r2, #4
  129. lsl r3, r3, #4
  130. orr r0, r3
  131. str r0, [r5,#0x18]
  132. ldr r0, [r4,#0x1c]
  133. mov r2, r8
  134. lsr r3, r2, #8
  135. and r2, r0
  136. and r3, r0
  137. lsr r0, r2, #8
  138. lsl r3, r3, #8
  139. orr r0, r3
  140. mov r2, #0x10
  141. ror r0, r2
  142. mov r2, r9
  143. lsr r3, r2, #4
  144. and r2, r0
  145. and r3, r0
  146. lsr r0, r2, #4
  147. lsl r3, r3, #4
  148. orr r0, r3
  149. str r0, [r5,#0x1c]
  150. mov pc, lr
  151. thumb_func_end sub_8001D86
RAW Paste Data