{"type": "func", "start": 5369398400, "end": 5369398567, "name": "CustomizeObjectLayer::onEditColor", "pseudocode": "// \n// CustomizeObjectLayer::onEditColor from 0x1400a8480 to 0x1400a8527 (167 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::init @ 0x1400a6add\n// > <???> @ 0x1406c77a0\n// > <???> @ 0x1406c77ac\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// Hidden C++ exception states: #wind=1\nvoid CustomizeObjectLayer::onEditColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int ActiveMode; // edi\n  __int64 v4; // rax\n  ColorAction *ColorAction; // rax\n  ColorSelectPopup *v6; // rax\n  ColorSelectDelegate *v7; // rcx\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v8 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  ColorAction = GJEffectManager::getColorAction(\n                  *(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v4 + 528) + 3504LL) + 320LL),\n                  ActiveMode);\n  v6 = ColorSelectPopup::create(nullptr, nullptr, ColorAction);\n  v7 = &a1->ColorSelectDelegate;\n  if ( !a1 )\n    v7 = nullptr;\n  v6->m_delegate = v7;\n  v6->show(v6);\n}", "assembly": "; \n; CustomizeObjectLayer::onEditColor from 0x1400a8480 to 0x1400a8527 (167 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::init @ 0x1400a6add\n; > <???> @ 0x1406c77a0\n; > <???> @ 0x1406c77ac\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_8], rbx                                               ; +0x0, 0x1400a8480\npush    rdi                                                            ; +0x5, 0x1400a8485\nsub     rsp, 20h                                                       ; +0x6, 0x1400a8486\nmov     rbx, rcx                                                       ; +0xa, 0x1400a848a\nmov     dl, 1                                                          ; +0xd, 0x1400a848d\ncall    CustomizeObjectLayer__getActiveMode                            ; +0xf, 0x1400a848f\nmov     edi, eax                                                       ; +0x14, 0x1400a8494\nmov     rax, cs:qword_1406C2ED8                                        ; +0x16, 0x1400a8496\ntest    rax, rax                                                       ; +0x1d, 0x1400a849d\njnz     short loc_1400A84D1                                            ; +0x20, 0x1400a84a0\nmov     ecx, 668h; Size                                                ; +0x22, 0x1400a84a2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1400a84a7\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x1400a84ac\nmov     rcx, rax                                                       ; +0x31, 0x1400a84b1\ncall    sub_14017AB00                                                  ; +0x34, 0x1400a84b4\nnop                                                                    ; +0x39, 0x1400a84b9\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3a, 0x1400a84ba\nmov     rdx, [rax]                                                     ; +0x41, 0x1400a84c1\nmov     rcx, rax                                                       ; +0x44, 0x1400a84c4\ncall    qword ptr [rdx+48h]                                            ; +0x47, 0x1400a84c7\nmov     rax, cs:qword_1406C2ED8                                        ; +0x4a, 0x1400a84ca\nmov     rax, [rax+210h]                                                ; +0x51, 0x1400a84d1\nmov     rcx, [rax+0DB0h]                                               ; +0x58, 0x1400a84d8\nmov     edx, edi                                                       ; +0x5f, 0x1400a84df\nmov     rcx, [rcx+140h]                                                ; +0x61, 0x1400a84e1\ncall    GJEffectManager__getColorAction                                ; +0x68, 0x1400a84e8\nmov     r8, rax                                                        ; +0x6d, 0x1400a84ed\nxor     edx, edx                                                       ; +0x70, 0x1400a84f0\nxor     ecx, ecx                                                       ; +0x72, 0x1400a84f2\ncall    ColorSelectPopup__create                                       ; +0x74, 0x1400a84f4\nlea     rcx, [rbx+288h]                                                ; +0x79, 0x1400a84f9\nxor     edx, edx                                                       ; +0x80, 0x1400a8500\ntest    rbx, rbx                                                       ; +0x82, 0x1400a8502\ncmovz   rcx, rdx                                                       ; +0x85, 0x1400a8505\nmov     [rax+410h], rcx                                                ; +0x89, 0x1400a8509\nmov     rdx, [rax]                                                     ; +0x90, 0x1400a8510\nmov     rcx, rax                                                       ; +0x93, 0x1400a8513\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x96, 0x1400a8516\nadd     rsp, 20h                                                       ; +0x9b, 0x1400a851b\npop     rdi                                                            ; +0x9f, 0x1400a851f\njmp     qword ptr [rdx+410h]                                           ; +0xa0, 0x1400a8520", "xrefs": ["CustomizeObjectLayer::init @ 0x1400a6add", "<???> @ 0x1406c77a0", "<???> @ 0x1406c77ac"], "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"}