//
// cocos2d::CCAnimationCache::addAnimationsWithFile from 0x18008d700 to 0x18008d7cd (205 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfd48
//
// 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 11:22:06 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCAnimationCache::addAnimationsWithFile(cocos2d::CCAnimationCache *this, const char *a2)
{
struct cocos2d::CCFileUtils *v4; // rax
void **v5; // rcx
struct cocos2d::CCDictionary *v6; // rax
void *v7; // rcx
void *Block[3]; // [rsp+30h] [rbp-38h] BYREF
unsigned __int64 v9; // [rsp+48h] [rbp-20h]
v4 = cocos2d::CCFileUtils::sharedFileUtils();
(*(void (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))(*(_QWORD *)v4 + 40LL))(
v4,
Block,
a2,
0);
v5 = Block;
if ( v9 > 0xF )
v5 = (void **)Block[0];
v6 = cocos2d::CCDictionary::createWithContentsOfFile((const char *)v5);
cocos2d::CCAnimationCache::addAnimationsWithDictionary(this, v6, a2);
if ( v9 > 0xF )
{
v7 = Block[0];
if ( v9 + 1 >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v7);
}
}