// // sub_1004AF230 from 0x1004af230 to 0x1004af374 (324 bytes) // // 1 xrefs: // > FMOD::Geometry::setPolygonVertex @ 0x1004ad9dc // // 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_1004AF230(__int64 a1, unsigned int a2, unsigned int a3, float *a4) { __int64 v8; // x19 __int64 v9; // x23 __int64 v10; // x22 __int64 v11; // x9 __int64 v12; // x8 __int64 v13; // x9 __int64 v14; // x8 v8 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 400LL); sub_1004B5C70(v8); if ( (a2 & 0x80000000) != 0 ) { v9 = 31; } else { v9 = 31; if ( *(_DWORD *)(a1 + 44) > (signed int)a2 && (a3 & 0x80000000) == 0 ) { if ( a4 ) { v10 = *(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2); if ( *(unsigned __int16 *)(v10 + 184) > a3 ) { v11 = v10 + 188; v12 = v10 + 188 + 12LL * a3; if ( *(float *)v12 == *a4 && *(float *)(v11 + 12LL * a3 + 4) == a4[1] && *(float *)(v11 + 12LL * a3 + 8) == a4[2] ) { goto LABEL_12; } v13 = *(_QWORD *)a4; *(float *)(v12 + 8) = a4[2]; *(_QWORD *)v12 = v13; if ( (*(_BYTE *)(v10 + 24) & 0x40) != 0 ) { sub_1004B4958(a1 + 272); *(_QWORD *)(v10 + 72) = *(_QWORD *)(a1 + 80); *(_QWORD *)(a1 + 80) = v10; } v14 = *(_QWORD *)(a1 + 24); *(_BYTE *)(v14 + 8) = 1; if ( *(_BYTE *)(a1 + 312) ) { LABEL_12: v9 = 0; } else { v9 = 0; *(_BYTE *)(a1 + 312) = 1; *(_QWORD *)(a1 + 304) = *(_QWORD *)(v14 + 432); *(_QWORD *)(v14 + 432) = a1; } } } } } sub_1004B5CA0(v8); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source