//
// sub_4D148 from 0x4d148 to 0x4d198 (80 bytes)
//
// 1 xrefs:
// > sub_4D8C4 @ 0x4d96a
//
// 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_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;
}