{"type": "func", "start": 6442832288, "end": 6442832391, "name": "cocos2d::CCMotionStreak::tintWithColor", "pseudocode": "// \n// cocos2d::CCMotionStreak::tintWithColor from 0x18005d1a0 to 0x18005d207 (103 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3144\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall cocos2d::CCMotionStreak::tintWithColor(\n        cocos2d::CCMotionStreak *this,\n        struct cocos2d::_ccColor3B *a2)\n{\n  unsigned int v4; // r8d\n  __int64 result; // rax\n  GLubyte *v6; // rdx\n\n  ((void (__fastcall *)(cocos2d::CCRGBAProtocol *))this->setColor)(&this->cocos2d::CCRGBAProtocol);\n  v4 = 0;\n  result = 2 * this->m_uNuPoints;\n  if ( (_DWORD)result )\n  {\n    do\n    {\n      v6 = &this->m_pColorPointer[4 * v4++];\n      *(_WORD *)v6 = *(_WORD *)&a2->r;\n      v6[2] = a2->b;\n      result = 2 * this->m_uNuPoints;\n    }\n    while ( v4 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCMotionStreak::tintWithColor from 0x18005d1a0 to 0x18005d207 (103 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3144\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005d1a0\npush    rdi                                                            ; +0x5, 0x18005d1a5\nsub     rsp, 20h                                                       ; +0x6, 0x18005d1a6\nmov     rbx, rcx                                                       ; +0xa, 0x18005d1aa\nmov     rdi, rdx                                                       ; +0xd, 0x18005d1ad\nadd     rcx, 140h                                                      ; +0x10, 0x18005d1b0\nmov     rax, [rcx]                                                     ; +0x17, 0x18005d1b7\ncall    qword ptr [rax]                                                ; +0x1a, 0x18005d1ba\nmov     eax, [rbx+188h]                                                ; +0x1c, 0x18005d1bc\nxor     r8d, r8d                                                       ; +0x22, 0x18005d1c2\nadd     eax, eax                                                       ; +0x25, 0x18005d1c5\njz      short loc_18005D1FC                                            ; +0x27, 0x18005d1c7\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x18005d1c9\nmovzx   eax, word ptr [rdi]                                            ; +0x30, 0x18005d1d0\nlea     edx, ds:0[r8*4]                                                ; +0x33, 0x18005d1d3\nadd     rdx, [rbx+1A8h]                                                ; +0x3b, 0x18005d1db\ninc     r8d                                                            ; +0x42, 0x18005d1e2\nmov     [rdx], ax                                                      ; +0x45, 0x18005d1e5\nmovzx   eax, byte ptr [rdi+2]                                          ; +0x48, 0x18005d1e8\nmov     [rdx+2], al                                                    ; +0x4c, 0x18005d1ec\nmov     eax, [rbx+188h]                                                ; +0x4f, 0x18005d1ef\nadd     eax, eax                                                       ; +0x55, 0x18005d1f5\ncmp     r8d, eax                                                       ; +0x57, 0x18005d1f7\njb      short loc_18005D1D0                                            ; +0x5a, 0x18005d1fa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5c, 0x18005d1fc\nadd     rsp, 20h                                                       ; +0x61, 0x18005d201\npop     rdi                                                            ; +0x65, 0x18005d205\nretn                                                                   ; +0x66, 0x18005d206", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b3144"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}