// // GJSmartTemplate::getVerySimplifiedKey from 0x9d0a94 to 0x9d0bcc (312 bytes) // // 7 xrefs: // > GJSmartTemplate::saveRemap @ 0x9d27ec // > GJSmartTemplate::saveRemap @ 0x9d2940 // > GJSmartTemplate::getPrefab @ 0x9d390c // > GJSmartTemplate::getPrefab @ 0x9d3a6c // > GJSmartTemplate::getPrefab @ 0x9d3af8 // > GJSmartTemplate::getPrefab @ 0x9d3bf8 // > @ 0xa1e38 // // 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 // __int64 *__usercall GJSmartTemplate::getVerySimplifiedKey@(__int64 *a1@, __int64 *a2@) { __int64 v3; // x0 unsigned __int64 v4; // x2 unsigned __int64 v6; // x19 int v7; // w24 int v8; // w1 _BYTE *v9; // x0 v3 = *a1; v4 = *(_QWORD *)(v3 - 24); if ( !v4 ) goto LABEL_14; v6 = 1; v7 = 0; while ( 1 ) { if ( v6 >= v4 ) sub_D13C5C("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)", v6, v4); if ( (*(_DWORD *)(v3 - 8) & 0x80000000) != 0 ) { v8 = *(unsigned __int8 *)(v3 + v6); v9 = (_BYTE *)(v3 + v6); if ( (unsigned int)(v8 - 48) <= 1 ) goto LABEL_5; goto LABEL_4; } sub_D176A8(a1); v9 = (_BYTE *)(*a1 + v6); if ( (unsigned int)(unsigned __int8)*v9 - 48 > 1 ) { if ( (*(_DWORD *)(*a1 - 8) & 0x80000000) == 0 ) { sub_D176A8(a1); v9 = (_BYTE *)(*a1 + v6); } LABEL_4: *v9 = 49; v7 = 1; } LABEL_5: if ( ++v6 == 9 ) break; v3 = *a1; v4 = *(_QWORD *)(*a1 - 24); } if ( !v7 ) { LABEL_14: sub_D153B8((int)a2, &byte_F288A0); return a2; } *a2 = *a1; *a1 = (__int64)&byte_124B6C8; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source