//
// sub_1005F65B0 from 0x1005f65b0 to 0x1005f666c (188 bytes)
//
// 0 xrefs:
//
// 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_1005F65B0(cocos2d::CCRenderTexture *a1, const std::string::value_type *a2)
{
cocos2d::CCFileUtils *v2; // rax
std::string *v3; // rax
std::string v5; // [rsp+8h] [rbp-48h] BYREF
__int128 v6; // [rsp+20h] [rbp-30h]
void *__p; // [rsp+30h] [rbp-20h]
if ( cocos2d::CCRenderTexture::newCCImage(a1, 1) )
{
v2 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(std::string *, cocos2d::CCFileUtils *))v2->init)(&v5, v2);
v3 = std::string::append(&v5, a2);
__p = v3->__r_.__value_.__l.__data_;
v6 = *(_OWORD *)&v3->__r_.__value_.__l.0;
*(_OWORD *)&v3->__r_.__value_.__l.0 = 0;
v3->__r_.__value_.__r.__words[2] = 0;
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v5.__r_.__value_.__l.__data_);
sub_10048A800();
}
return 0;
}