{"type": "func", "start": 4299070204, "end": 4299070440, "name": "EditorUI::deselectTargetPortals", "pseudocode": "// \n// EditorUI::deselectTargetPortals from 0x1003e9afc to 0x1003e9be8 (236 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onDeleteSelected @ 0x1003c7618\n// > EditorUI::onDelete @ 0x1003e6940\n// > EditorUI::onDelete @ 0x1003e6b64\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::deselectTargetPortals(EditorUI *a1)\n{\n  cocos2d::CCArray *m_selectedObjects; // x0\n  cocos2d::CCObject *v3; // x20\n  unsigned int v4; // w21\n  unsigned int v5; // w21\n  GameObject *v6; // x0\n  GameObject *m_selectedObject; // x8\n\n  m_selectedObjects = a1->m_selectedObjects;\n  if ( m_selectedObjects && (unsigned int)sub_10024A36C((__int64)m_selectedObjects) )\n  {\n    v3 = sub_10024A15C();\n    if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )\n    {\n      v4 = 0;\n      do\n      {\n        if ( *(_DWORD *)(sub_10024A388((__int64)a1->m_selectedObjects, v4) + 1028) == 749 )\n          sub_10024A2D0((__int64)v3);\n        ++v4;\n      }\n      while ( v4 < (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) );\n    }\n    if ( (unsigned int)sub_10024A36C((__int64)v3) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = (GameObject *)sub_10024A388((__int64)v3, v5);\n        EditorUI::deselectObject(a1, v6);\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_10024A36C((__int64)v3) );\n    }\n  }\n  else\n  {\n    m_selectedObject = a1->m_selectedObject;\n    if ( m_selectedObject && m_selectedObject->m_objectID == 749 )\n      EditorUI::deselectObject_1(a1);\n  }\n}", "assembly": "; \n; EditorUI::deselectTargetPortals from 0x1003e9afc to 0x1003e9be8 (236 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onDeleteSelected @ 0x1003c7618\n; > EditorUI::onDelete @ 0x1003e6940\n; > EditorUI::onDelete @ 0x1003e6b64\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, 0x1003e9afc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003e9b00\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003e9b04\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003e9b08\nMOV             X19, X0                                                ; +0x10, 0x1003e9b0c\nLDR             X0, [X0,#0x328]                                        ; +0x14, 0x1003e9b10\nCBZ             X0, loc_1003E9BB0                                      ; +0x18, 0x1003e9b14\nBL              sub_10024A36C                                          ; +0x1c, 0x1003e9b18\nCBZ             W0, loc_1003E9BB0                                      ; +0x20, 0x1003e9b1c\nBL              sub_10024A15C                                          ; +0x24, 0x1003e9b20\nMOV             X20, X0                                                ; +0x28, 0x1003e9b24\nLDR             X0, [X19,#0x328]                                       ; +0x2c, 0x1003e9b28\nBL              sub_10024A36C                                          ; +0x30, 0x1003e9b2c\nCBZ             W0, loc_1003E9B70                                      ; +0x34, 0x1003e9b30\nMOV             W21, #0                                                ; +0x38, 0x1003e9b34\nLDR             X0, [X19,#0x328]                                       ; +0x3c, 0x1003e9b38\nMOV             X1, X21                                                ; +0x40, 0x1003e9b3c\nBL              sub_10024A388                                          ; +0x44, 0x1003e9b40\nLDR             W8, [X0,#0x404]                                        ; +0x48, 0x1003e9b44\nCMP             W8, #0x2ED                                             ; +0x4c, 0x1003e9b48\nB.NE            loc_1003E9B5C                                          ; +0x50, 0x1003e9b4c\nMOV             X1, X0                                                 ; +0x54, 0x1003e9b50\nMOV             X0, X20                                                ; +0x58, 0x1003e9b54\nBL              sub_10024A2D0                                          ; +0x5c, 0x1003e9b58\nADD             W21, W21, #1                                           ; +0x60, 0x1003e9b5c\nLDR             X0, [X19,#0x328]                                       ; +0x64, 0x1003e9b60\nBL              sub_10024A36C                                          ; +0x68, 0x1003e9b64\nCMP             W21, W0                                                ; +0x6c, 0x1003e9b68\nB.CC            loc_1003E9B38                                          ; +0x70, 0x1003e9b6c\nMOV             X0, X20                                                ; +0x74, 0x1003e9b70\nBL              sub_10024A36C                                          ; +0x78, 0x1003e9b74\nCBZ             W0, loc_1003E9BD8                                      ; +0x7c, 0x1003e9b78\nMOV             W21, #0                                                ; +0x80, 0x1003e9b7c\nMOV             X0, X20                                                ; +0x84, 0x1003e9b80\nMOV             X1, X21                                                ; +0x88, 0x1003e9b84\nBL              sub_10024A388                                          ; +0x8c, 0x1003e9b88\nMOV             X1, X0                                                 ; +0x90, 0x1003e9b8c\nMOV             X0, X19                                                ; +0x94, 0x1003e9b90\nBL              EditorUI__deselectObject                               ; +0x98, 0x1003e9b94\nADD             W21, W21, #1                                           ; +0x9c, 0x1003e9b98\nMOV             X0, X20                                                ; +0xa0, 0x1003e9b9c\nBL              sub_10024A36C                                          ; +0xa4, 0x1003e9ba0\nCMP             W21, W0                                                ; +0xa8, 0x1003e9ba4\nB.CC            loc_1003E9B80                                          ; +0xac, 0x1003e9ba8\nB               loc_1003E9BD8                                          ; +0xb0, 0x1003e9bac\nLDR             X8, [X19,#0x520]                                       ; +0xb4, 0x1003e9bb0\nCBZ             X8, loc_1003E9BD8                                      ; +0xb8, 0x1003e9bb4\nLDR             W8, [X8,#0x404]                                        ; +0xbc, 0x1003e9bb8\nCMP             W8, #0x2ED                                             ; +0xc0, 0x1003e9bbc\nB.NE            loc_1003E9BD8                                          ; +0xc4, 0x1003e9bc0\nMOV             X0, X19                                                ; +0xc8, 0x1003e9bc4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xcc, 0x1003e9bc8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xd0, 0x1003e9bcc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xd4, 0x1003e9bd0\nB               EditorUI__deselectObject_1                             ; +0xd8, 0x1003e9bd4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xdc, 0x1003e9bd8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xe0, 0x1003e9bdc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xe4, 0x1003e9be0\nRET                                                                    ; +0xe8, 0x1003e9be4", "xrefs": ["EditorUI::onDeleteSelected @ 0x1003c7618", "EditorUI::onDelete @ 0x1003e6940", "EditorUI::onDelete @ 0x1003e6b64"], "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"}