// // sub_C878B8 from 0xc878b8 to 0xc87a20 (360 bytes) // // 1 xrefs: // > sub_C89A88 @ 0xc89b3c // // 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 // float __fastcall sub_C878B8(__int64 a1, __int64 a2) { double v2; // d8 __int64 v5; // x19 unsigned int v6; // w21 unsigned int v7; // w22 unsigned int v8; // w20 float v9; // s0 float v10; // s0 unsigned int v11; // w0 __int64 v12; // x0 float v13; // s9 float v14; // s0 float v16; // s0 v2 = 0.0; v5 = 0; v6 = 0; v7 = 0; do { v11 = *(_DWORD *)(a1 + v5); if ( v11 ) { v7 += v11; v8 = v11 + *(_DWORD *)(a2 + v5); if ( v11 > 0xFF ) ((void (*)(void))off_1260548)(); else v9 = flt_F55180[v11]; v6 += v8; v2 = v2 - v9; if ( v8 > 0xFF ) off_1260548(v8); else v10 = flt_F55180[v8]; goto LABEL_6; } v12 = *(unsigned int *)(a2 + v5); if ( (_DWORD)v12 ) { v6 += v12; if ( (unsigned int)v12 > 0xFF ) off_1260548(v12); else v10 = flt_F55180[(unsigned int)v12]; LABEL_6: v2 = v2 - v10; } v5 += 4; } while ( v5 != 1024 ); if ( v7 > 0xFF ) { off_1260548(v7); v13 = v16; } else { v13 = flt_F55180[v7]; } if ( v6 > 0xFF ) off_1260548(v6); else v14 = flt_F55180[v6]; return (float)(v13 + v14) + v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source