{"type": "func", "start": 6442840576, "end": 6442840679, "name": "cocos2d::CCMotionStreak::tintWithColor", "pseudocode": "// \n// cocos2d::CCMotionStreak::tintWithColor from 0x18005f200 to 0x18005f267 (103 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd3fc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:50 +0000\n// \n\n__int64 __fastcall cocos2d::CCMotionStreak::tintWithColor(__int64 a1, __int64 a2)\n{\n  unsigned int v4; // r8d\n  __int64 result; // rax\n  __int64 v6; // rdx\n\n  (**(void (__fastcall ***)(__int64))(a1 + 320))(a1 + 320);\n  v4 = 0;\n  result = (unsigned int)(2 * *(_DWORD *)(a1 + 392));\n  if ( (_DWORD)result )\n  {\n    do\n    {\n      v6 = *(_QWORD *)(a1 + 424) + 4 * v4++;\n      *(_WORD *)v6 = *(_WORD *)a2;\n      *(_BYTE *)(v6 + 2) = *(_BYTE *)(a2 + 2);\n      result = (unsigned int)(2 * *(_DWORD *)(a1 + 392));\n    }\n    while ( v4 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCMotionStreak::tintWithColor from 0x18005f200 to 0x18005f267 (103 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd3fc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:50 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005f200\npush    rdi                                                            ; +0x5, 0x18005f205\nsub     rsp, 20h                                                       ; +0x6, 0x18005f206\nmov     rbx, rcx                                                       ; +0xa, 0x18005f20a\nmov     rdi, rdx                                                       ; +0xd, 0x18005f20d\nadd     rcx, 140h                                                      ; +0x10, 0x18005f210\nmov     rax, [rcx]                                                     ; +0x17, 0x18005f217\ncall    qword ptr [rax]                                                ; +0x1a, 0x18005f21a\nmov     eax, [rbx+188h]                                                ; +0x1c, 0x18005f21c\nxor     r8d, r8d                                                       ; +0x22, 0x18005f222\nadd     eax, eax                                                       ; +0x25, 0x18005f225\njz      short loc_18005F25C                                            ; +0x27, 0x18005f227\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x18005f229\nmovzx   eax, word ptr [rdi]                                            ; +0x30, 0x18005f230\nlea     edx, ds:0[r8*4]                                                ; +0x33, 0x18005f233\nadd     rdx, [rbx+1A8h]                                                ; +0x3b, 0x18005f23b\ninc     r8d                                                            ; +0x42, 0x18005f242\nmov     [rdx], ax                                                      ; +0x45, 0x18005f245\nmovzx   eax, byte ptr [rdi+2]                                          ; +0x48, 0x18005f248\nmov     [rdx+2], al                                                    ; +0x4c, 0x18005f24c\nmov     eax, [rbx+188h]                                                ; +0x4f, 0x18005f24f\nadd     eax, eax                                                       ; +0x55, 0x18005f255\ncmp     r8d, eax                                                       ; +0x57, 0x18005f257\njb      short loc_18005F230                                            ; +0x5a, 0x18005f25a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5c, 0x18005f25c\nadd     rsp, 20h                                                       ; +0x61, 0x18005f261\npop     rdi                                                            ; +0x65, 0x18005f265\nretn                                                                   ; +0x66, 0x18005f266", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bd3fc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}