{"type": "func", "start": 4295174336, "end": 4295174682, "name": "EditorUI::deselectTargetPortals", "pseudocode": "// \n// EditorUI::deselectTargetPortals from 0x1000328c0 to 0x100032a1a (346 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onDeleteSelected @ 0x10000c252\n// > EditorUI::onDelete @ 0x10002df2c\n// > EditorUI::onDelete @ 0x10002e10e\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  __int64 v1; // rsi\n  cocos2d::CCArray *m_selectedObjects; // rdi\n  __int64 v4; // r14\n  unsigned int v5; // r15d\n  __int64 v6; // rax\n  GameObject *v7; // rax\n  unsigned int v8; // r15d\n  GameObject *v9; // r12\n  GameObject *m_selectedObject; // rax\n\n  m_selectedObjects = a1->m_selectedObjects;\n  if ( m_selectedObjects && (unsigned int)sub_100720070(m_selectedObjects) )\n  {\n    v4 = sub_10071F9E0(m_selectedObjects, v1);\n    if ( (unsigned int)sub_100720070(a1->m_selectedObjects) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = sub_1007200C0(a1->m_selectedObjects, v5);\n        if ( *(_DWORD *)(v6 + 1028) == 749 )\n          sub_10071FCD0(v4, v6);\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_100720070(a1->m_selectedObjects) );\n    }\n    if ( (unsigned int)sub_100720070(v4) )\n    {\n      v8 = 0;\n      do\n      {\n        v9 = (GameObject *)sub_1007200C0(v4, v8);\n        m_selectedObject = a1->m_selectedObject;\n        if ( m_selectedObject && m_selectedObject->m_uniqueID == v9->m_uniqueID )\n        {\n          EditorUI::deselectObject_1(a1);\n          a1->m_canActivateControls = 1;\n        }\n        else\n        {\n          GameObject::deselectObject(v9);\n          if ( (unsigned __int8)sub_100720160(a1->m_selectedObjects, v9) )\n          {\n            a1->m_canActivateControls = 1;\n            sub_100720220(a1->m_selectedObjects, v9, 1);\n          }\n        }\n        ++v8;\n      }\n      while ( v8 < (unsigned int)sub_100720070(v4) );\n    }\n  }\n  else\n  {\n    v7 = a1->m_selectedObject;\n    if ( v7 && v7->m_objectID == 749 )\n      EditorUI::deselectObject_1(a1);\n  }\n}", "assembly": "; \n; EditorUI::deselectTargetPortals from 0x1000328c0 to 0x100032a1a (346 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onDeleteSelected @ 0x10000c252\n; > EditorUI::onDelete @ 0x10002df2c\n; > EditorUI::onDelete @ 0x10002e10e\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    rbp                                                            ; +0x0, 0x1000328c0\nmov     rbp, rsp                                                       ; +0x1, 0x1000328c1\npush    r15                                                            ; +0x4, 0x1000328c4\npush    r14                                                            ; +0x6, 0x1000328c6\npush    r12                                                            ; +0x8, 0x1000328c8\npush    rbx                                                            ; +0xa, 0x1000328ca\nmov     rbx, rdi                                                       ; +0xb, 0x1000328cb\nmov     rdi, [rdi+328h]                                                ; +0xe, 0x1000328ce\ntest    rdi, rdi                                                       ; +0x15, 0x1000328d5\njz      short loc_10003293C                                            ; +0x18, 0x1000328d8\ncall    sub_100720070                                                  ; +0x1a, 0x1000328da\ntest    eax, eax                                                       ; +0x1f, 0x1000328df\njz      short loc_10003293C                                            ; +0x21, 0x1000328e1\ncall    sub_10071F9E0                                                  ; +0x23, 0x1000328e3\nmov     r14, rax                                                       ; +0x28, 0x1000328e8\nmov     rdi, [rbx+328h]                                                ; +0x2b, 0x1000328eb\ncall    sub_100720070                                                  ; +0x32, 0x1000328f2\ntest    eax, eax                                                       ; +0x37, 0x1000328f7\njz      short loc_10003296C                                            ; +0x39, 0x1000328f9\nxor     r15d, r15d                                                     ; +0x3b, 0x1000328fb\njmp     short loc_100032914                                            ; +0x3e, 0x1000328fe\ninc     r15d                                                           ; +0x40, 0x100032900\nmov     rdi, [rbx+328h]                                                ; +0x43, 0x100032903\ncall    sub_100720070                                                  ; +0x4a, 0x10003290a\ncmp     r15d, eax                                                      ; +0x4f, 0x10003290f\njnb     short loc_10003296C                                            ; +0x52, 0x100032912\nmov     rdi, [rbx+328h]                                                ; +0x54, 0x100032914\nmov     esi, r15d                                                      ; +0x5b, 0x10003291b\ncall    sub_1007200C0                                                  ; +0x5e, 0x10003291e\ncmp     dword ptr [rax+404h], 2EDh                                     ; +0x63, 0x100032923\njnz     short loc_100032900                                            ; +0x6d, 0x10003292d\nmov     rdi, r14                                                       ; +0x6f, 0x10003292f\nmov     rsi, rax                                                       ; +0x72, 0x100032932\ncall    sub_10071FCD0                                                  ; +0x75, 0x100032935\njmp     short loc_100032900                                            ; +0x7a, 0x10003293a\nmov     rax, [rbx+520h]                                                ; +0x7c, 0x10003293c\ntest    rax, rax                                                       ; +0x83, 0x100032943\njz      loc_100032A11                                                  ; +0x86, 0x100032946\ncmp     dword ptr [rax+404h], 2EDh                                     ; +0x8c, 0x10003294c\njnz     loc_100032A11                                                  ; +0x96, 0x100032956\nmov     rdi, rbx                                                       ; +0x9c, 0x10003295c\npop     rbx                                                            ; +0x9f, 0x10003295f\npop     r12                                                            ; +0xa0, 0x100032960\npop     r14                                                            ; +0xa2, 0x100032962\npop     r15                                                            ; +0xa4, 0x100032964\npop     rbp                                                            ; +0xa6, 0x100032966\njmp     EditorUI__deselectObject_1                                     ; +0xa7, 0x100032967\nmov     rdi, r14                                                       ; +0xac, 0x10003296c\ncall    sub_100720070                                                  ; +0xaf, 0x10003296f\ntest    eax, eax                                                       ; +0xb4, 0x100032974\njz      loc_100032A11                                                  ; +0xb6, 0x100032976\nxor     r15d, r15d                                                     ; +0xbc, 0x10003297c\njmp     short loc_1000329AF                                            ; +0xbf, 0x10003297f\nalign 10h                                                              ; +0xc1, 0x100032981\nmov     rdi, rbx                                                       ; +0xd0, 0x100032990\ncall    EditorUI__deselectObject_1                                     ; +0xd3, 0x100032993\nmov     byte ptr [rbx+2B0h], 1                                         ; +0xd8, 0x100032998\ninc     r15d                                                           ; +0xdf, 0x10003299f\nmov     rdi, r14                                                       ; +0xe2, 0x1000329a2\ncall    sub_100720070                                                  ; +0xe5, 0x1000329a5\ncmp     r15d, eax                                                      ; +0xea, 0x1000329aa\njnb     short loc_100032A11                                            ; +0xed, 0x1000329ad\nmov     rdi, r14                                                       ; +0xef, 0x1000329af\nmov     esi, r15d                                                      ; +0xf2, 0x1000329b2\ncall    sub_1007200C0                                                  ; +0xf5, 0x1000329b5\nmov     r12, rax                                                       ; +0xfa, 0x1000329ba\nmov     rax, [rbx+520h]                                                ; +0xfd, 0x1000329bd\ntest    rax, rax                                                       ; +0x104, 0x1000329c4\njz      short loc_1000329D9                                            ; +0x107, 0x1000329c7\nmov     eax, [rax+394h]                                                ; +0x109, 0x1000329c9\ncmp     eax, [r12+394h]                                                ; +0x10f, 0x1000329cf\njz      short loc_100032990                                            ; +0x117, 0x1000329d7\nmov     rdi, r12                                                       ; +0x119, 0x1000329d9\ncall    GameObject__deselectObject                                     ; +0x11c, 0x1000329dc\nmov     rdi, [rbx+328h]                                                ; +0x121, 0x1000329e1\nmov     rsi, r12                                                       ; +0x128, 0x1000329e8\ncall    sub_100720160                                                  ; +0x12b, 0x1000329eb\ntest    al, al                                                         ; +0x130, 0x1000329f0\njz      short loc_10003299F                                            ; +0x132, 0x1000329f2\nmov     byte ptr [rbx+2B0h], 1                                         ; +0x134, 0x1000329f4\nmov     rdi, [rbx+328h]                                                ; +0x13b, 0x1000329fb\nmov     rsi, r12                                                       ; +0x142, 0x100032a02\nmov     edx, 1                                                         ; +0x145, 0x100032a05\ncall    sub_100720220                                                  ; +0x14a, 0x100032a0a\njmp     short loc_10003299F                                            ; +0x14f, 0x100032a0f\npop     rbx                                                            ; +0x151, 0x100032a11\npop     r12                                                            ; +0x152, 0x100032a12\npop     r14                                                            ; +0x154, 0x100032a14\npop     r15                                                            ; +0x156, 0x100032a16\npop     rbp                                                            ; +0x158, 0x100032a18\nretn                                                                   ; +0x159, 0x100032a19", "xrefs": ["EditorUI::onDeleteSelected @ 0x10000c252", "EditorUI::onDelete @ 0x10002df2c", "EditorUI::onDelete @ 0x10002e10e"], "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"}