//
// FileOperation::getFilePath from 0xb4148c to 0xb4156c (224 bytes)
//
// 8 xrefs:
// > FileOperation::saveFile @ 0xb4158c
// > FileOperation::readFile @ 0xb416a4
// > DS_Dictionary::saveRootSubDictToFile @ 0xb41c10
// > DS_Dictionary::copyFile @ 0xb421c8
// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0xb42734
// > DS_Dictionary::loadRootSubDictFromFile @ 0xb47c50
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0xb47e2c
// > ??> @ 0x9d998
//
// 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 __usercall FileOperation::getFilePath@(FileOperation *this@, __int64 a2@)
{
void *v3; // x0
unsigned int *v5; // x2
int v6; // w1
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
sub_D153B8(a2, &byte_F288A0);
cocos2d::CCFileUtils::sharedFileUtils();
sub_D18D28(&v7);
sub_D15E14(a2, &v7);
v3 = (void *)(v7 - 24);
if ( (__int64 *)(v7 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v5 = (unsigned int *)(v7 - 8);
do
v6 = __ldaxr(v5);
while ( __stlxr(v6 - 1, v5) );
}
else
{
v6 = *(_DWORD *)(v7 - 8);
*(_DWORD *)(v7 - 8) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v3);
}
return a2;
}