{"type": "func", "start": 5108402, "end": 5108664, "name": "ColorSelectPopup::closeColorSelect", "pseudocode": "// \n// ColorSelectPopup::closeColorSelect from 0x4df2b2 to 0x4df3b8 (262 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::keyBackClicked @ 0x4df3ba\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:50:59 +0000\n// \n\nint __fastcall ColorSelectPopup::closeColorSelect(ColorSelectPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r3\n  int v4; // r3\n  GameManager *updated; // r0\n  int v6; // r3\n  _DWORD *v7; // r3\n  int v8; // r0\n  void (__fastcall ***v9)(_DWORD, ColorSelectPopup *); // r0\n  int v11; // [sp+4h] [bp-Ch]\n  int v12; // [sp+8h] [bp-8h]\n  int v13; // [sp+Ch] [bp-4h]\n\n  v3 = *((_DWORD *)this + 197);\n  if ( v3 )\n  {\n    *(_DWORD *)(v3 + 420) = 0;\n    (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 197) + 580))(*((_DWORD *)this + 197));\n  }\n  v4 = *((_DWORD *)this + 212);\n  if ( v4 )\n  {\n    *(_DWORD *)(v4 + 420) = 0;\n    (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 212) + 580))(*((_DWORD *)this + 212));\n  }\n  *(_DWORD *)(*((_DWORD *)this + 211) + 420) = 0;\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 211) + 580))(*((_DWORD *)this + 211), 0);\n  *(_DWORD *)(*((_DWORD *)this + 216) + 420) = 0;\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 216) + 580))(*((_DWORD *)this + 216), 0);\n  *(_DWORD *)(*((_DWORD *)this + 217) + 420) = 0;\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 217) + 580))(*((_DWORD *)this + 217), 0);\n  *(_DWORD *)(*((_DWORD *)this + 218) + 420) = 0;\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 218) + 580))(*((_DWORD *)this + 218), 0);\n  *(_DWORD *)(*((_DWORD *)this + 219) + 420) = 0;\n  updated = (GameManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 219) + 580))(\n                             *((_DWORD *)this + 219),\n                             0);\n  v6 = *((_DWORD *)this + 204);\n  if ( !*(_BYTE *)(v6 + 308) )\n  {\n    v7 = (_DWORD *)(v6 + 292);\n    v11 = v7[1];\n    v12 = v7[2];\n    v13 = v7[3];\n    *((_DWORD *)this + 205) = *v7;\n    *((_DWORD *)this + 206) = v11;\n    *((_DWORD *)this + 207) = v12;\n    *((_DWORD *)this + 208) = v13;\n    updated = (GameManager *)ColorSelectPopup::updateHSVValue(this);\n  }\n  v8 = GameManager::sharedState(updated);\n  LevelEditorLayer::resetEffectTriggerOptim(\n    *(LevelEditorLayer **)(v8 + 408),\n    *((GameObject **)this + 132),\n    *((cocos2d::CCArray **)this + 133));\n  (*(void (__fastcall **)(ColorSelectPopup *, _DWORD))(*(_DWORD *)this + 536))(this, 0);\n  v9 = *((void (__fastcall ****)(_DWORD, ColorSelectPopup *))this + 191);\n  if ( v9 )\n    (**v9)(v9, this);\n  return (*(int (__fastcall **)(ColorSelectPopup *, int))(*(_DWORD *)this + 264))(this, 1);\n}", "assembly": "; \n; ColorSelectPopup::closeColorSelect from 0x4df2b2 to 0x4df3b8 (262 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::keyBackClicked @ 0x4df3ba\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:50:59 +0000\n; \nPUSH            {R0-R6,LR}                                             ; +0x0, 0x4df2b2\nMOV             R4, R0                                                 ; +0x2, 0x4df2b4\nLDR.W           R3, [R0,#0x314]                                        ; +0x4, 0x4df2b6\nCBZ             R3, loc_4DF2CE                                         ; +0x8, 0x4df2ba\nMOVS            R1, #0                                                 ; +0xa, 0x4df2bc\nSTR.W           R1, [R3,#0x1A4]                                        ; +0xc, 0x4df2be\nLDR.W           R0, [R0,#0x314]                                        ; +0x10, 0x4df2c2\nLDR             R3, [R0]                                               ; +0x14, 0x4df2c6\nLDR.W           R3, [R3,#0x244]                                        ; +0x16, 0x4df2c8\nBLX             R3                                                     ; +0x1a, 0x4df2cc\nLDR.W           R3, [R4,#0x350]                                        ; +0x1c, 0x4df2ce\nCBZ             R3, loc_4DF2E6                                         ; +0x20, 0x4df2d2\nMOVS            R1, #0                                                 ; +0x22, 0x4df2d4\nSTR.W           R1, [R3,#0x1A4]                                        ; +0x24, 0x4df2d6\nLDR.W           R0, [R4,#0x350]                                        ; +0x28, 0x4df2da\nLDR             R3, [R0]                                               ; +0x2c, 0x4df2de\nLDR.W           R3, [R3,#0x244]                                        ; +0x2e, 0x4df2e0\nBLX             R3                                                     ; +0x32, 0x4df2e4\nLDR.W           R3, [R4,#0x34C]                                        ; +0x34, 0x4df2e6\nMOVS            R5, #0                                                 ; +0x38, 0x4df2ea\nMOV             R1, R5                                                 ; +0x3a, 0x4df2ec\nSTR.W           R5, [R3,#0x1A4]                                        ; +0x3c, 0x4df2ee\nLDR.W           R0, [R4,#0x34C]                                        ; +0x40, 0x4df2f2\nLDR             R3, [R0]                                               ; +0x44, 0x4df2f6\nLDR.W           R3, [R3,#0x244]                                        ; +0x46, 0x4df2f8\nBLX             R3                                                     ; +0x4a, 0x4df2fc\nLDR.W           R3, [R4,#0x360]                                        ; +0x4c, 0x4df2fe\nMOV             R1, R5                                                 ; +0x50, 0x4df302\nSTR.W           R5, [R3,#0x1A4]                                        ; +0x52, 0x4df304\nLDR.W           R0, [R4,#0x360]                                        ; +0x56, 0x4df308\nLDR             R3, [R0]                                               ; +0x5a, 0x4df30c\nLDR.W           R3, [R3,#0x244]                                        ; +0x5c, 0x4df30e\nBLX             R3                                                     ; +0x60, 0x4df312\nLDR.W           R3, [R4,#0x364]                                        ; +0x62, 0x4df314\nMOV             R1, R5                                                 ; +0x66, 0x4df318\nSTR.W           R5, [R3,#0x1A4]                                        ; +0x68, 0x4df31a\nLDR.W           R0, [R4,#0x364]                                        ; +0x6c, 0x4df31e\nLDR             R3, [R0]                                               ; +0x70, 0x4df322\nLDR.W           R3, [R3,#0x244]                                        ; +0x72, 0x4df324\nBLX             R3                                                     ; +0x76, 0x4df328\nLDR.W           R3, [R4,#0x368]                                        ; +0x78, 0x4df32a\nMOV             R1, R5                                                 ; +0x7c, 0x4df32e\nSTR.W           R5, [R3,#0x1A4]                                        ; +0x7e, 0x4df330\nLDR.W           R0, [R4,#0x368]                                        ; +0x82, 0x4df334\nLDR             R3, [R0]                                               ; +0x86, 0x4df338\nLDR.W           R3, [R3,#0x244]                                        ; +0x88, 0x4df33a\nBLX             R3                                                     ; +0x8c, 0x4df33e\nLDR.W           R3, [R4,#0x36C]                                        ; +0x8e, 0x4df340\nMOV             R1, R5                                                 ; +0x92, 0x4df344\nSTR.W           R5, [R3,#0x1A4]                                        ; +0x94, 0x4df346\nLDR.W           R0, [R4,#0x36C]                                        ; +0x98, 0x4df34a\nLDR             R3, [R0]                                               ; +0x9c, 0x4df34e\nLDR.W           R3, [R3,#0x244]                                        ; +0x9e, 0x4df350\nBLX             R3                                                     ; +0xa2, 0x4df354\nLDR.W           R3, [R4,#0x330]                                        ; +0xa4, 0x4df356\nLDRB.W          R2, [R3,#0x134]                                        ; +0xa8, 0x4df35a\nCBNZ            R2, loc_4DF378                                         ; +0xac, 0x4df35e\nADD.W           R3, R3, #0x124                                         ; +0xae, 0x4df360\nADD.W           R6, R4, #0x334                                         ; +0xb2, 0x4df364\nLDM             R3, {R0-R3}                                            ; +0xb6, 0x4df368\nSTMEA.W         SP, {R0-R3}                                            ; +0xb8, 0x4df36a\nSTM.W           R6, {R0-R3}                                            ; +0xbc, 0x4df36e\nMOV             R0, R4; this                                           ; +0xc0, 0x4df372\nBL              _ZN16ColorSelectPopup14updateHSVValueEv; ColorSelectPopup::updateHSVValue(void) ; +0xc2, 0x4df374\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc6, 0x4df378\nLDR.W           R1, [R4,#0x210]; GameObject *                          ; +0xca, 0x4df37c\nLDR.W           R2, [R4,#0x214]; cocos2d::CCArray *                    ; +0xce, 0x4df380\nLDR.W           R0, [R0,#0x198]; this                                  ; +0xd2, 0x4df384\nBL              _ZN16LevelEditorLayer23resetEffectTriggerOptimEP10GameObjectPN7cocos2d7CCArrayE; LevelEditorLayer::resetEffectTriggerOptim(GameObject *,cocos2d::CCArray *) ; +0xd6, 0x4df388\nLDR             R3, [R4]                                               ; +0xda, 0x4df38c\nMOV             R0, R4                                                 ; +0xdc, 0x4df38e\nMOVS            R1, #0                                                 ; +0xde, 0x4df390\nLDR.W           R3, [R3,#0x218]                                        ; +0xe0, 0x4df392\nBLX             R3                                                     ; +0xe4, 0x4df396\nLDR.W           R0, [R4,#0x2FC]                                        ; +0xe6, 0x4df398\nCBZ             R0, loc_4DF3A6                                         ; +0xea, 0x4df39c\nLDR             R3, [R0]                                               ; +0xec, 0x4df39e\nMOV             R1, R4                                                 ; +0xee, 0x4df3a0\nLDR             R3, [R3]                                               ; +0xf0, 0x4df3a2\nBLX             R3                                                     ; +0xf2, 0x4df3a4\nLDR             R3, [R4]                                               ; +0xf4, 0x4df3a6\nMOV             R0, R4                                                 ; +0xf6, 0x4df3a8\nMOVS            R1, #1                                                 ; +0xf8, 0x4df3aa\nLDR.W           R3, [R3,#0x108]                                        ; +0xfa, 0x4df3ac\nADD             SP, SP, #0x10                                          ; +0xfe, 0x4df3b0\nPOP.W           {R4-R6,LR}                                             ; +0x100, 0x4df3b2\nBX              R3                                                     ; +0x104, 0x4df3b6", "xrefs": ["ColorSelectPopup::keyBackClicked @ 0x4df3ba"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}