// // sub_B67138 from 0xb67138 to 0xb671b8 (128 bytes) // // 6 xrefs: // > fmt::internal::PrintfParser::Format @ 0xb6a8f4 // > fmt::internal::PrintfParser::Format @ 0xb6ab80 // > fmt::internal::PrintfParser::Format @ 0xb6aba4 // > fmt::BasicFormatter::format @ 0xb6b190 // > fmt::BasicFormatter::format @ 0xb6b3dc // > fmt::BasicFormatter::Format @ 0xb6b848 // // 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 __fastcall sub_B67138(__int64 *a1, _QWORD *a2) { unsigned __int8 *v2; // x6 __int64 v3; // x5 unsigned int v4; // w4 unsigned __int8 v5; // w3 __int64 result; // x0 v2 = (unsigned __int8 *)*a1; v3 = *a1 + 1; *a1 = v3; v4 = *v2 - 48; while ( 1 ) { v5 = v2[1]; v2 = (unsigned __int8 *)v3++; if ( (unsigned __int8)(v5 - 48) > 9u ) break; *a1 = v3; if ( v4 > *v2 - 48 + 10 * v4 ) v4 = -1; else v4 = *v2 - 48 + 10 * v4; } result = v4; if ( (v4 & 0x80000000) != 0 ) { result = 0; if ( !*a2 ) *a2 = "number is too big in format"; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source