// // sub_774B90 from 0x774b90 to 0x774bc2 (50 bytes) // // 0 xrefs: // // 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 // int __fastcall sub_774B90(int *a1, int a2, unsigned int a3) { int v3; // r4 int v4; // r3 int result; // r0 unsigned int v6; // r3 unsigned __int8 *v7; // r2 int v8; // t1 v3 = *a1; v4 = *(_DWORD *)(*a1 - 12); if ( v4 ) { v6 = v4 - 1; if ( a3 > v6 ) v7 = (unsigned __int8 *)(v3 + v6); else v7 = (unsigned __int8 *)(v3 + a3); while ( 1 ) { result = (int)&v7[-v3]; if ( v7 == (unsigned __int8 *)(v3 - 1) ) break; v8 = *v7--; if ( a2 == v8 ) return result; } } return -1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source