{"type": "func", "start": 4048804, "end": 4049066, "name": "ColorSelectPopup::closeColorSelect", "pseudocode": "// \n// ColorSelectPopup::closeColorSelect from 0x3dc7a4 to 0x3dc8aa (262 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::keyBackClicked @ 0x3dc8ac\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\nvoid ColorSelectPopup::closeColorSelect(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_colorInput; // r3\n  CCTextInputNode *m_fadeTimeInput; // r3\n  ConfigureHSVWidget *m_hsvWidget; // r3\n  cocos2d::ccHSVValue *p_m_hsv; // r3\n  GameManager *v7; // r0\n  ColorSelectDelegate *m_delegate; // r0\n  float s; // [sp+4h] [bp-Ch]\n  float v; // [sp+8h] [bp-8h]\n  int v11; // [sp+Ch] [bp-4h]\n\n  m_colorInput = a1->m_colorInput;\n  if ( m_colorInput )\n  {\n    m_colorInput->m_delegate = nullptr;\n    ((void (__fastcall *)(CCTextInputNode *))a1->m_colorInput->onClickTrackNode)(a1->m_colorInput);\n  }\n  m_fadeTimeInput = a1->m_fadeTimeInput;\n  if ( m_fadeTimeInput )\n  {\n    m_fadeTimeInput->m_delegate = nullptr;\n    ((void (__fastcall *)(CCTextInputNode *))a1->m_fadeTimeInput->onClickTrackNode)(a1->m_fadeTimeInput);\n  }\n  a1->m_copyColorInput->m_delegate = nullptr;\n  a1->m_copyColorInput->onClickTrackNode(a1->m_copyColorInput, 0);\n  a1->m_rInput->m_delegate = nullptr;\n  a1->m_rInput->onClickTrackNode(a1->m_rInput, 0);\n  a1->m_gInput->m_delegate = nullptr;\n  a1->m_gInput->onClickTrackNode(a1->m_gInput, 0);\n  a1->m_bInput->m_delegate = nullptr;\n  a1->m_bInput->onClickTrackNode(a1->m_bInput, 0);\n  a1->m_hexInput->m_delegate = nullptr;\n  a1->m_hexInput->onClickTrackNode(a1->m_hexInput, 0);\n  m_hsvWidget = a1->m_hsvWidget;\n  if ( !m_hsvWidget->m_mixed )\n  {\n    p_m_hsv = &m_hsvWidget->m_hsv;\n    s = p_m_hsv->s;\n    v = p_m_hsv->v;\n    v11 = *(_DWORD *)&p_m_hsv->absoluteSaturation;\n    a1->m_hsv.h = p_m_hsv->h;\n    a1->m_hsv.s = s;\n    a1->m_hsv.v = v;\n    *(_DWORD *)&a1->m_hsv.absoluteSaturation = v11;\n    ColorSelectPopup::updateHSVValue(a1);\n  }\n  v7 = GameManager::sharedState();\n  LevelEditorLayer::resetEffectTriggerOptim(v7->m_levelEditorLayer, a1->m_gameObject, a1->m_gameObjects);\n  a1->setKeypadEnabled(a1, 0);\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    m_delegate->colorSelectClosed(m_delegate, a1);\n  a1->removeFromParentAndCleanup(a1, 1);\n}", "assembly": "; \n; ColorSelectPopup::closeColorSelect from 0x3dc7a4 to 0x3dc8aa (262 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::keyBackClicked @ 0x3dc8ac\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\nPUSH            {R0-R6,LR}                                             ; +0x0, 0x3dc7a4\nMOV             R4, R0                                                 ; +0x2, 0x3dc7a6\nLDR.W           R3, [R0,#0x2F4]                                        ; +0x4, 0x3dc7a8\nCBZ             R3, loc_3DC7C0                                         ; +0x8, 0x3dc7ac\nMOVS            R1, #0                                                 ; +0xa, 0x3dc7ae\nSTR.W           R1, [R3,#0x180]                                        ; +0xc, 0x3dc7b0\nLDR.W           R0, [R0,#0x2F4]                                        ; +0x10, 0x3dc7b4\nLDR             R3, [R0]                                               ; +0x14, 0x3dc7b8\nLDR.W           R3, [R3,#0x23C]                                        ; +0x16, 0x3dc7ba\nBLX             R3                                                     ; +0x1a, 0x3dc7be\nLDR.W           R3, [R4,#0x330]                                        ; +0x1c, 0x3dc7c0\nCBZ             R3, loc_3DC7D8                                         ; +0x20, 0x3dc7c4\nMOVS            R1, #0                                                 ; +0x22, 0x3dc7c6\nSTR.W           R1, [R3,#0x180]                                        ; +0x24, 0x3dc7c8\nLDR.W           R0, [R4,#0x330]                                        ; +0x28, 0x3dc7cc\nLDR             R3, [R0]                                               ; +0x2c, 0x3dc7d0\nLDR.W           R3, [R3,#0x23C]                                        ; +0x2e, 0x3dc7d2\nBLX             R3                                                     ; +0x32, 0x3dc7d6\nLDR.W           R3, [R4,#0x32C]                                        ; +0x34, 0x3dc7d8\nMOVS            R5, #0                                                 ; +0x38, 0x3dc7dc\nMOV             R1, R5                                                 ; +0x3a, 0x3dc7de\nSTR.W           R5, [R3,#0x180]                                        ; +0x3c, 0x3dc7e0\nLDR.W           R0, [R4,#0x32C]                                        ; +0x40, 0x3dc7e4\nLDR             R3, [R0]                                               ; +0x44, 0x3dc7e8\nLDR.W           R3, [R3,#0x23C]                                        ; +0x46, 0x3dc7ea\nBLX             R3                                                     ; +0x4a, 0x3dc7ee\nLDR.W           R3, [R4,#0x340]                                        ; +0x4c, 0x3dc7f0\nMOV             R1, R5                                                 ; +0x50, 0x3dc7f4\nSTR.W           R5, [R3,#0x180]                                        ; +0x52, 0x3dc7f6\nLDR.W           R0, [R4,#0x340]                                        ; +0x56, 0x3dc7fa\nLDR             R3, [R0]                                               ; +0x5a, 0x3dc7fe\nLDR.W           R3, [R3,#0x23C]                                        ; +0x5c, 0x3dc800\nBLX             R3                                                     ; +0x60, 0x3dc804\nLDR.W           R3, [R4,#0x344]                                        ; +0x62, 0x3dc806\nMOV             R1, R5                                                 ; +0x66, 0x3dc80a\nSTR.W           R5, [R3,#0x180]                                        ; +0x68, 0x3dc80c\nLDR.W           R0, [R4,#0x344]                                        ; +0x6c, 0x3dc810\nLDR             R3, [R0]                                               ; +0x70, 0x3dc814\nLDR.W           R3, [R3,#0x23C]                                        ; +0x72, 0x3dc816\nBLX             R3                                                     ; +0x76, 0x3dc81a\nLDR.W           R3, [R4,#0x348]                                        ; +0x78, 0x3dc81c\nMOV             R1, R5                                                 ; +0x7c, 0x3dc820\nSTR.W           R5, [R3,#0x180]                                        ; +0x7e, 0x3dc822\nLDR.W           R0, [R4,#0x348]                                        ; +0x82, 0x3dc826\nLDR             R3, [R0]                                               ; +0x86, 0x3dc82a\nLDR.W           R3, [R3,#0x23C]                                        ; +0x88, 0x3dc82c\nBLX             R3                                                     ; +0x8c, 0x3dc830\nLDR.W           R3, [R4,#0x34C]                                        ; +0x8e, 0x3dc832\nMOV             R1, R5                                                 ; +0x92, 0x3dc836\nSTR.W           R5, [R3,#0x180]                                        ; +0x94, 0x3dc838\nLDR.W           R0, [R4,#0x34C]                                        ; +0x98, 0x3dc83c\nLDR             R3, [R0]                                               ; +0x9c, 0x3dc840\nLDR.W           R3, [R3,#0x23C]                                        ; +0x9e, 0x3dc842\nBLX             R3                                                     ; +0xa2, 0x3dc846\nLDR.W           R3, [R4,#0x310]                                        ; +0xa4, 0x3dc848\nLDRB.W          R2, [R3,#0x134]                                        ; +0xa8, 0x3dc84c\nCBNZ            R2, loc_3DC86A                                         ; +0xac, 0x3dc850\nADD.W           R3, R3, #0x124                                         ; +0xae, 0x3dc852\nADD.W           R6, R4, #0x314                                         ; +0xb2, 0x3dc856\nLDM             R3, {R0-R3}                                            ; +0xb6, 0x3dc85a\nSTMEA.W         SP, {R0-R3}                                            ; +0xb8, 0x3dc85c\nSTM.W           R6, {R0-R3}                                            ; +0xbc, 0x3dc860\nMOV             R0, R4; this                                           ; +0xc0, 0x3dc864\nBL              _ZN16ColorSelectPopup14updateHSVValueEv; ColorSelectPopup::updateHSVValue(void) ; +0xc2, 0x3dc866\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc6, 0x3dc86a\nLDR.W           R1, [R4,#0x1FC]; GameObject *                          ; +0xca, 0x3dc86e\nLDR.W           R2, [R4,#0x200]; cocos2d::CCArray *                    ; +0xce, 0x3dc872\nLDR.W           R0, [R0,#0x170]; this                                  ; +0xd2, 0x3dc876\nBL              _ZN16LevelEditorLayer23resetEffectTriggerOptimEP10GameObjectPN7cocos2d7CCArrayE; LevelEditorLayer::resetEffectTriggerOptim(GameObject *,cocos2d::CCArray *) ; +0xd6, 0x3dc87a\nLDR             R3, [R4]                                               ; +0xda, 0x3dc87e\nMOV             R0, R4                                                 ; +0xdc, 0x3dc880\nMOVS            R1, #0                                                 ; +0xde, 0x3dc882\nLDR.W           R3, [R3,#0x210]                                        ; +0xe0, 0x3dc884\nBLX             R3                                                     ; +0xe4, 0x3dc888\nLDR.W           R0, [R4,#0x2DC]                                        ; +0xe6, 0x3dc88a\nCBZ             R0, loc_3DC898                                         ; +0xea, 0x3dc88e\nLDR             R3, [R0]                                               ; +0xec, 0x3dc890\nMOV             R1, R4                                                 ; +0xee, 0x3dc892\nLDR             R3, [R3]                                               ; +0xf0, 0x3dc894\nBLX             R3                                                     ; +0xf2, 0x3dc896\nLDR             R3, [R4]                                               ; +0xf4, 0x3dc898\nMOV             R0, R4                                                 ; +0xf6, 0x3dc89a\nMOVS            R1, #1                                                 ; +0xf8, 0x3dc89c\nLDR.W           R3, [R3,#0x100]                                        ; +0xfa, 0x3dc89e\nADD             SP, SP, #0x10                                          ; +0xfe, 0x3dc8a2\nPOP.W           {R4-R6,LR}                                             ; +0x100, 0x3dc8a4\nBX              R3                                                     ; +0x104, 0x3dc8a8", "xrefs": ["ColorSelectPopup::keyBackClicked @ 0x3dc8ac"], "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"}