{"type": "func", "start": 5372244960, "end": 5372245247, "name": "GJColorSetupLayer::updateSpriteColors", "pseudocode": "// \n// GJColorSetupLayer::updateSpriteColors from 0x14035f3e0 to 0x14035f4ff (287 bytes)\n// \n// 7 xrefs:\n// > GJColorSetupLayer::init @ 0x14035eff7\n// > GJColorSetupLayer::init @ 0x14035f3a3\n// > GJColorSetupLayer::colorSelectClosed @ 0x14035f797\n// > GJColorSetupLayer::showPage @ 0x14035f7fb\n// > <???> @ 0x1408ba348\n// > <???> @ 0x1408ba358\n// > <???> @ 0x140921278\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:30:52 +0000\n// \n\nunsigned int __fastcall GJColorSetupLayer::updateSpriteColors(__int64 a1)\n{\n  int v2; // esi\n  unsigned int v3; // ebx\n  unsigned int result; // eax\n  int v5; // r15d\n  struct cocos2d::CCObject *v6; // rsi\n  struct cocos2d::CCObject *v7; // r14\n  __int64 v8; // rax\n  __int64 v9; // rdx\n  void (__fastcall *v10)(__int64, __int64); // r8\n  __int64 v11; // rdx\n  __int64 v12; // rdx\n\n  v2 = *(_DWORD *)(a1 + 720) * *(_DWORD *)(a1 + 724);\n  v3 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 712));\n  if ( result )\n  {\n    v5 = v2 + 1;\n    do\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 712), v3);\n      v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 704), v3);\n      v8 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 504LL))(v6);\n      v10 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 936LL);\n      if ( (int)(v5 + v3) > 999 )\n      {\n        v10(v8, 0);\n        (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, 0);\n        (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v7 + 336LL))(v7, 0);\n      }\n      else\n      {\n        LOBYTE(v9) = 1;\n        v10(v8, v9);\n        LOBYTE(v11) = 1;\n        (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v6 + 336LL))(v6, v11);\n        LOBYTE(v12) = 1;\n        (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 336LL))(v7, v12);\n        GJColorSetupLayer::updateSpriteColor(a1, v6, v7, v5 + v3);\n      }\n      ++v3;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 712));\n    }\n    while ( v3 < result );\n  }\n  return result;\n}", "assembly": "; \n; GJColorSetupLayer::updateSpriteColors from 0x14035f3e0 to 0x14035f4ff (287 bytes)\n; \n; 7 xrefs:\n; > GJColorSetupLayer::init @ 0x14035eff7\n; > GJColorSetupLayer::init @ 0x14035f3a3\n; > GJColorSetupLayer::colorSelectClosed @ 0x14035f797\n; > GJColorSetupLayer::showPage @ 0x14035f7fb\n; > <???> @ 0x1408ba348\n; > <???> @ 0x1408ba358\n; > <???> @ 0x140921278\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:30:52 +0000\n; \npush    rbx                                                            ; +0x0, 0x14035f3e0\npush    rsi                                                            ; +0x2, 0x14035f3e2\npush    rdi                                                            ; +0x3, 0x14035f3e3\nsub     rsp, 20h                                                       ; +0x4, 0x14035f3e4\nmov     esi, [rcx+2D4h]                                                ; +0x8, 0x14035f3e8\nmov     rdi, rcx                                                       ; +0xe, 0x14035f3ee\nimul    esi, [rcx+2D0h]                                                ; +0x11, 0x14035f3f1\nxor     ebx, ebx                                                       ; +0x18, 0x14035f3f8\nmov     rcx, [rcx+2C8h]                                                ; +0x1a, 0x14035f3fa\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x21, 0x14035f401\ntest    eax, eax                                                       ; +0x27, 0x14035f407\njz      loc_14035F4F7                                                  ; +0x29, 0x14035f409\nmov     [rsp+38h+arg_0], rbp                                           ; +0x2f, 0x14035f40f\nmov     [rsp+38h+arg_8], r14                                           ; +0x34, 0x14035f414\nmov     [rsp+38h+arg_10], r15                                          ; +0x39, 0x14035f419\nlea     r15d, [rsi+1]                                                  ; +0x3e, 0x14035f41e\nnop     dword ptr [rax+00h]                                            ; +0x42, 0x14035f422\nnop     word ptr [rax+rax+00000000h]                                   ; +0x46, 0x14035f426\nmov     rcx, [rdi+2C8h]                                                ; +0x50, 0x14035f430\nmov     edx, ebx                                                       ; +0x57, 0x14035f437\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x14035f439\nmov     rcx, [rdi+2C0h]                                                ; +0x5f, 0x14035f43f\nmov     edx, ebx                                                       ; +0x66, 0x14035f446\nmov     rsi, rax                                                       ; +0x68, 0x14035f448\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x6b, 0x14035f44b\nmov     rcx, [rsi]                                                     ; +0x71, 0x14035f451\nmov     r14, rax                                                       ; +0x74, 0x14035f454\nmov     rdx, [rcx+1F8h]                                                ; +0x77, 0x14035f457\nmov     rcx, rsi                                                       ; +0x7e, 0x14035f45e\ncall    rdx                                                            ; +0x81, 0x14035f461\nlea     ebp, [r15+rbx]                                                 ; +0x83, 0x14035f463\nmov     rcx, [rax]                                                     ; +0x87, 0x14035f467\nmov     r8, [rcx+3A8h]                                                 ; +0x8a, 0x14035f46a\nmov     rcx, rax                                                       ; +0x91, 0x14035f471\ncmp     ebp, 3E7h                                                      ; +0x94, 0x14035f474\njg      short loc_14035F4B0                                            ; +0x9a, 0x14035f47a\nmov     dl, 1                                                          ; +0x9c, 0x14035f47c\ncall    r8                                                             ; +0x9e, 0x14035f47e\nmov     rax, [rsi]                                                     ; +0xa1, 0x14035f481\nmov     dl, 1                                                          ; +0xa4, 0x14035f484\nmov     rcx, rsi                                                       ; +0xa6, 0x14035f486\ncall    qword ptr [rax+150h]                                           ; +0xa9, 0x14035f489\nmov     rax, [r14]                                                     ; +0xaf, 0x14035f48f\nmov     dl, 1                                                          ; +0xb2, 0x14035f492\nmov     rcx, r14                                                       ; +0xb4, 0x14035f494\ncall    qword ptr [rax+150h]                                           ; +0xb7, 0x14035f497\nmov     r9d, ebp                                                       ; +0xbd, 0x14035f49d\nmov     r8, r14                                                        ; +0xc0, 0x14035f4a0\nmov     rdx, rsi                                                       ; +0xc3, 0x14035f4a3\nmov     rcx, rdi                                                       ; +0xc6, 0x14035f4a6\ncall    GJColorSetupLayer__updateSpriteColor                           ; +0xc9, 0x14035f4a9\njmp     short loc_14035F4D1                                            ; +0xce, 0x14035f4ae\nxor     edx, edx                                                       ; +0xd0, 0x14035f4b0\ncall    r8                                                             ; +0xd2, 0x14035f4b2\nmov     rax, [rsi]                                                     ; +0xd5, 0x14035f4b5\nxor     edx, edx                                                       ; +0xd8, 0x14035f4b8\nmov     rcx, rsi                                                       ; +0xda, 0x14035f4ba\ncall    qword ptr [rax+150h]                                           ; +0xdd, 0x14035f4bd\nmov     rax, [r14]                                                     ; +0xe3, 0x14035f4c3\nxor     edx, edx                                                       ; +0xe6, 0x14035f4c6\nmov     rcx, r14                                                       ; +0xe8, 0x14035f4c8\ncall    qword ptr [rax+150h]                                           ; +0xeb, 0x14035f4cb\nmov     rcx, [rdi+2C8h]                                                ; +0xf1, 0x14035f4d1\ninc     ebx                                                            ; +0xf8, 0x14035f4d8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xfa, 0x14035f4da\ncmp     ebx, eax                                                       ; +0x100, 0x14035f4e0\njb      loc_14035F430                                                  ; +0x102, 0x14035f4e2\nmov     r15, [rsp+38h+arg_10]                                          ; +0x108, 0x14035f4e8\nmov     r14, [rsp+38h+arg_8]                                           ; +0x10d, 0x14035f4ed\nmov     rbp, [rsp+38h+arg_0]                                           ; +0x112, 0x14035f4f2\nadd     rsp, 20h                                                       ; +0x117, 0x14035f4f7\npop     rdi                                                            ; +0x11b, 0x14035f4fb\npop     rsi                                                            ; +0x11c, 0x14035f4fc\npop     rbx                                                            ; +0x11d, 0x14035f4fd\nretn                                                                   ; +0x11e, 0x14035f4fe", "xrefs": ["GJColorSetupLayer::init @ 0x14035eff7", "GJColorSetupLayer::init @ 0x14035f3a3", "GJColorSetupLayer::colorSelectClosed @ 0x14035f797", "GJColorSetupLayer::showPage @ 0x14035f7fb", "<???> @ 0x1408ba348", "<???> @ 0x1408ba358", "<???> @ 0x140921278"], "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"}