// // sub_B671B8 from 0xb671b8 to 0xb67234 (124 bytes) // // 6 xrefs: // > fmt::BasicFormatter::format @ 0xb6eee0 // > fmt::BasicFormatter::format @ 0xb6f18c // > fmt::BasicFormatter::Format @ 0xb6f718 // > fmt::internal::PrintfParser::Format @ 0xb6f860 // > fmt::internal::PrintfParser::Format @ 0xb6fae4 // > fmt::internal::PrintfParser::Format @ 0xb6fb14 // // 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_B671B8(__int64 *a1, _QWORD *a2) { int *v2; // x6 __int64 v3; // x4 unsigned int v4; // w3 int v5; // w5 int v6; // w5 __int64 result; // x0 v2 = (int *)*a1; v3 = *a1 + 4; *a1 = v3; v4 = *v2 - 48; while ( 1 ) { v6 = v2[1]; v2 = (int *)v3; v3 += 4; if ( (unsigned int)(v6 - 48) > 9 ) break; v5 = *v2; *a1 = v3; if ( v4 > v5 - 48 + 10 * v4 ) v4 = -1; else v4 = v5 - 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