{"type": "func", "start": 8794808, "end": 8795216, "name": "ColorSelectPopup::closeColorSelect", "pseudocode": "// \n// ColorSelectPopup::closeColorSelect from 0x8632b8 to 0x863450 (408 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::keyBackClicked @ 0x863454\n// > <???> @ 0x67a80\n// > ColorSelectPopup::init @ 0x863ffc\n// > <???> @ 0x1542868\n// \n// This function is hookable on this platform (idp: arm, 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:55:37 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::closeColorSelect(ColorSelectPopup *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x0\n  __int64 v4; // x0\n  __int64 updated; // x0\n  __int64 v6; // x0\n  long double v7; // q0\n  void (__fastcall ***v8)(_QWORD, ColorSelectPopup *); // x0\n  int v10; // w3\n  int v11; // w2\n  char v12; // w4\n  int v13; // w1\n\n  v3 = *((_QWORD *)this + 144);\n  if ( v3 )\n  {\n    *(_QWORD *)(v3 + 584) = 0;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 144) + 1160LL))(*((_QWORD *)this + 144), 0);\n  }\n  v4 = *((_QWORD *)this + 154);\n  if ( v4 )\n  {\n    *(_QWORD *)(v4 + 584) = 0;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 154) + 1160LL))(*((_QWORD *)this + 154), 0);\n  }\n  *(_QWORD *)(*((_QWORD *)this + 153) + 584LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 153) + 1160LL))(*((_QWORD *)this + 153), 0);\n  *(_QWORD *)(*((_QWORD *)this + 158) + 584LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 158) + 1160LL))(*((_QWORD *)this + 158), 0);\n  *(_QWORD *)(*((_QWORD *)this + 159) + 584LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 159) + 1160LL))(*((_QWORD *)this + 159), 0);\n  *(_QWORD *)(*((_QWORD *)this + 160) + 584LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 160) + 1160LL))(*((_QWORD *)this + 160), 0);\n  *(_QWORD *)(*((_QWORD *)this + 161) + 584LL) = 0;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 161) + 1160LL))(*((_QWORD *)this + 161), 0);\n  updated = *((_QWORD *)this + 148);\n  if ( !*(_BYTE *)(updated + 392) )\n  {\n    v10 = *(_DWORD *)(updated + 376);\n    v11 = *(_DWORD *)(updated + 380);\n    v12 = *(_BYTE *)(updated + 389);\n    v13 = *(_DWORD *)(updated + 384);\n    *((_BYTE *)this + 1204) = *(_BYTE *)(updated + 388);\n    *((_BYTE *)this + 1205) = v12;\n    *((_DWORD *)this + 298) = v10;\n    *((_DWORD *)this + 299) = v11;\n    *((_DWORD *)this + 300) = v13;\n    updated = ColorSelectPopup::updateHSVValue(this);\n  }\n  v6 = GameManager::sharedState((GameManager *)updated);\n  *(__n128 *)&v7 = LevelEditorLayer::resetEffectTriggerOptim(\n                     (LevelEditorLayer *)*(_QWORD *)(v6 + 552),\n                     (GameObject *)*((_QWORD *)this + 85),\n                     (cocos2d::CCArray *)*((_QWORD *)this + 86));\n  (*(void (__fastcall **)(ColorSelectPopup *, _QWORD, long double))(*(_QWORD *)this + 1072LL))(this, 0, v7);\n  v8 = *((void (__fastcall ****)(_QWORD, ColorSelectPopup *))this + 140);\n  if ( v8 )\n    (**v8)(v8, this);\n  return (*(__int64 (__fastcall **)(ColorSelectPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);\n}", "assembly": "; \n; ColorSelectPopup::closeColorSelect from 0x8632b8 to 0x863450 (408 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::keyBackClicked @ 0x863454\n; > <???> @ 0x67a80\n; > ColorSelectPopup::init @ 0x863ffc\n; > <???> @ 0x1542868\n; \n; This function is hookable on this platform (idp: arm, 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:55:37 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x8632b8\nMOV             X29, SP                                                ; +0x4, 0x8632bc\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x8632c0\nMOV             X19, X0                                                ; +0xc, 0x8632c4\nLDR             X0, [X0,#0x480]                                        ; +0x10, 0x8632c8\nCBZ             X0, loc_8632EC                                         ; +0x14, 0x8632cc\nSTR             XZR, [X0,#0x248]                                       ; +0x18, 0x8632d0\nMOV             W1, #0                                                 ; +0x1c, 0x8632d4\nLDR             X2, [X19,#0x480]                                       ; +0x20, 0x8632d8\nMOV             X0, X2                                                 ; +0x24, 0x8632dc\nLDR             X2, [X2]                                               ; +0x28, 0x8632e0\nLDR             X2, [X2,#0x488]                                        ; +0x2c, 0x8632e4\nBLR             X2                                                     ; +0x30, 0x8632e8\nLDR             X0, [X19,#0x4D0]                                       ; +0x34, 0x8632ec\nCBZ             X0, loc_863310                                         ; +0x38, 0x8632f0\nSTR             XZR, [X0,#0x248]                                       ; +0x3c, 0x8632f4\nMOV             W1, #0                                                 ; +0x40, 0x8632f8\nLDR             X2, [X19,#0x4D0]                                       ; +0x44, 0x8632fc\nMOV             X0, X2                                                 ; +0x48, 0x863300\nLDR             X2, [X2]                                               ; +0x4c, 0x863304\nLDR             X2, [X2,#0x488]                                        ; +0x50, 0x863308\nBLR             X2                                                     ; +0x54, 0x86330c\nLDR             X0, [X19,#0x4C8]                                       ; +0x58, 0x863310\nMOV             W1, #0                                                 ; +0x5c, 0x863314\nSTR             XZR, [X0,#0x248]                                       ; +0x60, 0x863318\nLDR             X2, [X19,#0x4C8]                                       ; +0x64, 0x86331c\nMOV             X0, X2                                                 ; +0x68, 0x863320\nLDR             X2, [X2]                                               ; +0x6c, 0x863324\nLDR             X2, [X2,#0x488]                                        ; +0x70, 0x863328\nBLR             X2                                                     ; +0x74, 0x86332c\nLDR             X0, [X19,#0x4F0]                                       ; +0x78, 0x863330\nMOV             W1, #0                                                 ; +0x7c, 0x863334\nSTR             XZR, [X0,#0x248]                                       ; +0x80, 0x863338\nLDR             X2, [X19,#0x4F0]                                       ; +0x84, 0x86333c\nMOV             X0, X2                                                 ; +0x88, 0x863340\nLDR             X2, [X2]                                               ; +0x8c, 0x863344\nLDR             X2, [X2,#0x488]                                        ; +0x90, 0x863348\nBLR             X2                                                     ; +0x94, 0x86334c\nLDR             X0, [X19,#0x4F8]                                       ; +0x98, 0x863350\nMOV             W1, #0                                                 ; +0x9c, 0x863354\nSTR             XZR, [X0,#0x248]                                       ; +0xa0, 0x863358\nLDR             X2, [X19,#0x4F8]                                       ; +0xa4, 0x86335c\nMOV             X0, X2                                                 ; +0xa8, 0x863360\nLDR             X2, [X2]                                               ; +0xac, 0x863364\nLDR             X2, [X2,#0x488]                                        ; +0xb0, 0x863368\nBLR             X2                                                     ; +0xb4, 0x86336c\nLDR             X0, [X19,#0x500]                                       ; +0xb8, 0x863370\nMOV             W1, #0                                                 ; +0xbc, 0x863374\nSTR             XZR, [X0,#0x248]                                       ; +0xc0, 0x863378\nLDR             X2, [X19,#0x500]                                       ; +0xc4, 0x86337c\nMOV             X0, X2                                                 ; +0xc8, 0x863380\nLDR             X2, [X2]                                               ; +0xcc, 0x863384\nLDR             X2, [X2,#0x488]                                        ; +0xd0, 0x863388\nBLR             X2                                                     ; +0xd4, 0x86338c\nLDR             X0, [X19,#0x508]                                       ; +0xd8, 0x863390\nMOV             W1, #0                                                 ; +0xdc, 0x863394\nSTR             XZR, [X0,#0x248]                                       ; +0xe0, 0x863398\nLDR             X2, [X19,#0x508]                                       ; +0xe4, 0x86339c\nMOV             X0, X2                                                 ; +0xe8, 0x8633a0\nLDR             X2, [X2]                                               ; +0xec, 0x8633a4\nLDR             X2, [X2,#0x488]                                        ; +0xf0, 0x8633a8\nBLR             X2                                                     ; +0xf4, 0x8633ac\nLDR             X0, [X19,#0x4A0]; this                                 ; +0xf8, 0x8633b0\nLDRB            W1, [X0,#0x188]                                        ; +0xfc, 0x8633b4\nCBZ             W1, loc_86341C                                         ; +0x100, 0x8633b8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x104, 0x8633bc\nLDR             X0, [X0,#0x228]; this                                  ; +0x108, 0x8633c0\nLDR             X1, [X19,#0x2A8]; GameObject *                         ; +0x10c, 0x8633c4\nLDR             X2, [X19,#0x2B0]; cocos2d::CCArray *                   ; +0x110, 0x8633c8\nBL              _ZN16LevelEditorLayer23resetEffectTriggerOptimEP10GameObjectPN7cocos2d7CCArrayE; LevelEditorLayer::resetEffectTriggerOptim(GameObject *,cocos2d::CCArray *) ; +0x114, 0x8633cc\nLDR             X2, [X19]                                              ; +0x118, 0x8633d0\nMOV             X0, X19                                                ; +0x11c, 0x8633d4\nMOV             W1, #0                                                 ; +0x120, 0x8633d8\nLDR             X2, [X2,#0x430]                                        ; +0x124, 0x8633dc\nBLR             X2                                                     ; +0x128, 0x8633e0\nLDR             X0, [X19,#0x460]                                       ; +0x12c, 0x8633e4\nCBZ             X0, loc_8633FC                                         ; +0x130, 0x8633e8\nLDR             X2, [X0]                                               ; +0x134, 0x8633ec\nMOV             X1, X19                                                ; +0x138, 0x8633f0\nLDR             X2, [X2]                                               ; +0x13c, 0x8633f4\nBLR             X2                                                     ; +0x140, 0x8633f8\nLDR             X2, [X19]                                              ; +0x144, 0x8633fc\nMOV             X0, X19                                                ; +0x148, 0x863400\nMOV             W1, #1                                                 ; +0x14c, 0x863404\nLDR             X2, [X2,#0x210]                                        ; +0x150, 0x863408\nBLR             X2                                                     ; +0x154, 0x86340c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x158, 0x863410\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x15c, 0x863414\nRET                                                                    ; +0x160, 0x863418\nLDR             W3, [X0,#0x178]                                        ; +0x164, 0x86341c\nLDRB            W5, [X0,#0x184]                                        ; +0x168, 0x863420\nLDR             W2, [X0,#0x17C]                                        ; +0x16c, 0x863424\nLDRB            W4, [X0,#0x185]                                        ; +0x170, 0x863428\nLDR             W1, [X0,#0x180]                                        ; +0x174, 0x86342c\nMOV             X0, X19; this                                          ; +0x178, 0x863430\nSTRB            W5, [X19,#0x4B4]                                       ; +0x17c, 0x863434\nSTRB            W4, [X19,#0x4B5]                                       ; +0x180, 0x863438\nSTR             W3, [X19,#0x4A8]                                       ; +0x184, 0x86343c\nSTR             W2, [X19,#0x4AC]                                       ; +0x188, 0x863440\nSTR             W1, [X19,#0x4B0]                                       ; +0x18c, 0x863444\nBL              _ZN16ColorSelectPopup14updateHSVValueEv; ColorSelectPopup::updateHSVValue(void) ; +0x190, 0x863448\nB               loc_8633BC                                             ; +0x194, 0x86344c", "xrefs": ["ColorSelectPopup::keyBackClicked @ 0x863454", "<???> @ 0x67a80", "ColorSelectPopup::init @ 0x863ffc", "<???> @ 0x1542868"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}