{"type": "func", "start": 5369930880, "end": 5369931550, "name": "ColorSelectPopup::closeColorSelect", "pseudocode": "// \n// ColorSelectPopup::closeColorSelect from 0x14012a480 to 0x14012a71e (670 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::keyBackClicked @ 0x14012a729\n// > ColorSelectPopup::init @ 0x140126e2c\n// > <???> @ 0x140916b80\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:27:00 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall ColorSelectPopup::closeColorSelect(__int64 a1)\n{\n  __int64 v2; // rax\n  unsigned int v3; // edi\n  __int64 v4; // rax\n  __int64 v5; // rcx\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  unsigned int *v10; // rdi\n  __int64 v11; // rax\n  __int64 *v12; // rdi\n  __int64 *i; // rsi\n  __int64 v14; // rcx\n  __int64 v15; // rdx\n  void (__fastcall ***v16)(_QWORD, __int64); // rcx\n  void *v18; // [rsp+30h] [rbp+8h]\n\n  v2 = *(_QWORD *)(a1 + 1136);\n  v3 = 0;\n  if ( v2 )\n  {\n    *(_QWORD *)(v2 + 600) = 0;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1136) + 1032LL))(*(_QWORD *)(a1 + 1136), 0);\n  }\n  v4 = *(_QWORD *)(a1 + 1216);\n  if ( v4 )\n  {\n    *(_QWORD *)(v4 + 600) = 0;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1216) + 1032LL))(*(_QWORD *)(a1 + 1216), 0);\n  }\n  *(_QWORD *)(*(_QWORD *)(a1 + 1208) + 600LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1208) + 1032LL))(*(_QWORD *)(a1 + 1208), 0);\n  *(_QWORD *)(*(_QWORD *)(a1 + 1248) + 600LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1248) + 1032LL))(*(_QWORD *)(a1 + 1248), 0);\n  *(_QWORD *)(*(_QWORD *)(a1 + 1256) + 600LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1256) + 1032LL))(*(_QWORD *)(a1 + 1256), 0);\n  *(_QWORD *)(*(_QWORD *)(a1 + 1264) + 600LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1264) + 1032LL))(*(_QWORD *)(a1 + 1264), 0);\n  *(_QWORD *)(*(_QWORD *)(a1 + 1272) + 600LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1272) + 1032LL))(*(_QWORD *)(a1 + 1272), 0);\n  v5 = *(_QWORD *)(a1 + 1168);\n  if ( !*(_BYTE *)(v5 + 392) )\n  {\n    *(_OWORD *)(a1 + 1176) = *(_OWORD *)(v5 + 376);\n    v6 = *(_QWORD *)(a1 + 680);\n    if ( v6 )\n    {\n      *(_OWORD *)(v6 + 1628) = *(_OWORD *)(v5 + 376);\n    }\n    else if ( *(_QWORD *)(a1 + 688) )\n    {\n      if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) )\n      {\n        do\n          *(_OWORD *)((char *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v3++) + 1628) = *(_OWORD *)(a1 + 1176);\n        while ( v3 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );\n      }\n    }\n    else\n    {\n      v7 = *(_QWORD *)(a1 + 1128);\n      if ( v7 )\n        *(_OWORD *)(v7 + 104) = *(_OWORD *)(v5 + 376);\n    }\n  }\n  if ( !qword_14090BFD0 )\n  {\n    v18 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v18);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n  }\n  v8 = *(_QWORD *)(a1 + 688);\n  v9 = *(_QWORD *)(a1 + 680);\n  if ( v9 )\n  {\n    if ( *(_BYTE *)(v9 + 1263) )\n      cocos2d::CCPoint::operator=(v9 + 1816, &dword_14090AF10);\n  }\n  else if ( v8 )\n  {\n    v10 = *(unsigned int **)(v8 + 56);\n    v11 = *v10;\n    if ( (_DWORD)v11 )\n    {\n      v12 = *((__int64 **)v10 + 2);\n      for ( i = &v12[v11 - 1]; v12 <= i; ++v12 )\n      {\n        v14 = *v12;\n        if ( !*v12 )\n          break;\n        if ( *(_BYTE *)(v14 + 1263) )\n          cocos2d::CCPoint::operator=(v14 + 1816, &dword_14090AF10);\n      }\n    }\n  }\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  v16 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 1104);\n  if ( v16 )\n    (**v16)(v16, a1);\n  LOBYTE(v15) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v15);\n}", "assembly": "; \n; ColorSelectPopup::closeColorSelect from 0x14012a480 to 0x14012a71e (670 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::keyBackClicked @ 0x14012a729\n; > ColorSelectPopup::init @ 0x140126e2c\n; > <???> @ 0x140916b80\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:27:00 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14012a480\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14012a485\npush    rdi                                                            ; +0xa, 0x14012a48a\nsub     rsp, 20h                                                       ; +0xb, 0x14012a48b\nmov     rbx, rcx                                                       ; +0xf, 0x14012a48f\nmov     rax, [rcx+470h]                                                ; +0x12, 0x14012a492\nxor     edi, edi                                                       ; +0x19, 0x14012a499\ntest    rax, rax                                                       ; +0x1b, 0x14012a49b\njz      short loc_14012A4B9                                            ; +0x1e, 0x14012a49e\nmov     [rax+258h], rdi                                                ; +0x20, 0x14012a4a0\nmov     rcx, [rcx+470h]                                                ; +0x27, 0x14012a4a7\nmov     rax, [rcx]                                                     ; +0x2e, 0x14012a4ae\nxor     edx, edx                                                       ; +0x31, 0x14012a4b1\ncall    qword ptr [rax+408h]                                           ; +0x33, 0x14012a4b3\nmov     rax, [rbx+4C0h]                                                ; +0x39, 0x14012a4b9\ntest    rax, rax                                                       ; +0x40, 0x14012a4c0\njz      short loc_14012A4DE                                            ; +0x43, 0x14012a4c3\nmov     [rax+258h], rdi                                                ; +0x45, 0x14012a4c5\nmov     rcx, [rbx+4C0h]                                                ; +0x4c, 0x14012a4cc\nmov     rax, [rcx]                                                     ; +0x53, 0x14012a4d3\nxor     edx, edx                                                       ; +0x56, 0x14012a4d6\ncall    qword ptr [rax+408h]                                           ; +0x58, 0x14012a4d8\nmov     rax, [rbx+4B8h]                                                ; +0x5e, 0x14012a4de\nmov     [rax+258h], rdi                                                ; +0x65, 0x14012a4e5\nmov     rcx, [rbx+4B8h]                                                ; +0x6c, 0x14012a4ec\nmov     rax, [rcx]                                                     ; +0x73, 0x14012a4f3\nxor     edx, edx                                                       ; +0x76, 0x14012a4f6\ncall    qword ptr [rax+408h]                                           ; +0x78, 0x14012a4f8\nmov     rax, [rbx+4E0h]                                                ; +0x7e, 0x14012a4fe\nmov     [rax+258h], rdi                                                ; +0x85, 0x14012a505\nmov     rcx, [rbx+4E0h]                                                ; +0x8c, 0x14012a50c\nmov     rax, [rcx]                                                     ; +0x93, 0x14012a513\nxor     edx, edx                                                       ; +0x96, 0x14012a516\ncall    qword ptr [rax+408h]                                           ; +0x98, 0x14012a518\nmov     rax, [rbx+4E8h]                                                ; +0x9e, 0x14012a51e\nmov     [rax+258h], rdi                                                ; +0xa5, 0x14012a525\nmov     rcx, [rbx+4E8h]                                                ; +0xac, 0x14012a52c\nmov     rax, [rcx]                                                     ; +0xb3, 0x14012a533\nxor     edx, edx                                                       ; +0xb6, 0x14012a536\ncall    qword ptr [rax+408h]                                           ; +0xb8, 0x14012a538\nmov     rax, [rbx+4F0h]                                                ; +0xbe, 0x14012a53e\nmov     [rax+258h], rdi                                                ; +0xc5, 0x14012a545\nmov     rcx, [rbx+4F0h]                                                ; +0xcc, 0x14012a54c\nmov     rax, [rcx]                                                     ; +0xd3, 0x14012a553\nxor     edx, edx                                                       ; +0xd6, 0x14012a556\ncall    qword ptr [rax+408h]                                           ; +0xd8, 0x14012a558\nmov     rax, [rbx+4F8h]                                                ; +0xde, 0x14012a55e\nmov     [rax+258h], rdi                                                ; +0xe5, 0x14012a565\nmov     rcx, [rbx+4F8h]                                                ; +0xec, 0x14012a56c\nmov     rax, [rcx]                                                     ; +0xf3, 0x14012a573\nxor     edx, edx                                                       ; +0xf6, 0x14012a576\ncall    qword ptr [rax+408h]                                           ; +0xf8, 0x14012a578\nmov     rcx, [rbx+490h]                                                ; +0xfe, 0x14012a57e\ncmp     [rcx+188h], dil                                                ; +0x105, 0x14012a585\njnz     loc_14012A629                                                  ; +0x10c, 0x14012a58c\nmovups  xmm0, xmmword ptr [rcx+178h]                                   ; +0x112, 0x14012a592\nmovups  xmmword ptr [rbx+498h], xmm0                                   ; +0x119, 0x14012a599\nmov     rax, [rbx+2A8h]                                                ; +0x120, 0x14012a5a0\ntest    rax, rax                                                       ; +0x127, 0x14012a5a7\njz      short loc_14012A5BC                                            ; +0x12a, 0x14012a5aa\nmovups  xmm0, xmmword ptr [rcx+178h]                                   ; +0x12c, 0x14012a5ac\nmovups  xmmword ptr [rax+65Ch], xmm0                                   ; +0x133, 0x14012a5b3\njmp     short loc_14012A629                                            ; +0x13a, 0x14012a5ba\nmov     rax, [rbx+2B0h]                                                ; +0x13c, 0x14012a5bc\ntest    rax, rax                                                       ; +0x143, 0x14012a5c3\njz      short loc_14012A612                                            ; +0x146, 0x14012a5c6\nmov     rcx, rax                                                       ; +0x148, 0x14012a5c8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x14b, 0x14012a5cb\ntest    eax, eax                                                       ; +0x151, 0x14012a5d1\njz      short loc_14012A629                                            ; +0x153, 0x14012a5d3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x155, 0x14012a5d5\nmov     edx, edi                                                       ; +0x160, 0x14012a5e0\nmov     rcx, [rbx+2B0h]                                                ; +0x162, 0x14012a5e2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x169, 0x14012a5e9\nmovups  xmm0, xmmword ptr [rbx+498h]                                   ; +0x16f, 0x14012a5ef\nmovups  xmmword ptr [rax+65Ch], xmm0                                   ; +0x176, 0x14012a5f6\ninc     edi                                                            ; +0x17d, 0x14012a5fd\nmov     rcx, [rbx+2B0h]                                                ; +0x17f, 0x14012a5ff\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x186, 0x14012a606\ncmp     edi, eax                                                       ; +0x18c, 0x14012a60c\njb      short loc_14012A5E0                                            ; +0x18e, 0x14012a60e\njmp     short loc_14012A629                                            ; +0x190, 0x14012a610\nmov     rax, [rbx+468h]                                                ; +0x192, 0x14012a612\ntest    rax, rax                                                       ; +0x199, 0x14012a619\njz      short loc_14012A629                                            ; +0x19c, 0x14012a61c\nmovups  xmm0, xmmword ptr [rcx+178h]                                   ; +0x19e, 0x14012a61e\nmovups  xmmword ptr [rax+68h], xmm0                                    ; +0x1a5, 0x14012a625\ncmp     cs:qword_14090BFD0, 0                                          ; +0x1a9, 0x14012a629\njnz     short loc_14012A65E                                            ; +0x1b1, 0x14012a631\nmov     ecx, 6E8h; Size                                                ; +0x1b3, 0x14012a633\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1b8, 0x14012a638\nmov     [rsp+28h+arg_0], rax                                           ; +0x1bd, 0x14012a63d\nmov     rcx, rax                                                       ; +0x1c2, 0x14012a642\ncall    GameManager__GameManager                                       ; +0x1c5, 0x14012a645\nnop                                                                    ; +0x1ca, 0x14012a64a\nmov     cs:qword_14090BFD0, rax                                        ; +0x1cb, 0x14012a64b\nmov     rcx, [rax]                                                     ; +0x1d2, 0x14012a652\nmov     rdx, [rcx+48h]                                                 ; +0x1d5, 0x14012a655\nmov     rcx, rax                                                       ; +0x1d9, 0x14012a659\ncall    rdx                                                            ; +0x1dc, 0x14012a65c\nmov     rax, [rbx+2B0h]                                                ; +0x1de, 0x14012a65e\nmov     rcx, [rbx+2A8h]                                                ; +0x1e5, 0x14012a665\ntest    rcx, rcx                                                       ; +0x1ec, 0x14012a66c\njz      short loc_14012A690                                            ; +0x1ef, 0x14012a66f\ncmp     byte ptr [rcx+4EFh], 0                                         ; +0x1f1, 0x14012a671\njz      short loc_14012A6DE                                            ; +0x1f8, 0x14012a678\nadd     rcx, 718h                                                      ; +0x1fa, 0x14012a67a\nlea     rdx, dword_14090AF10                                           ; +0x201, 0x14012a681\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x208, 0x14012a688\njmp     short loc_14012A6DE                                            ; +0x20e, 0x14012a68e\ntest    rax, rax                                                       ; +0x210, 0x14012a690\njz      short loc_14012A6DE                                            ; +0x213, 0x14012a693\nmov     rdi, [rax+38h]                                                 ; +0x215, 0x14012a695\nmov     eax, [rdi]                                                     ; +0x219, 0x14012a699\ntest    eax, eax                                                       ; +0x21b, 0x14012a69b\njz      short loc_14012A6DE                                            ; +0x21d, 0x14012a69d\nmov     rdi, [rdi+10h]                                                 ; +0x21f, 0x14012a69f\nlea     rsi, [rax-1]                                                   ; +0x223, 0x14012a6a3\nlea     rsi, [rdi+rsi*8]                                               ; +0x227, 0x14012a6a7\ncmp     rdi, rsi                                                       ; +0x22b, 0x14012a6ab\nja      short loc_14012A6DE                                            ; +0x22e, 0x14012a6ae\nmov     rcx, [rdi]                                                     ; +0x230, 0x14012a6b0\ntest    rcx, rcx                                                       ; +0x233, 0x14012a6b3\njz      short loc_14012A6DE                                            ; +0x236, 0x14012a6b6\ncmp     byte ptr [rcx+4EFh], 0                                         ; +0x238, 0x14012a6b8\njz      short loc_14012A6D5                                            ; +0x23f, 0x14012a6bf\nadd     rcx, 718h                                                      ; +0x241, 0x14012a6c1\nlea     rdx, dword_14090AF10                                           ; +0x248, 0x14012a6c8\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x24f, 0x14012a6cf\nadd     rdi, 8                                                         ; +0x255, 0x14012a6d5\ncmp     rdi, rsi                                                       ; +0x259, 0x14012a6d9\njbe     short loc_14012A6B0                                            ; +0x25c, 0x14012a6dc\nmov     rax, [rbx]                                                     ; +0x25e, 0x14012a6de\nxor     edx, edx                                                       ; +0x261, 0x14012a6e1\nmov     rcx, rbx                                                       ; +0x263, 0x14012a6e3\ncall    qword ptr [rax+3E0h]                                           ; +0x266, 0x14012a6e6\nmov     rcx, [rbx+450h]                                                ; +0x26c, 0x14012a6ec\ntest    rcx, rcx                                                       ; +0x273, 0x14012a6f3\njz      short loc_14012A700                                            ; +0x276, 0x14012a6f6\nmov     rax, [rcx]                                                     ; +0x278, 0x14012a6f8\nmov     rdx, rbx                                                       ; +0x27b, 0x14012a6fb\ncall    qword ptr [rax]                                                ; +0x27e, 0x14012a6fe\nmov     rax, [rbx]                                                     ; +0x280, 0x14012a700\nmov     dl, 1                                                          ; +0x283, 0x14012a703\nmov     rcx, rbx                                                       ; +0x285, 0x14012a705\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x288, 0x14012a708\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x28d, 0x14012a70d\nadd     rsp, 20h                                                       ; +0x292, 0x14012a712\npop     rdi                                                            ; +0x296, 0x14012a716\njmp     qword ptr [rax+208h]                                           ; +0x297, 0x14012a717", "xrefs": ["ColorSelectPopup::keyBackClicked @ 0x14012a729", "ColorSelectPopup::init @ 0x140126e2c", "<???> @ 0x140916b80"], "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"}