//
// SpriteAnimationManager::initWithOwner from 0x1007fffc0 to 0x10080019a (474 bytes)
//
// 1 xrefs:
// > SpriteAnimationManager::createWithOwner @ 0x1007fff68
//
// This function is hookable on this platform (idp: pc, 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 12:36:37 +0000
//
char __fastcall SpriteAnimationManager::initWithOwner(__int64 a1, __int64 a2, __int128 *a3)
{
_QWORD *v4; // rax
_QWORD *v5; // rax
_QWORD *v6; // rax
_QWORD *v7; // rax
__int64 v8; // r15
__int64 v9; // rax
_QWORD *v10; // rax
__int64 v11; // r15
__int64 v12; // rax
__int128 v14; // [rsp+0h] [rbp-70h] BYREF
void *v15; // [rsp+10h] [rbp-60h]
__int128 v16; // [rsp+20h] [rbp-50h] BYREF
void *v17; // [rsp+30h] [rbp-40h]
char v18; // [rsp+38h] [rbp-38h] BYREF
char v19[15]; // [rsp+39h] [rbp-37h] BYREF
void *__p; // [rsp+48h] [rbp-28h]
*(_QWORD *)(a1 + 320) = a2;
v4 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 392) = v4;
cocos2d::CCObject::retain((__int64)v4);
v5 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 344) = v5;
cocos2d::CCObject::retain((__int64)v5);
v6 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 384) = v6;
cocos2d::CCObject::retain((__int64)v6);
v7 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 328) = v7;
cocos2d::CCObject::retain((__int64)v7);
v8 = *(_QWORD *)(a1 + 328);
v9 = sub_10088E820("%i", v14);
v18 = 16;
strcpy(v19, "not_used");
cocos2d::CCDictionary::setObject(v8, v9, &v18);
if ( (v18 & 1) != 0 )
operator delete(__p);
v10 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 336) = v10;
cocos2d::CCObject::retain((__int64)v10);
v11 = *(_QWORD *)(a1 + 336);
v12 = sub_10088E820("%i", v14);
v18 = 16;
strcpy(v19, "not_used");
cocos2d::CCDictionary::setObject(v11, v12, &v18);
if ( (v18 & 1) != 0 )
operator delete(__p);
std::string::assign((std::string *)(a1 + 352), "not_used");
std::string::assign((std::string *)(a1 + 400), "not_used");
std::string::assign((std::string *)(a1 + 424), "not_used");
if ( (*(_BYTE *)a3 & 1) != 0 )
{
sub_10001AD30(&v14, *((const void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v15 = *((void **)a3 + 2);
v14 = *a3;
}
SpriteAnimationManager::createAnimations(&v14);
if ( (v14 & 1) != 0 )
operator delete(v15);
if ( (*(_BYTE *)a3 & 1) != 0 )
{
sub_10001AD30(&v16, *((const void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v17 = *((void **)a3 + 2);
v16 = *a3;
}
SpriteAnimationManager::loadAnimations(a1, &v16);
if ( (v16 & 1) != 0 )
operator delete(v17);
return 1;
}