//
// sub_4D1A0 from 0x4d1a0 to 0x4d1e0 (64 bytes)
//
// 1 xrefs:
// > sub_4D760 @ 0x4d7f0
//
// 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_4D1A0(int a1)
{
int v2; // r0
bool v3; // cc
int result; // r0
int v5; // r1
v2 = *(_DWORD *)(a1 + 344);
v3 = v2 <= 1;
result = v2 - 1;
*(_DWORD *)(a1 + 344) = result;
if ( v3 )
{
*(_DWORD *)(a1 + 344) = 0;
v5 = *(_DWORD *)(a1 + 340);
if ( v5 )
{
result = sub_BD7AC(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
v5,
"../../src/fmod_geometry_mgr.cpp",
400,
1);
*(_DWORD *)(a1 + 340) = 0;
}
}
return result;
}