{"type": "func", "start": 7601960, "end": 7602368, "name": "ColorSelectPopup::closeColorSelect", "pseudocode": "// \n// ColorSelectPopup::closeColorSelect from 0x73ff28 to 0x7400c0 (408 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::keyBackClicked @ 0x7400c4\n// > <???> @ 0x49770\n// > ColorSelectPopup::init @ 0x73d410\n// > <???> @ 0x122a580\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; // x0\n  CCTextInputNode *m_fadeTimeInput; // x0\n  ConfigureHSVWidget *m_hsvWidget; // x0\n  GameManager *v6; // x0\n  ColorSelectDelegate *m_delegate; // x0\n  float h; // w3\n  float s; // w2\n  bool absoluteBrightness; // w4\n  float v; // w1\n\n  m_colorInput = a1->m_colorInput;\n  if ( m_colorInput )\n  {\n    m_colorInput->m_delegate = nullptr;\n    a1->m_colorInput->onClickTrackNode(a1->m_colorInput, 0);\n  }\n  m_fadeTimeInput = a1->m_fadeTimeInput;\n  if ( m_fadeTimeInput )\n  {\n    m_fadeTimeInput->m_delegate = nullptr;\n    a1->m_fadeTimeInput->onClickTrackNode(a1->m_fadeTimeInput, 0);\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    h = m_hsvWidget->m_hsv.h;\n    s = m_hsvWidget->m_hsv.s;\n    absoluteBrightness = m_hsvWidget->m_hsv.absoluteBrightness;\n    v = m_hsvWidget->m_hsv.v;\n    a1->m_hsv.absoluteSaturation = m_hsvWidget->m_hsv.absoluteSaturation;\n    a1->m_hsv.absoluteBrightness = absoluteBrightness;\n    a1->m_hsv.h = h;\n    a1->m_hsv.s = s;\n    a1->m_hsv.v = v;\n    ColorSelectPopup::updateHSVValue(a1);\n  }\n  v6 = GameManager::sharedState();\n  LevelEditorLayer::resetEffectTriggerOptim(v6->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 0x73ff28 to 0x7400c0 (408 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::keyBackClicked @ 0x7400c4\n; > <???> @ 0x49770\n; > ColorSelectPopup::init @ 0x73d410\n; > <???> @ 0x122a580\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x73ff28\nMOV             X29, SP                                                ; +0x4, 0x73ff2c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x73ff30\nMOV             X19, X0                                                ; +0xc, 0x73ff34\nLDR             X0, [X0,#0x450]                                        ; +0x10, 0x73ff38\nCBZ             X0, loc_73FF5C                                         ; +0x14, 0x73ff3c\nSTR             XZR, [X0,#0x200]                                       ; +0x18, 0x73ff40\nMOV             W1, #0                                                 ; +0x1c, 0x73ff44\nLDR             X2, [X19,#0x450]                                       ; +0x20, 0x73ff48\nMOV             X0, X2                                                 ; +0x24, 0x73ff4c\nLDR             X2, [X2]                                               ; +0x28, 0x73ff50\nLDR             X2, [X2,#0x478]                                        ; +0x2c, 0x73ff54\nBLR             X2                                                     ; +0x30, 0x73ff58\nLDR             X0, [X19,#0x4A0]                                       ; +0x34, 0x73ff5c\nCBZ             X0, loc_73FF80                                         ; +0x38, 0x73ff60\nSTR             XZR, [X0,#0x200]                                       ; +0x3c, 0x73ff64\nMOV             W1, #0                                                 ; +0x40, 0x73ff68\nLDR             X2, [X19,#0x4A0]                                       ; +0x44, 0x73ff6c\nMOV             X0, X2                                                 ; +0x48, 0x73ff70\nLDR             X2, [X2]                                               ; +0x4c, 0x73ff74\nLDR             X2, [X2,#0x478]                                        ; +0x50, 0x73ff78\nBLR             X2                                                     ; +0x54, 0x73ff7c\nLDR             X0, [X19,#0x498]                                       ; +0x58, 0x73ff80\nMOV             W1, #0                                                 ; +0x5c, 0x73ff84\nSTR             XZR, [X0,#0x200]                                       ; +0x60, 0x73ff88\nLDR             X2, [X19,#0x498]                                       ; +0x64, 0x73ff8c\nMOV             X0, X2                                                 ; +0x68, 0x73ff90\nLDR             X2, [X2]                                               ; +0x6c, 0x73ff94\nLDR             X2, [X2,#0x478]                                        ; +0x70, 0x73ff98\nBLR             X2                                                     ; +0x74, 0x73ff9c\nLDR             X0, [X19,#0x4C0]                                       ; +0x78, 0x73ffa0\nMOV             W1, #0                                                 ; +0x7c, 0x73ffa4\nSTR             XZR, [X0,#0x200]                                       ; +0x80, 0x73ffa8\nLDR             X2, [X19,#0x4C0]                                       ; +0x84, 0x73ffac\nMOV             X0, X2                                                 ; +0x88, 0x73ffb0\nLDR             X2, [X2]                                               ; +0x8c, 0x73ffb4\nLDR             X2, [X2,#0x478]                                        ; +0x90, 0x73ffb8\nBLR             X2                                                     ; +0x94, 0x73ffbc\nLDR             X0, [X19,#0x4C8]                                       ; +0x98, 0x73ffc0\nMOV             W1, #0                                                 ; +0x9c, 0x73ffc4\nSTR             XZR, [X0,#0x200]                                       ; +0xa0, 0x73ffc8\nLDR             X2, [X19,#0x4C8]                                       ; +0xa4, 0x73ffcc\nMOV             X0, X2                                                 ; +0xa8, 0x73ffd0\nLDR             X2, [X2]                                               ; +0xac, 0x73ffd4\nLDR             X2, [X2,#0x478]                                        ; +0xb0, 0x73ffd8\nBLR             X2                                                     ; +0xb4, 0x73ffdc\nLDR             X0, [X19,#0x4D0]                                       ; +0xb8, 0x73ffe0\nMOV             W1, #0                                                 ; +0xbc, 0x73ffe4\nSTR             XZR, [X0,#0x200]                                       ; +0xc0, 0x73ffe8\nLDR             X2, [X19,#0x4D0]                                       ; +0xc4, 0x73ffec\nMOV             X0, X2                                                 ; +0xc8, 0x73fff0\nLDR             X2, [X2]                                               ; +0xcc, 0x73fff4\nLDR             X2, [X2,#0x478]                                        ; +0xd0, 0x73fff8\nBLR             X2                                                     ; +0xd4, 0x73fffc\nLDR             X0, [X19,#0x4D8]                                       ; +0xd8, 0x740000\nMOV             W1, #0                                                 ; +0xdc, 0x740004\nSTR             XZR, [X0,#0x200]                                       ; +0xe0, 0x740008\nLDR             X2, [X19,#0x4D8]                                       ; +0xe4, 0x74000c\nMOV             X0, X2                                                 ; +0xe8, 0x740010\nLDR             X2, [X2]                                               ; +0xec, 0x740014\nLDR             X2, [X2,#0x478]                                        ; +0xf0, 0x740018\nBLR             X2                                                     ; +0xf4, 0x74001c\nLDR             X0, [X19,#0x470]; this                                 ; +0xf8, 0x740020\nLDRB            W1, [X0,#0x188]                                        ; +0xfc, 0x740024\nCBZ             W1, loc_74008C                                         ; +0x100, 0x740028\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x104, 0x74002c\nLDR             X0, [X0,#0x1E0]; this                                  ; +0x108, 0x740030\nLDR             X1, [X19,#0x290]; GameObject *                         ; +0x10c, 0x740034\nLDR             X2, [X19,#0x298]; cocos2d::CCArray *                   ; +0x110, 0x740038\nBL              _ZN16LevelEditorLayer23resetEffectTriggerOptimEP10GameObjectPN7cocos2d7CCArrayE; LevelEditorLayer::resetEffectTriggerOptim(GameObject *,cocos2d::CCArray *) ; +0x114, 0x74003c\nLDR             X2, [X19]                                              ; +0x118, 0x740040\nMOV             X0, X19                                                ; +0x11c, 0x740044\nMOV             W1, #0                                                 ; +0x120, 0x740048\nLDR             X2, [X2,#0x420]                                        ; +0x124, 0x74004c\nBLR             X2                                                     ; +0x128, 0x740050\nLDR             X0, [X19,#0x430]                                       ; +0x12c, 0x740054\nCBZ             X0, loc_74006C                                         ; +0x130, 0x740058\nLDR             X2, [X0]                                               ; +0x134, 0x74005c\nMOV             X1, X19                                                ; +0x138, 0x740060\nLDR             X2, [X2]                                               ; +0x13c, 0x740064\nBLR             X2                                                     ; +0x140, 0x740068\nLDR             X2, [X19]                                              ; +0x144, 0x74006c\nMOV             X0, X19                                                ; +0x148, 0x740070\nMOV             W1, #1                                                 ; +0x14c, 0x740074\nLDR             X2, [X2,#0x200]                                        ; +0x150, 0x740078\nBLR             X2                                                     ; +0x154, 0x74007c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x158, 0x740080\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x15c, 0x740084\nRET                                                                    ; +0x160, 0x740088\nLDR             W3, [X0,#0x178]                                        ; +0x164, 0x74008c\nLDRB            W5, [X0,#0x184]                                        ; +0x168, 0x740090\nLDR             W2, [X0,#0x17C]                                        ; +0x16c, 0x740094\nLDRB            W4, [X0,#0x185]                                        ; +0x170, 0x740098\nLDR             W1, [X0,#0x180]                                        ; +0x174, 0x74009c\nMOV             X0, X19; this                                          ; +0x178, 0x7400a0\nSTRB            W5, [X19,#0x484]                                       ; +0x17c, 0x7400a4\nSTRB            W4, [X19,#0x485]                                       ; +0x180, 0x7400a8\nSTR             W3, [X19,#0x478]                                       ; +0x184, 0x7400ac\nSTR             W2, [X19,#0x47C]                                       ; +0x188, 0x7400b0\nSTR             W1, [X19,#0x480]                                       ; +0x18c, 0x7400b4\nBL              _ZN16ColorSelectPopup14updateHSVValueEv; ColorSelectPopup::updateHSVValue(void) ; +0x190, 0x7400b8\nB               loc_74002C                                             ; +0x194, 0x7400bc", "xrefs": ["ColorSelectPopup::keyBackClicked @ 0x7400c4", "<???> @ 0x49770", "ColorSelectPopup::init @ 0x73d410", "<???> @ 0x122a580"], "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"}