{"type": "func", "start": 4299119508, "end": 4299119640, "name": "EditorUI::showLiveColorSelectForModeSpecial", "pseudocode": "// \n// EditorUI::showLiveColorSelectForModeSpecial from 0x1003f5b94 to 0x1003f5c18 (132 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x10004fc88\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 __fastcall EditorUI::showLiveColorSelectForModeSpecial(EditorUI *a1, int a2)\n{\n  GameObject *m_selectedObject; // x0\n  cocos2d::CCArray *m_selectedObjects; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  GameObject **arr; // x21\n  unsigned __int64 v9; // x22\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    GameObject::deselectObject(m_selectedObject);\n  }\n  else if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    if ( m_selectedObjects )\n    {\n      data = m_selectedObjects->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = (GameObject **)data->arr;\n        v9 = (unsigned __int64)&arr[num - 1];\n        do\n        {\n          if ( !*arr )\n            break;\n          GameObject::deselectObject(*arr++);\n        }\n        while ( (unsigned __int64)arr <= v9 );\n      }\n    }\n  }\n  EditorUI::showLiveColorSelectForMode(a1, a2);\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForModeSpecial from 0x1003f5b94 to 0x1003f5c18 (132 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x10004fc88\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003f5b94\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003f5b98\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003f5b9c\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003f5ba0\nMOV             X19, X1                                                ; +0x10, 0x1003f5ba4\nMOV             X20, X0                                                ; +0x14, 0x1003f5ba8\nLDR             X0, [X0,#0x520]                                        ; +0x18, 0x1003f5bac\nCBZ             X0, loc_1003F5BD0                                      ; +0x1c, 0x1003f5bb0\nBL              GameObject__deselectObject                             ; +0x20, 0x1003f5bb4\nMOV             X0, X20                                                ; +0x24, 0x1003f5bb8\nMOV             X1, X19                                                ; +0x28, 0x1003f5bbc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x2c, 0x1003f5bc0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x30, 0x1003f5bc4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x34, 0x1003f5bc8\nB               EditorUI__showLiveColorSelectForMode                   ; +0x38, 0x1003f5bcc\nLDR             X0, [X20,#0x328]                                       ; +0x3c, 0x1003f5bd0\nBL              sub_10024A36C                                          ; +0x40, 0x1003f5bd4\nCBZ             W0, loc_1003F5BB8                                      ; +0x44, 0x1003f5bd8\nLDR             X8, [X20,#0x328]                                       ; +0x48, 0x1003f5bdc\nCBZ             X8, loc_1003F5BB8                                      ; +0x4c, 0x1003f5be0\nLDR             X9, [X8,#0x38]                                         ; +0x50, 0x1003f5be4\nLDR             W8, [X9]                                               ; +0x54, 0x1003f5be8\nCBZ             W8, loc_1003F5BB8                                      ; +0x58, 0x1003f5bec\nLDR             X21, [X9,#0x10]                                        ; +0x5c, 0x1003f5bf0\nADD             X8, X21, X8,LSL#3                                      ; +0x60, 0x1003f5bf4\nSUB             X22, X8, #8                                            ; +0x64, 0x1003f5bf8\nLDR             X0, [X21]                                              ; +0x68, 0x1003f5bfc\nCBZ             X0, loc_1003F5BB8                                      ; +0x6c, 0x1003f5c00\nBL              GameObject__deselectObject                             ; +0x70, 0x1003f5c04\nADD             X21, X21, #8                                           ; +0x74, 0x1003f5c08\nCMP             X21, X22                                               ; +0x78, 0x1003f5c0c\nB.LS            loc_1003F5BFC                                          ; +0x7c, 0x1003f5c10\nB               loc_1003F5BB8                                          ; +0x80, 0x1003f5c14", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x10004fc88"], "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"}