// // sub_4D8C4 from 0x4d8c4 to 0x4d9ba (246 bytes) // // 2 xrefs: // > sub_4E314 @ 0x4e420 // > sub_5B63C @ 0x5b6b0 // // 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_4D8C4(int *a1, int a2, int a3) { int v6; // r5 int v8; // r0 int v9; // r0 void *v10; // r0 int v11; // r1 int v12; // [sp+10h] [bp-20h] BYREF char v13; // [sp+14h] [bp-1Ch] v12 = *(_DWORD *)(a1[3] + 332); j_FMOD_OS_CriticalSection_Enter(v12); v13 = 1; if ( !a1[10] && !a1[8] ) { a1[4] = a3; a1[5] = 0; a1[6] = a2; a1[7] = 0; v8 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 4 * a3, "../../src/fmod_geometryi.cpp", 449); a1[8] = v8; if ( v8 ) { a1[9] = 0; v9 = sub_BD410( *(int *)((char *)&dword_14C + (_DWORD)off_E8000), 148 * a2 + 12 * a3, "../../src/fmod_geometryi.cpp", 458); a1[10] = v9; if ( v9 ) { v6 = sub_4D148(a1[3]); if ( v6 ) goto LABEL_4; v10 = (void *)sub_BD410( *(int *)((char *)&dword_14C + (_DWORD)off_E8000), 124, "../../src/fmod_geometryi.cpp", 470); a1[56] = (int)v10; if ( v10 ) { memset(v10, 0, 0x7Cu); v11 = a1[56]; *(_DWORD *)(v11 + 120) = a1; sub_5032A(*(_DWORD *)(a1[3] + 340), v11 + 60); v6 = 0; goto LABEL_4; } } } v6 = 38; goto LABEL_4; } v6 = 28; LABEL_4: sub_44984((int)&v12); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source