//
// sub_180079AE0 from 0x180079ae0 to 0x180079b84 (164 bytes)
//
// 3 xrefs:
// > cocos2d::CCFileUtils::CCFileUtils @ 0x180079ec5
// > cocos2d::CCFileUtils::operator= @ 0x18007a093
// > ??> @ 0x1801b4b9c
//
// 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
//
__int64 __fastcall sub_180079AE0(_QWORD *a1, _QWORD *a2)
{
_QWORD *v4; // r8
__int64 **v5; // rdx
__int64 *i; // rcx
__int64 v7; // rcx
__int64 result; // rax
*(_QWORD *)(*a1 + 8LL) = sub_180079B90(a1, *(_QWORD *)(*a2 + 8LL), *a1);
v4 = (_QWORD *)*a1;
a1[1] = a2[1];
v5 = (__int64 **)v4[1];
if ( *((_BYTE *)v5 + 25) )
{
*v4 = v4;
result = *a1;
*(_QWORD *)(*a1 + 16LL) = *a1;
}
else
{
for ( i = *v5; !*((_BYTE *)i + 25); i = (__int64 *)*i )
v5 = (__int64 **)i;
*v4 = v5;
v7 = *(_QWORD *)(*a1 + 8LL);
for ( result = *(_QWORD *)(v7 + 16); !*(_BYTE *)(result + 25); result = *(_QWORD *)(result + 16) )
v7 = result;
*(_QWORD *)(*a1 + 16LL) = v7;
}
return result;
}