//
// sub_1004B3A78 from 0x1004b3a78 to 0x1004b3ac0 (72 bytes)
//
// 4 xrefs:
// > sub_10046240C @ 0x10046246c
// > sub_10046CDE4 @ 0x10046ce44
// > sub_10047B81C @ 0x10047b87c
// > sub_100480EE8 @ 0x100480f48
//
// 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
//
__int64 __fastcall sub_1004B3A78(_DWORD *a1, _DWORD *a2, int a3)
{
int v3; // w8
switch ( a3 )
{
case 1024:
v3 = *((unsigned __int8 *)a1 + a1[767] + 656);
break;
case 512:
v3 = a1[766];
break;
case 256:
v3 = a1[767];
break;
default:
v3 = a1[534];
break;
}
*a2 = v3;
return 0;
}