// // sub_4DB10 from 0x4db10 to 0x4dbdc (204 bytes) // // 1 xrefs: // > FMOD::Geometry::setPolygonVertex @ 0xb26ec // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:40:41 +0000 // int __fastcall sub_4DB10(_DWORD *a1, int a2, int a3, float *a4) { int v8; // r6 int v9; // r8 float *v10; // r0 int v11; // r2 int v12; // r3 int v14; // [sp+0h] [bp-20h] BYREF char v15; // [sp+4h] [bp-1Ch] v14 = *(_DWORD *)(a1[3] + 332); j_FMOD_OS_CriticalSection_Enter(v14); v15 = 1; if ( a2 < 0 || a1[7] <= a2 || a3 < 0 ) { v8 = 31; } else { v8 = 31; if ( a4 ) { v9 = a1[10] + *(_DWORD *)(a1[8] + 4 * a2); if ( *(unsigned __int16 *)(v9 + 144) > a3 ) { v10 = (float *)(v9 + 148 + 12 * a3); if ( *v10 != *a4 || v10[1] != a4[1] || v10[2] != a4[2] ) { v11 = *((_DWORD *)a4 + 1); v12 = *((_DWORD *)a4 + 2); *v10 = *a4; *((_DWORD *)v10 + 1) = v11; *((_DWORD *)v10 + 2) = v12; if ( (*(_BYTE *)(v9 + 24) & 0x40) != 0 ) { sub_5006E(a1 + 57); *(_DWORD *)(v9 + 56) = a1[12]; a1[12] = v9; } sub_4D4EE((int)a1); } v8 = 0; } } } sub_44984((int)&v14); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source