{"type": "func", "start": 5369612816, "end": 5369613040, "name": "EditorPauseLayer::uncheckAllPortals", "pseudocode": "// \n// EditorPauseLayer::uncheckAllPortals from 0x1400dca10 to 0x1400dcaf0 (224 bytes)\n// \n// 4 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400daaa8\n// > <???> @ 0x14066e04c\n// > <???> @ 0x14066e080\n// > <???> @ 0x1406c8904\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 EditorPauseLayer::uncheckAllPortals(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  unsigned int v3; // ebx\n  cocos2d::CCArray *m_objects; // rsi\n  struct cocos2d::CCObject *v5; // rax\n  struct cocos2d::CCObject *v6; // rdi\n  cocos2d::CCObjectType m_eObjType; // ecx\n\n  if ( !a1->m_saved )\n  {\n    v3 = 0;\n    m_objects = a1->m_editorLayer->m_objects;\n    if ( cocos2d::CCArray::count(m_objects) )\n    {\n      do\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(m_objects, v3);\n        v6 = v5;\n        m_eObjType = v5[18].m_eObjType;\n        if ( m_eObjType == 660\n          || m_eObjType == GameObjectObjectType\n          || m_eObjType == (MenuLayerObjectType|0x20)\n          || m_eObjType == (MenuLayerObjectType|0x60)\n          || m_eObjType == 1331\n          || m_eObjType == 1933 )\n        {\n          if ( LOBYTE(v5[31].m_uOrderOfArrival) )\n          {\n            cocos2d::CCArray::removeObject(a1->m_editorLayer->m_drawGridLayer->m_guideObjects, v5, 1);\n            LOBYTE(v6[31].m_uOrderOfArrival) = 0;\n          }\n        }\n        ++v3;\n      }\n      while ( v3 < cocos2d::CCArray::count(m_objects) );\n    }\n  }\n}", "assembly": "; \n; EditorPauseLayer::uncheckAllPortals from 0x1400dca10 to 0x1400dcaf0 (224 bytes)\n; \n; 4 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400daaa8\n; > <???> @ 0x14066e04c\n; > <???> @ 0x14066e080\n; > <???> @ 0x1406c8904\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, 0x1400dca10\nsub     rsp, 20h                                                       ; +0x2, 0x1400dca12\ncmp     byte ptr [rcx+230h], 0                                         ; +0x6, 0x1400dca16\nmov     rbp, rcx                                                       ; +0xd, 0x1400dca1d\njnz     loc_1400DCAEA                                                  ; +0x10, 0x1400dca20\nmov     rax, [rcx+248h]                                                ; +0x16, 0x1400dca26\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1d, 0x1400dca2d\nxor     ebx, ebx                                                       ; +0x22, 0x1400dca32\nmov     [rsp+28h+arg_8], rsi                                           ; +0x24, 0x1400dca34\nmov     rsi, [rax+0DB8h]                                               ; +0x29, 0x1400dca39\nmov     rcx, rsi                                                       ; +0x30, 0x1400dca40\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x33, 0x1400dca43\ntest    eax, eax                                                       ; +0x39, 0x1400dca49\njz      loc_1400DCAE0                                                  ; +0x3b, 0x1400dca4b\nmov     [rsp+28h+arg_10], rdi                                          ; +0x41, 0x1400dca51\nnop     word ptr [rax+rax+00000000h]                                   ; +0x46, 0x1400dca56\nmov     edx, ebx                                                       ; +0x50, 0x1400dca60\nmov     rcx, rsi                                                       ; +0x52, 0x1400dca62\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x55, 0x1400dca65\nmov     rdi, rax                                                       ; +0x5b, 0x1400dca6b\nmov     ecx, [rax+40Ch]                                                ; +0x5e, 0x1400dca6e\ncmp     ecx, 294h                                                      ; +0x64, 0x1400dca74\njz      short loc_1400DCA9B                                            ; +0x6a, 0x1400dca7a\ncmp     ecx, 0Dh                                                       ; +0x6c, 0x1400dca7c\njz      short loc_1400DCA9B                                            ; +0x6f, 0x1400dca7f\ncmp     ecx, 2Fh ; '/'                                                 ; +0x71, 0x1400dca81\njz      short loc_1400DCA9B                                            ; +0x74, 0x1400dca84\ncmp     ecx, 6Fh ; 'o'                                                 ; +0x76, 0x1400dca86\njz      short loc_1400DCA9B                                            ; +0x79, 0x1400dca89\ncmp     ecx, 533h                                                      ; +0x7b, 0x1400dca8b\njz      short loc_1400DCA9B                                            ; +0x81, 0x1400dca91\ncmp     ecx, 78Dh                                                      ; +0x83, 0x1400dca93\njnz     short loc_1400DCACC                                            ; +0x89, 0x1400dca99\ncmp     byte ptr [rax+6F8h], 0                                         ; +0x8b, 0x1400dca9b\njz      short loc_1400DCACC                                            ; +0x92, 0x1400dcaa2\nmov     rax, [rbp+248h]                                                ; +0x94, 0x1400dcaa4\nmov     r8b, 1                                                         ; +0x9b, 0x1400dcaab\nmov     rdx, rdi                                                       ; +0x9e, 0x1400dcaae\nmov     rcx, [rax+38C8h]                                               ; +0xa1, 0x1400dcab1\nmov     rcx, [rcx+248h]                                                ; +0xa8, 0x1400dcab8\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xaf, 0x1400dcabf\nmov     byte ptr [rdi+6F8h], 0                                         ; +0xb5, 0x1400dcac5\nmov     rcx, rsi                                                       ; +0xbc, 0x1400dcacc\ninc     ebx                                                            ; +0xbf, 0x1400dcacf\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc1, 0x1400dcad1\ncmp     ebx, eax                                                       ; +0xc7, 0x1400dcad7\njb      short loc_1400DCA60                                            ; +0xc9, 0x1400dcad9\nmov     rdi, [rsp+28h+arg_10]                                          ; +0xcb, 0x1400dcadb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd0, 0x1400dcae0\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xd5, 0x1400dcae5\nadd     rsp, 20h                                                       ; +0xda, 0x1400dcaea\npop     rbp                                                            ; +0xde, 0x1400dcaee\nretn                                                                   ; +0xdf, 0x1400dcaef", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400daaa8", "<???> @ 0x14066e04c", "<???> @ 0x14066e080", "<???> @ 0x1406c8904"], "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"}