// // sub_774FAC from 0x774fac to 0x775006 (90 bytes) // // 4 xrefs: // > GameToolbox::getResponse @ 0x2ebe80 // > sub_75C2D4 @ 0x75c2de // > sub_77500C @ 0x77503e // > sub_775A4C @ 0x775a66 // // 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 // _DWORD *__fastcall sub_774FAC(unsigned int a1, unsigned int a2) { unsigned int v2; // r4 _BOOL4 v3; // r0 _DWORD *result; // r0 v2 = a1; if ( a1 > 0x3FFFFFFC ) sub_7731C4("basic_string::_S_create"); if ( a1 > a2 ) { if ( a1 < 2 * a2 ) v2 = 2 * a2; v3 = v2 + 29 > 0x1000; if ( a2 >= v2 ) v3 = 0; if ( v3 ) { v2 = v2 + 4096 - (((_WORD)v2 + 29) & 0xFFF); if ( v2 >= 0x3FFFFFFC ) v2 = 1073741820; } } result = operator new(v2 + 13); result[1] = v2; result[2] = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source