//
// sub_10004A4B8 from 0x10004a4b8 to 0x10004a610 (344 bytes)
//
// 6 xrefs:
// > sub_10000E3B8 @ 0x10000ea04
// > sub_1002FB254 @ 0x1002fc378
// > sub_1002FB254 @ 0x1002fc49c
// > EnterEffectObject::customObjectSetup @ 0x10041d084
// > EffectGameObject::customObjectSetup @ 0x10041e0bc
// > EffectGameObject::customObjectSetup @ 0x10041fd24
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 10:57:40 +0000
//
__int64 __fastcall sub_10004A4B8(__int64 a1, char *a2)
{
__int64 v2; // x8
_QWORD v4[3]; // [xsp+0h] [xbp-50h] BYREF
void **v5; // [xsp+18h] [xbp-38h] BYREF
v2 = *(unsigned __int8 *)(a1 + 23);
if ( (v2 & 0x80u) != 0LL )
v2 = *(_QWORD *)(a1 + 8);
if ( v2 )
{
memset(v4, 0, sizeof(v4));
sub_10004A628(a1, a2);
v5 = (void **)v4;
sub_100018250(&v5);
}
return xmmword_1009F28F0;
}