// // LevelEditorLayer::lockedLayerForObjectString from 0x46a064 to 0x46a1be (346 bytes) // // 1 xrefs: // > EditorUI::pasteObjects @ 0x6f2dd8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:48:59 +0000 // unsigned int __fastcall LevelEditorLayer::lockedLayerForObjectString(int a1, unsigned __int8 *a2) { unsigned int i; // r6 int v4; // r11 int v5; // r4 int v6; // r10 const char *v7; // r0 int v8; // r0 const char *v9; // r0 const char *v10; // r0 int v11; // r3 unsigned int locked; // r4 unsigned int v14; // [sp+4h] [bp-30h] int v15; // [sp+14h] [bp-20h] BYREF int v16; // [sp+18h] [bp-1Ch] int v17; // [sp+1Ch] [bp-18h] int v18; // [sp+20h] [bp-14h] BYREF int v19; // [sp+24h] [bp-10h] int v20; // [sp+28h] [bp-Ch] if ( !*(_DWORD *)(a1 + 12012) ) return -1; v15 = 0; v16 = 0; v17 = 0; sub_469BE4(a2, ";", &v15); for ( i = 0; i < -1431655765 * ((v16 - v15) >> 2); ++i ) { v18 = 0; v19 = 0; v20 = 0; sub_469BE4((unsigned __int8 *)(v15 + 12 * i), ",", &v18); v4 = v18 + 13; v5 = 0; v6 = 0; v14 = v18 + 24 * ((unsigned int)(-1431655765 * ((v19 - v18) >> 2)) >> 1) + 13; while ( v4 != v14 ) { if ( (*(_BYTE *)(v4 - 13) & 1) != 0 ) v7 = *(const char **)(v4 - 5); else v7 = (const char *)(v4 - 12); v8 = atoi(v7); if ( v8 == 20 ) { if ( (*(_BYTE *)(v4 - 1) & 1) != 0 ) v9 = *(const char **)(v4 + 7); else v9 = (const char *)v4; v6 = atoi(v9); } else if ( v8 == 61 ) { if ( (*(_BYTE *)(v4 - 1) & 1) != 0 ) v10 = *(const char **)(v4 + 7); else v10 = (const char *)v4; v5 = atoi(v10); } v4 += 24; } v11 = *(__int16 *)(a1 + 11826); if ( v11 != -1 && !*(_BYTE *)(a1 + 11784) && v6 != v11 && v5 != v11 ) v6 = *(__int16 *)(a1 + 11826); locked = LevelEditorLayer::lockedLayerForObject((LevelEditorLayer *)a1, v6, v5); if ( locked != -1 ) { std::__vector_base::~__vector_base((int)&v18); goto LABEL_29; } std::__vector_base::~__vector_base((int)&v18); } locked = -1; LABEL_29: std::__vector_base::~__vector_base((int)&v15); return locked; }
GD Web Decomp Icon

GD Web Decomp

Raw Source