{"type": "func", "start": 4297669680, "end": 4297669897, "name": "EditorPauseLayer::uncheckAllPortals", "pseudocode": "// \n// EditorPauseLayer::uncheckAllPortals from 0x100293c30 to 0x100293d09 (217 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x100291ee5\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 EditorPauseLayer::uncheckAllPortals(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *AllObjects; // r14\n  unsigned int i; // r15d\n  __int64 v4; // rax\n  int v5; // ecx\n  __int64 v6; // r12\n\n  if ( !a1->m_saved )\n  {\n    AllObjects = LevelEditorLayer::getAllObjects(a1->m_editorLayer);\n    if ( (unsigned int)sub_100720070(AllObjects) )\n    {\n      for ( i = 0; i < (unsigned int)sub_100720070(AllObjects); ++i )\n      {\n        v4 = sub_1007200C0(AllObjects, i);\n        v5 = *(_DWORD *)(v4 + 1028);\n        if ( v5 > 659 )\n        {\n          if ( v5 != 660 && v5 != 1933 && v5 != 1331 )\n            continue;\n        }\n        else if ( v5 != 13 && v5 != 47 && v5 != 111 )\n        {\n          continue;\n        }\n        if ( *(_BYTE *)(v4 + 1768) == 1 )\n        {\n          v6 = v4;\n          DrawGridLayer::removeFromGuides(a1->m_editorLayer->m_drawGridLayer, (GameObject *)v4);\n          *(_BYTE *)(v6 + 1768) = 0;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; EditorPauseLayer::uncheckAllPortals from 0x100293c30 to 0x100293d09 (217 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x100291ee5\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\ncmp     byte ptr [rdi+230h], 0                                         ; +0x0, 0x100293c30\njnz     locret_100293D08                                               ; +0x7, 0x100293c37\npush    rbp                                                            ; +0xd, 0x100293c3d\nmov     rbp, rsp                                                       ; +0xe, 0x100293c3e\npush    r15                                                            ; +0x11, 0x100293c41\npush    r14                                                            ; +0x13, 0x100293c43\npush    r12                                                            ; +0x15, 0x100293c45\npush    rbx                                                            ; +0x17, 0x100293c47\nmov     rbx, rdi                                                       ; +0x18, 0x100293c48\nmov     rdi, [rdi+248h]                                                ; +0x1b, 0x100293c4b\ncall    LevelEditorLayer__getAllObjects                                ; +0x22, 0x100293c52\nmov     r14, rax                                                       ; +0x27, 0x100293c57\nmov     rdi, rax                                                       ; +0x2a, 0x100293c5a\ncall    sub_100720070                                                  ; +0x2d, 0x100293c5d\ntest    eax, eax                                                       ; +0x32, 0x100293c62\njz      loc_100293D00                                                  ; +0x34, 0x100293c64\nxor     r15d, r15d                                                     ; +0x3a, 0x100293c6a\njmp     short loc_100293C84                                            ; +0x3d, 0x100293c6d\nalign 10h                                                              ; +0x3f, 0x100293c6f\ninc     r15d                                                           ; +0x40, 0x100293c70\nmov     rdi, r14                                                       ; +0x43, 0x100293c73\ncall    sub_100720070                                                  ; +0x46, 0x100293c76\ncmp     r15d, eax                                                      ; +0x4b, 0x100293c7b\njnb     loc_100293D00                                                  ; +0x4e, 0x100293c7e\nmov     rdi, r14                                                       ; +0x54, 0x100293c84\nmov     esi, r15d                                                      ; +0x57, 0x100293c87\ncall    sub_1007200C0                                                  ; +0x5a, 0x100293c8a\nmov     ecx, [rax+404h]                                                ; +0x5f, 0x100293c8f\ncmp     ecx, 293h                                                      ; +0x65, 0x100293c95\njg      short loc_100293CB0                                            ; +0x6b, 0x100293c9b\ncmp     ecx, 0Dh                                                       ; +0x6d, 0x100293c9d\njz      short loc_100293CD0                                            ; +0x70, 0x100293ca0\ncmp     ecx, 2Fh ; '/'                                                 ; +0x72, 0x100293ca2\njz      short loc_100293CD0                                            ; +0x75, 0x100293ca5\ncmp     ecx, 6Fh ; 'o'                                                 ; +0x77, 0x100293ca7\njz      short loc_100293CD0                                            ; +0x7a, 0x100293caa\njmp     short loc_100293C70                                            ; +0x7c, 0x100293cac\nalign 10h                                                              ; +0x7e, 0x100293cae\ncmp     ecx, 294h                                                      ; +0x80, 0x100293cb0\njz      short loc_100293CD0                                            ; +0x86, 0x100293cb6\ncmp     ecx, 78Dh                                                      ; +0x88, 0x100293cb8\njz      short loc_100293CD0                                            ; +0x8e, 0x100293cbe\ncmp     ecx, 533h                                                      ; +0x90, 0x100293cc0\njnz     short loc_100293C70                                            ; +0x96, 0x100293cc6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x98, 0x100293cc8\ncmp     byte ptr [rax+6E8h], 1                                         ; +0xa0, 0x100293cd0\njnz     short loc_100293C70                                            ; +0xa7, 0x100293cd7\nmov     rcx, [rbx+248h]                                                ; +0xa9, 0x100293cd9\nmov     rdi, [rcx+3698h]                                               ; +0xb0, 0x100293ce0\nmov     rsi, rax                                                       ; +0xb7, 0x100293ce7\nmov     r12, rax                                                       ; +0xba, 0x100293cea\ncall    DrawGridLayer__removeFromGuides                                ; +0xbd, 0x100293ced\nmov     byte ptr [r12+6E8h], 0                                         ; +0xc2, 0x100293cf2\njmp     loc_100293C70                                                  ; +0xcb, 0x100293cfb\npop     rbx                                                            ; +0xd0, 0x100293d00\npop     r12                                                            ; +0xd1, 0x100293d01\npop     r14                                                            ; +0xd3, 0x100293d03\npop     r15                                                            ; +0xd5, 0x100293d05\npop     rbp                                                            ; +0xd7, 0x100293d07\nretn                                                                   ; +0xd8, 0x100293d08", "xrefs": ["EditorPauseLayer::customSetup @ 0x100291ee5"], "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"}