// // sub_1001DB514 from 0x1001db514 to 0x1001db5a0 (140 bytes) // // 5 xrefs: // > GJBaseGameLayer::init @ 0x1001daa88 // > GJBaseGameLayer::init @ 0x1001daa98 // > GJBaseGameLayer::init @ 0x1001daea4 // > sub_1003643FC @ 0x10036442c // > sub_100366FC4 @ 0x100367600 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall sub_1001DB514(__int64 a1, unsigned __int64 a2) { __int64 v3; // x20 char *v4; // x0 char *v5; // x21 __int64 v6; // x1 char *v7; // x22 size_t v8; // x2 char *v9; // x20 void *v10; // x0 if ( a2 > (__int64)(*(_QWORD *)(a1 + 16) - *(_QWORD *)a1) >> 3 ) { if ( a2 >> 61 ) sub_10000A5F8(); v3 = *(_QWORD *)(a1 + 8) - *(_QWORD *)a1; v4 = (char *)sub_1000181B8(a1, a2); v5 = &v4[v3]; v7 = &v4[8 * v6]; v8 = *(_QWORD *)(a1 + 8) - *(_QWORD *)a1; v9 = &v4[v3 - v8]; memcpy(v9, *(const void **)a1, v8); v10 = *(void **)a1; *(_QWORD *)a1 = v9; *(_QWORD *)(a1 + 8) = v5; *(_QWORD *)(a1 + 16) = v7; if ( v10 ) operator delete(v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source