{"type": "func", "start": 4297113632, "end": 4297113779, "name": "GJColorSetupLayer::updateSpriteColor", "pseudocode": "// \n// GJColorSetupLayer::updateSpriteColor from 0x10020c020 to 0x10020c0b3 (147 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall GJColorSetupLayer::updateSpriteColor(\n        GJColorSetupLayer *a1,\n        ColorChannelSprite *a2,\n        cocos2d::CCLabelBMFont *a3,\n        int a4)\n{\n  char v4; // al\n  ColorAction *ColorAction; // r15\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n\n  ColorAction = nullptr;\n  v8 = (cocos2d::CCString *)sub_1007AB580(\"Col %i\", v4);\n  CString = cocos2d::CCString::getCString(v8);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a3->setString)(a3, CString);\n  if ( GJEffectManager::colorExists(a1->m_settingsObject->m_effectManager, a4) )\n    ColorAction = GJEffectManager::getColorAction(a1->m_settingsObject->m_effectManager, a4);\n  ColorChannelSprite::updateValues(a2, ColorAction);\n}", "assembly": "; \n; GJColorSetupLayer::updateSpriteColor from 0x10020c020 to 0x10020c0b3 (147 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x10020c020\nmov     rbp, rsp                                                       ; +0x1, 0x10020c021\npush    r15                                                            ; +0x4, 0x10020c024\npush    r14                                                            ; +0x6, 0x10020c026\npush    r13                                                            ; +0x8, 0x10020c028\npush    r12                                                            ; +0xa, 0x10020c02a\npush    rbx                                                            ; +0xc, 0x10020c02c\npush    rax; char                                                      ; +0xd, 0x10020c02d\nmov     r14d, ecx                                                      ; +0xe, 0x10020c02e\nmov     r13, rdx                                                       ; +0x11, 0x10020c031\nmov     rbx, rsi                                                       ; +0x14, 0x10020c034\nmov     r12, rdi                                                       ; +0x17, 0x10020c037\nlea     rdi, aColI; \"Col %i\"                                           ; +0x1a, 0x10020c03a\nxor     r15d, r15d                                                     ; +0x21, 0x10020c041\nmov     esi, ecx                                                       ; +0x24, 0x10020c044\nxor     eax, eax                                                       ; +0x26, 0x10020c046\ncall    sub_1007AB580                                                  ; +0x28, 0x10020c048\nmov     rdi, rax                                                       ; +0x2d, 0x10020c04d\ncall    cocos2d__CCString__getCString                                  ; +0x30, 0x10020c050\nmov     rcx, [r13+0]                                                   ; +0x35, 0x10020c055\nmov     rdi, r13                                                       ; +0x39, 0x10020c059\nmov     rsi, rax                                                       ; +0x3c, 0x10020c05c\ncall    qword ptr [rcx+390h]                                           ; +0x3f, 0x10020c05f\nmov     rax, [r12+288h]                                                ; +0x45, 0x10020c065\nmov     rdi, [rax+140h]                                                ; +0x4d, 0x10020c06d\nmov     esi, r14d                                                      ; +0x54, 0x10020c074\ncall    GJEffectManager__colorExists                                   ; +0x57, 0x10020c077\ntest    al, al                                                         ; +0x5c, 0x10020c07c\njz      short loc_10020C09A                                            ; +0x5e, 0x10020c07e\nmov     rax, [r12+288h]                                                ; +0x60, 0x10020c080\nmov     rdi, [rax+140h]                                                ; +0x68, 0x10020c088\nmov     esi, r14d                                                      ; +0x6f, 0x10020c08f\ncall    GJEffectManager__getColorAction                                ; +0x72, 0x10020c092\nmov     r15, rax                                                       ; +0x77, 0x10020c097\nmov     rdi, rbx                                                       ; +0x7a, 0x10020c09a\nmov     rsi, r15                                                       ; +0x7d, 0x10020c09d\nadd     rsp, 8                                                         ; +0x80, 0x10020c0a0\npop     rbx                                                            ; +0x84, 0x10020c0a4\npop     r12                                                            ; +0x85, 0x10020c0a5\npop     r13                                                            ; +0x87, 0x10020c0a7\npop     r14                                                            ; +0x89, 0x10020c0a9\npop     r15                                                            ; +0x8b, 0x10020c0ab\npop     rbp                                                            ; +0x8d, 0x10020c0ad\njmp     ColorChannelSprite__updateValues                               ; +0x8e, 0x10020c0ae", "xrefs": [], "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"}