//
// sub_4D1A0 from 0x4d1a0 to 0x4d1e0 (64 bytes)
//
// 1 xrefs:
// > sub_4D760 @ 0x4d7f0
//
// 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_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;
}