//
// cocos2d::CCDictionary::createWithContentsOfFileThreadSafe from 0x18000a370 to 0x18000a41c (172 bytes)
//
// 4 xrefs:
// > cocos2d::CCDictionary::createWithContentsOfFile @ 0x18000a356
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x1800955db
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7ccc
//
// 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:21:19 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCDictionary *__fastcall cocos2d::CCDictionary::createWithContentsOfFileThreadSafe(char *Str)
{
struct cocos2d::CCFileUtils *v1; // rax
__int64 v2; // rbx
void *v3; // r8
void *Block[3]; // [rsp+30h] [rbp-38h] BYREF
unsigned __int64 v6; // [rsp+48h] [rbp-20h]
sub_180005A10(Block, Str);
v1 = cocos2d::CCFileUtils::sharedFileUtils();
v2 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **))(*(_QWORD *)v1 + 232LL))(v1, Block);
if ( v6 > 0xF )
{
v3 = Block[0];
if ( v6 + 1 >= 0x1000 )
{
v3 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v3);
}
return (struct cocos2d::CCDictionary *)v2;
}