{"type": "func", "start": 4296994752, "end": 4296994934, "name": "GJColorSetupLayer::onColor", "pseudocode": "// \n// GJColorSetupLayer::onColor from 0x1001eefc0 to 0x1001ef076 (182 bytes)\n// \n// 1 xrefs:\n// > GJColorSetupLayer::init @ 0x1001eec09\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 12:26:32 +0000\n// \n\n__int64 __fastcall GJColorSetupLayer::onColor(__int64 a1, __int64 a2, double a3)\n{\n  int v4; // r14d\n  int v5; // eax\n  void (__fastcall ***v6)(_QWORD, _QWORD); // rdi\n  __int64 ColorAction; // rax\n  __int64 v9; // rax\n\n  v4 = *(_DWORD *)(a1 + 720) * *(_DWORD *)(a1 + 724);\n  v5 = v4 + (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( *(_BYTE *)(a1 + 752) == 1 )\n  {\n    *(_DWORD *)(a1 + 768) = v5;\n    v6 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 760);\n    if ( v6 )\n    {\n      if ( v5 > 0 )\n        (**v6)(v6, (unsigned int)v5);\n    }\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n  }\n  else\n  {\n    ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(*(_QWORD *)(a1 + 680) + 320LL), (unsigned int)v5);\n    v9 = ColorSelectPopup::create_3(ColorAction, a3);\n    *(_QWORD *)(v9 + 1120) = a1 + 664;\n    *(_DWORD *)(v9 + 592) = 106;\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);\n  }\n}", "assembly": "; \n; GJColorSetupLayer::onColor from 0x1001eefc0 to 0x1001ef076 (182 bytes)\n; \n; 1 xrefs:\n; > GJColorSetupLayer::init @ 0x1001eec09\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 12:26:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001eefc0\nmov     rbp, rsp                                                       ; +0x1, 0x1001eefc1\npush    r14                                                            ; +0x4, 0x1001eefc4\npush    rbx                                                            ; +0x6, 0x1001eefc6\nmov     rbx, rdi                                                       ; +0x7, 0x1001eefc7\nmov     r14d, [rdi+2D4h]                                               ; +0xa, 0x1001eefca\nimul    r14d, [rdi+2D0h]                                               ; +0x11, 0x1001eefd1\nmov     rax, [rsi]                                                     ; +0x19, 0x1001eefd9\nmov     rdi, rsi                                                       ; +0x1c, 0x1001eefdc\ncall    qword ptr [rax+40h]                                            ; +0x1f, 0x1001eefdf\nadd     eax, r14d                                                      ; +0x22, 0x1001eefe2\ncmp     byte ptr [rbx+2F0h], 1                                         ; +0x25, 0x1001eefe5\njnz     short loc_1001EF031                                            ; +0x2c, 0x1001eefec\nmov     [rbx+300h], eax                                                ; +0x2e, 0x1001eefee\nmov     rdi, [rbx+2F8h]                                                ; +0x34, 0x1001eeff4\ntest    rdi, rdi                                                       ; +0x3b, 0x1001eeffb\njz      short loc_1001EF00B                                            ; +0x3e, 0x1001eeffe\ntest    eax, eax                                                       ; +0x40, 0x1001ef000\njle     short loc_1001EF00B                                            ; +0x42, 0x1001ef002\nmov     rcx, [rdi]                                                     ; +0x44, 0x1001ef004\nmov     esi, eax                                                       ; +0x47, 0x1001ef007\ncall    qword ptr [rcx]                                                ; +0x49, 0x1001ef009\nmov     rax, [rbx]                                                     ; +0x4b, 0x1001ef00b\nmov     rdi, rbx                                                       ; +0x4e, 0x1001ef00e\nxor     esi, esi                                                       ; +0x51, 0x1001ef011\ncall    qword ptr [rax+430h]                                           ; +0x53, 0x1001ef013\nmov     rax, [rbx]                                                     ; +0x59, 0x1001ef019\nmov     rax, [rax+210h]                                                ; +0x5c, 0x1001ef01c\nmov     rdi, rbx                                                       ; +0x63, 0x1001ef023\nmov     esi, 1                                                         ; +0x66, 0x1001ef026\npop     rbx                                                            ; +0x6b, 0x1001ef02b\npop     r14                                                            ; +0x6c, 0x1001ef02c\npop     rbp                                                            ; +0x6e, 0x1001ef02e\njmp     rax                                                            ; +0x6f, 0x1001ef02f\nmov     rcx, [rbx+2A8h]                                                ; +0x71, 0x1001ef031\nmov     rdi, [rcx+140h]                                                ; +0x78, 0x1001ef038\nmov     esi, eax                                                       ; +0x7f, 0x1001ef03f\ncall    GJEffectManager__getColorAction                                ; +0x81, 0x1001ef041\nmov     rdi, rax                                                       ; +0x86, 0x1001ef046\ncall    ColorSelectPopup__create_3                                     ; +0x89, 0x1001ef049\nadd     rbx, 298h                                                      ; +0x8e, 0x1001ef04e\nmov     [rax+460h], rbx                                                ; +0x95, 0x1001ef055\nmov     dword ptr [rax+250h], 6Ah ; 'j'                                ; +0x9c, 0x1001ef05c\nmov     rcx, [rax]                                                     ; +0xa6, 0x1001ef066\nmov     rdi, rax                                                       ; +0xa9, 0x1001ef069\npop     rbx                                                            ; +0xac, 0x1001ef06c\npop     r14                                                            ; +0xad, 0x1001ef06d\npop     rbp                                                            ; +0xaf, 0x1001ef06f\njmp     qword ptr [rcx+520h]                                           ; +0xb0, 0x1001ef070", "xrefs": ["GJColorSetupLayer::init @ 0x1001eec09"], "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"}