//
// sub_1004C7E84 from 0x1004c7e84 to 0x1004c7f34 (176 bytes)
//
// 3 xrefs:
// > EditorSFXManager::deserializeAll @ 0x1004c7bec
// > sub_1004C839C @ 0x1004c83ac
// > sub_1004C83D4 @ 0x1004c83e8
//
// 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 11:06:24 +0000
//
char *__fastcall sub_1004C7E84(_QWORD *a1, int a2)
{
__int64 *v3; // x0
char *v4; // x20
_QWORD *v5; // x0
int v7; // [xsp+0h] [xbp-30h] BYREF
int *v8; // [xsp+8h] [xbp-28h] BYREF
v7 = a2;
v3 = sub_100019268(a1, &v7);
if ( v3 )
return (char *)v3[3];
v4 = (char *)operator new(0x50u);
*(_QWORD *)v4 = 0;
*((_DWORD *)v4 + 2) = 1;
*(_OWORD *)(v4 + 12) = 0u;
*(_OWORD *)(v4 + 28) = 0u;
*(_OWORD *)(v4 + 44) = 0u;
*(_QWORD *)(v4 + 60) = 0;
*(_QWORD *)(v4 + 68) = 0xFFFFFFFFLL;
v5 = sub_1002E736C();
*(_QWORD *)v4 = v5;
cocos2d::CCObject::retain((__int64)v5);
v8 = &v7;
sub_10001A978((unsigned __int64)a1, &v7, (__int64)&unk_10076FAD5, &v8)[3] = v4;
return v4;
}