// // sub_680254 from 0x680254 to 0x6802e4 (144 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_680254(_DWORD *a1, int a2, int a3, int a4, int a5, _DWORD *a6) { _DWORD *v7; // r4 unsigned int v11; // r7 int v12; // r0 int result; // r0 unsigned int v14; // r3 unsigned int v15; // r2 int v16; // r3 unsigned int v17; // r5 v7 = (_DWORD *)a1[114]; v11 = v7[6]; if ( v11 ) { v12 = v7[3]; } else { v12 = (*(int (__fastcall **)(_DWORD *))(a1[1] + 28))(a1); v11 = v7[6]; v7[3] = v12; } result = (*(int (__fastcall **)(_DWORD *, int, int, int, int, _DWORD *, _DWORD))(a1[119] + 4))( a1, a2, a3, a4, v12, v7 + 6, v7[4]); v14 = v7[6]; if ( v14 > v11 ) { v17 = v14 - v11; result = (*(int (__fastcall **)(_DWORD *, unsigned int, _DWORD, unsigned int))(a1[121] + 4))( a1, v7[3] + 4 * v11, 0, v14 - v11); *a6 += v17; v14 = v7[6]; } v15 = v7[4]; if ( v15 <= v14 ) { v16 = v7[5]; v7[6] = 0; v7[5] = v15 + v16; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source