//
// cocos2d::CCFileUtilsMac::writeToFile from 0x10060cc60 to 0x10060cd0c (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x100980620
//
// 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
//
bool __fastcall cocos2d::CCFileUtilsMac::writeToFile(__int64 a1, __int64 a2, __int64 a3)
{
id v4; // r14
__int64 v5; // rdi
__int64 v6; // r15
__int64 v7; // rbx
NSString *v8; // rax
v4 = +[NSMutableDictionary dictionary](&OBJC_CLASS___NSMutableDictionary, "dictionary");
if ( a2 )
{
v5 = *(_QWORD *)(a2 + 56);
if ( v5 )
{
do
{
v6 = *(_QWORD *)(v5 + 288);
sub_10060CD10(v5, *(_QWORD *)(v5 + 264), v4);
v5 = v6;
}
while ( v6 );
}
}
if ( (*(_BYTE *)a3 & 1) != 0 )
v7 = *(_QWORD *)(a3 + 16);
else
v7 = a3 + 1;
v8 = +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", v7);
return (unsigned __int8)objc_msgSend(v4, "writeToFile:atomically:", v8, 1) != 0;
}