iAmHooker

Untitled

Nov 12th, 2012
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. .text:821FDFA8 # void __cdecl Cbuf_AddText(int localClientNum, const char *text)
  2. .text:821FDFA8 _Cbuf_AddText__YAXHPBD_Z: # CODE XREF: CG_VoiceChat_f+CCp
  3. .text:821FDFA8 # CG_TeamVoiceChat_f+CCp ...
  4. .text:821FDFA8 localClientNum = bl
  5. .text:821FDFA8 text = ah
  6. .text:821FDFA8 mr r9, r4
  7. .text:821FDFAC lis r11, ((cmd_textArray+0x10000)@h)
  8. .text:821FDFB0 li r10, 0
  9. .text:821FDFB4 addi r11, r11, -0x48EC # cmd_textArray
  10. .text:821FDFB8 lbz r8, 0(r9)
  11. .text:821FDFBC cmplwi cr6, r8, 0
  12. .text:821FDFC0 slwi r8, r3, 1
  13. .text:821FDFC4 add r8, r3, r8
  14. .text:821FDFC8 slwi r8, r8, 2
  15. .text:821FDFCC add r7, r8, r11
  16. .text:821FDFD0 beq cr6, loc_821FDFE4
  17. .text:821FDFD4
  18. .text:821FDFD4 loc_821FDFD4: # CODE XREF: Cbuf_AddText(int,char const *)+38j
  19. .text:821FDFD4 addi r10, r10, 1
  20. .text:821FDFD8 lbzx r11, r10, r9
  21. .text:821FDFDC cmplwi cr6, r11, 0
  22. .text:821FDFE0 bne cr6, loc_821FDFD4
  23. .text:821FDFE4
  24. .text:821FDFE4 loc_821FDFE4: # CODE XREF: Cbuf_AddText(int,char const *)+28j
  25. .text:821FDFE4 lwz r6, 8(r7)
  26. .text:821FDFE8 lwz r11, 4(r7)
  27. .text:821FDFEC add r8, r6, r10
  28. .text:821FDFF0 cmpw cr6, r8, r11
  29. .text:821FDFF4 blt cr6, loc_821FE008
  30. .text:821FDFF8 lis r11, aCbuf_addtextOv@h # "Cbuf_AddText: overflow\n"
  31. .text:821FDFFC li r3, 0x10 # channel
  32. .text:821FE000 addi r4, r11, aCbuf_addtextOv@l # "Cbuf_AddText: overflow\n"
  33. .text:821FE004 b _Com_Printf__YAXHPBDZZ # Com_Printf(int,char const *,...)
  34. .text:821FE008 # ---------------------------------------------------------------------------
  35. .text:821FE008
  36. .text:821FE008 loc_821FE008: # CODE XREF: Cbuf_AddText(int,char const *)+4Cj
  37. .text:821FE008 lwz r8, 0(r7)
  38. .text:821FE00C addi r11, r10, 1
  39. .text:821FE010 add r8, r8, r6
  40. .text:821FE014 cmplwi cr6, r11, 0
  41. .text:821FE018 beq cr6, loc_821FE038
  42. .text:821FE01C
  43. .text:821FE01C loc_821FE01C: # CODE XREF: Cbuf_AddText(int,char const *)+8Cj
  44. .text:821FE01C lbz r6, 0(r9)
  45. .text:821FE020 addi r11, r11, -1
  46. .text:821FE024 addi r9, r9, 1
  47. .text:821FE028 cmplwi cr6, r11, 0
  48. .text:821FE02C stb r6, 0(r8)
  49. .text:821FE030 addi r8, r8, 1
  50. .text:821FE034 bne cr6, loc_821FE01C
  51. .text:821FE038
  52. .text:821FE038 loc_821FE038: # CODE XREF: Cbuf_AddText(int,char const *)+70j
  53. .text:821FE038 lwz r11, 8(r7)
  54. .text:821FE03C add r11, r11, r10
  55. .text:821FE040 stw r11, 8(r7)
  56. .text:821FE044 blr
  57. .text:821FE044 # End of function Cbuf_AddText(int,char const *)
  58. .text:821FE044
  59. .text:821FE048 # .rename _Cbuf_InsertText__YAXHPBD_Z, "?Cbuf_InsertText@@YAXHPBD@Z"
Add Comment
Please, Sign In to add comment