//
// sub_4D148 from 0x4d148 to 0x4d198 (80 bytes)
//
// 1 xrefs:
// > sub_4D8C4 @ 0x4d96a
//
// 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_4D148(int a1)
{
__int64 v2; // kr00_8
int result; // r0
int v4; // r0
v2 = *(_QWORD *)(a1 + 340);
++*(_DWORD *)(a1 + 344);
result = 0;
if ( !(_DWORD)v2 )
{
v4 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 24, "../../src/fmod_geometry_mgr.cpp", 375);
*(_DWORD *)(a1 + 340) = v4;
if ( v4 )
{
sub_4FCCA(v4, *(_DWORD *)(a1 + 352));
return 0;
}
else
{
return 38;
}
}
return result;
}