//
// cocos2d::CCFileUtils::fullPathFromRelativeFile from 0x7e93a4 to 0x7e94c2 (286 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:56 +0000
//
char *__fastcall cocos2d::CCFileUtils::fullPathFromRelativeFile(
cocos2d::CCFileUtils *this,
const char *a2,
const char *a3)
{
size_t v6; // r0
cocos2d::CCObject *v7; // r10
char *v8; // r2
int v9; // r3
char *v10; // r3
int v11; // t1
int v12; // r3
size_t v13; // r1
char *v14; // r2
char *v15; // r1
size_t v16; // r2
char *CString; // r4
int v19; // [sp+Ch] [bp+0h] BYREF
int v20; // [sp+10h] [bp+4h]
char *v21; // [sp+14h] [bp+8h]
int v22; // [sp+18h] [bp+Ch] BYREF
size_t v23; // [sp+1Ch] [bp+10h]
char *v24; // [sp+20h] [bp+14h]
v19 = 0;
v20 = 0;
v21 = nullptr;
v6 = strlen(a3);
std::string::__init(&v19, a3, v6);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, &unk_B6B226, 0);
v7 = cocos2d::CCString::create((int)&v22);
std::string::~string((int)&v22);
if ( (v19 & 1) != 0 )
{
v8 = v21;
v9 = v20;
}
else
{
v9 = (int)(unsigned __int8)v19 >> 1;
v8 = (char *)&v19 + 1;
}
if ( v9 )
{
v10 = &v8[v9];
while ( v10 != v8 )
{
v11 = (unsigned __int8)*--v10;
if ( v11 == 47 )
{
v12 = v10 - v8;
goto LABEL_9;
}
}
}
v12 = -1;
LABEL_9:
std::string::basic_string(&v22, (unsigned __int8 *)&v19, 0, v12 + 1);
if ( (*((_BYTE *)v7 + 52) & 1) != 0 )
{
**((_BYTE **)v7 + 15) = 0;
*((_DWORD *)v7 + 14) = 0;
}
else
{
*((_BYTE *)v7 + 53) = 0;
*((_BYTE *)v7 + 52) = 0;
}
std::string::reserve((int *)v7 + 13, 0);
v13 = v23;
v14 = v24;
*((_DWORD *)v7 + 13) = v22;
*((_DWORD *)v7 + 14) = v13;
*((_DWORD *)v7 + 15) = v14;
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::~string((int)&v22);
(*(void (__fastcall **)(int *, cocos2d::CCFileUtils *, const char *))(*(_DWORD *)this + 100))(&v22, this, a2);
if ( (v22 & 1) != 0 )
{
v15 = v24;
v16 = v23;
}
else
{
v16 = (int)(unsigned __int8)v22 >> 1;
v15 = (char *)&v22 + 1;
}
std::string::append((_DWORD *)v7 + 13, v15, v16);
std::string::~string((int)&v22);
CString = cocos2d::CCString::getCString(v7);
std::string::~string((int)&v19);
return CString;
}