//
// cocos2d::CCDictionary::writeToFile from 0x18000c610 to 0x18000c6a6 (150 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ade40
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall cocos2d::CCDictionary::writeToFile(cocos2d::CCDictionary *this, char *a2)
{
struct cocos2d::CCFileUtils *v3; // rax
unsigned __int8 v4; // bl
void *v5; // rcx
void *Block[3]; // [rsp+20h] [rbp-38h] BYREF
unsigned __int64 v8; // [rsp+38h] [rbp-20h]
sub_180005910(Block, a2);
v3 = cocos2d::CCFileUtils::sharedFileUtils();
v4 = ((__int64 (__fastcall *)(struct cocos2d::CCFileUtils *, cocos2d::CCDictionary *, void **))v3->__vftable[1].getClassTypeInfo)(
v3,
this,
Block);
if ( v8 > 0xF )
{
v5 = Block[0];
if ( v8 + 1 >= 0x1000 )
{
v5 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v5);
}
return v4;
}