// // LevelEditorLayer::lockedLayerForObjectString from 0x799c1c to 0x799f7c (864 bytes) // // 2 xrefs: // > EditorUI::pasteObjects @ 0xbd9604 // > @ 0x5af40 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:53:36 +0000 // __int64 __fastcall LevelEditorLayer::lockedLayerForObjectString(__int64 a1, unsigned __int8 *a2) { _BYTE *v3; // x0 __int64 v4; // x23 unsigned __int64 i; // x24 unsigned __int64 v6; // x0 char *v7; // x27 int v8; // w22 int v9; // w21 char *v10; // x19 int v11; // w0 const char *v12; // x0 int v13; // w0 unsigned int locked; // w21 char *v15; // x19 char *v16; // x0 const char *v17; // x0 _BYTE *v18; // x19 _BYTE *v19; // x20 char *v21; // x19 char *v22; // x0 void *v23; // [xsp+78h] [xbp+78h] BYREF _BYTE *v24; // [xsp+80h] [xbp+80h] __int64 v25; // [xsp+88h] [xbp+88h] void *v26; // [xsp+90h] [xbp+90h] BYREF char *v27; // [xsp+98h] [xbp+98h] __int64 v28; // [xsp+A0h] [xbp+A0h] if ( !*(_DWORD *)(a1 + 14552) ) return (unsigned int)-1; v23 = nullptr; v24 = nullptr; v25 = 0; sub_79945C(a2, ";", (__int64 *)&v23); v3 = v23; if ( !(0xAAAAAAAAAAAAAAABLL * ((v24 - (_BYTE *)v23) >> 3)) ) { LABEL_31: v18 = v3; locked = -1; goto LABEL_32; } v4 = 0; for ( i = 1; ; ++i ) { v26 = nullptr; v27 = nullptr; v28 = 0; sub_79945C(&v3[v4], &byte_1169BE0, (__int64 *)&v26); v6 = 0xAAAAAAAAAAAAAAABLL * ((v27 - (_BYTE *)v26) >> 3); if ( v6 > 1 ) { v7 = (char *)v26 + 25; v8 = 0; v9 = 0; v10 = (char *)v26 + 48 * ((v6 - 2) >> 1) + 73; while ( 1 ) { if ( (*(v7 - 25) & 1) != 0 ) { v11 = atoi(*(const char **)(v7 - 9)); if ( v11 != 20 ) goto LABEL_7; LABEL_11: v12 = v7; if ( (*(v7 - 1) & 1) != 0 ) v12 = *(const char **)(v7 + 15); v7 += 48; v9 = atoi(v12); if ( v7 == v10 ) goto LABEL_14; } else { v11 = atoi(v7 - 24); if ( v11 == 20 ) goto LABEL_11; LABEL_7: if ( v11 == 61 ) { v17 = v7; if ( (*(v7 - 1) & 1) != 0 ) v17 = *(const char **)(v7 + 15); v8 = atoi(v17); } v7 += 48; if ( v7 == v10 ) goto LABEL_14; } } } v8 = 0; v9 = 0; LABEL_14: v13 = *(__int16 *)(a1 + 14210); if ( v13 != -1 && !*(_BYTE *)(a1 + 14152) && v13 != v9 && v13 != v8 ) v9 = *(__int16 *)(a1 + 14210); locked = LevelEditorLayer::lockedLayerForObject((LevelEditorLayer *)a1, v9, v8); if ( locked != -1 ) break; v15 = (char *)v26; if ( v26 ) { v16 = v27; if ( v26 != v27 ) { do { v27 = v16 - 24; std::string::~string((__int64)(v16 - 24)); v16 = v27; } while ( v15 != v27 ); v16 = (char *)v26; } operator delete(v16); } v3 = v23; v4 += 24; if ( 0xAAAAAAAAAAAAAAABLL * ((v24 - (_BYTE *)v23) >> 3) <= i ) goto LABEL_31; } v21 = (char *)v26; if ( v26 ) { v22 = v27; if ( v26 != v27 ) { do { v27 = v22 - 24; std::string::~string((__int64)(v22 - 24)); v22 = v27; } while ( v21 != v27 ); v22 = (char *)v26; } operator delete(v22); } v18 = v23; LABEL_32: if ( v18 ) { v19 = v24; if ( v24 != v18 ) { do { v24 = v19 - 24; std::string::~string((__int64)(v19 - 24)); v19 = v24; } while ( v24 != v18 ); v18 = v23; } operator delete(v18); } return locked; }
GD Web Decomp Icon

GD Web Decomp

Raw Source