//
// sub_100308510 from 0x100308510 to 0x1003085b8 (168 bytes)
//
// 1 xrefs:
// > AchievementNotifier::notifyAchievement @ 0x1002b3124
//
// 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:03:09 +0000
//
_QWORD *__fastcall sub_100308510(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v8; // x19
v8 = operator new(0x1A0u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v8);
*v8 = &off_10092B608;
v8[40] = off_10092BA08;
v8[43] = 0;
*((_DWORD *)v8 + 88) = 0;
v8[45] = 0;
if ( (unsigned int)sub_1003085CC(v8, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((__int64)v8);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v8 + 16LL))(v8);
return nullptr;
}
return v8;
}