//
// cocos2d::CCFileUtilsMac::writeToFile from 0x1006e6440 to 0x1006e64ec (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b93ff0
//
// 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:35:47 +0000
//
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_1006E64F0(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;
}