// // sub_A3CF0 from 0xa3cf0 to 0xa3ddc (236 bytes) // // 2 xrefs: // > sub_A40E0 @ 0xa4734 // > sub_A495C @ 0xa4e2c // // 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_A3CF0(__int64 a1, _BYTE *a2) { __int64 v2; // x8 int v3; // w9 int v4; // w9 int v5; // w11 int v6; // w10 int v7; // w9 int v8; // w12 int v9; // w10 __int64 result; // x0 int v11; // w9 char v12; // w10 v2 = *(_QWORD *)(a1 + 8); switch ( a2[1287] ) { case 0: v3 = byte_114028[*(int *)(v2 + 180)]; break; case 1: if ( *(int *)(v2 + 180) < 128 ) v3 = 64; else v3 = -64; break; case 2: v4 = *(_DWORD *)(v2 + 180) + 128; goto LABEL_9; case 3: v4 = 384 - *(_DWORD *)(v2 + 180); LABEL_9: v3 = (((v4 / 256) << 8) - v4 + 128) >> 1; break; default: v3 = 0; break; } v5 = (unsigned __int8)a2[1288]; v6 = *(_DWORD *)(v2 + 184); v7 = v3 * (unsigned __int8)a2[1289]; if ( a2[1288] ) v7 = v6 * v7 / v5; v8 = *(_DWORD *)(v2 + 80); if ( v6 < v5 ) v9 = v6 + 1; else v9 = (unsigned __int8)a2[1288]; *(_DWORD *)(v2 + 184) = v9; *(_DWORD *)(v2 + 80) = v8 + (v7 >> 6); result = 0; v11 = *(_DWORD *)(v2 + 180) + (unsigned __int8)a2[1290]; v12 = *(_BYTE *)(v2 + 60) | 1; if ( v11 > 255 ) v11 -= 256; *(_DWORD *)(v2 + 180) = v11; *(_BYTE *)(v2 + 60) = v12; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source