// // sub_7610B0 from 0x7610b0 to 0x761112 (98 bytes) // // 1 xrefs: // > sub_76E7A4 @ 0x76e88c // // 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_7610B0(int a1, char *a2, int a3) { int v6; // r5 signed int v7; // r4 int v8; // r3 int v9; // r0 if ( a3 > 0 ) { v6 = 0; while ( 1 ) { v7 = a3 - v6; v8 = *(_DWORD *)(a1 + 12) - *(_DWORD *)(a1 + 8); if ( v8 ) { if ( v7 >= v8 ) v7 = *(_DWORD *)(a1 + 12) - *(_DWORD *)(a1 + 8); v6 += v7; memcpy(a2, *(const void **)(a1 + 8), v7); *(_DWORD *)(a1 + 8) += v7; if ( a3 <= v6 ) return v6; a2 += v7; } v9 = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 40))(a1); if ( v9 != -1 ) { ++v6; *a2++ = v9; if ( a3 > v6 ) continue; } return v6; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source