//
// cocos2d::CCFileUtilsWin32::fullPathForFilename from 0x18007a2c0 to 0x18007a36d (173 bytes)
//
// 3 xrefs:
// > ??> @ 0x180101160
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4c98
//
// 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
//
// Hidden C++ exception states: #wind=1
__m128i *__fastcall cocos2d::CCFileUtilsWin32::fullPathForFilename(__int64 *a1, __m128i *a2, __int64 a3)
{
void **v5; // r8
void *v6; // rcx
void *Block[3]; // [rsp+30h] [rbp-38h] BYREF
unsigned __int64 v9; // [rsp+48h] [rbp-20h]
cocos2d::CCFileUtilsWin32::utf8Togbk(a1, Block, a3);
v5 = Block;
if ( v9 > 0xF )
v5 = (void **)Block[0];
cocos2d::CCFileUtils::fullPathForFilename(a1, a2, v5, 0);
if ( v9 > 0xF )
{
v6 = Block[0];
if ( v9 + 1 >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v6);
}
return a2;
}