//
// PlatformToolbox::loadAndDecryptFileToString from 0x10016ba68 to 0x10016bb8c (292 bytes)
//
// 1 xrefs:
// > GManager::tryLoadData @ 0x10024aca0
//
// 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
//
std::string *__fastcall PlatformToolbox::loadAndDecryptFileToString(__int64 a1, __int64 a2, std::string *a3)
{
id v4; // x20
v4 = -[NSData decryptedWithKey:](
+[NSData dataWithContentsOfFile:](
&OBJC_CLASS___NSData,
"dataWithContentsOfFile:",
objc_msgSend(
-[NSArray objectAtIndex:](
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, 1u, 1),
"objectAtIndex:",
0),
"stringByAppendingPathComponent:",
+[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", a1))),
"decryptedWithKey:",
-[NSString dataUsingEncoding:](
+[NSString stringWithString:](
&OBJC_CLASS___NSString,
"stringWithString:",
+[NSString stringWithFormat:](
&OBJC_CLASS___NSString,
"stringWithFormat:",
CFSTR("%c%c%s%@%c%s%c%s%@%s"),
105,
112,
"u9TUv54y",
CFSTR("v]isFM"),
104,
"5@;t.5w3",
52,
"E2Ry@{",
CFSTR("lXrRCGEN"),
"IiB@")),
"dataUsingEncoding:",
4));
return std::string::assign(
a3,
(const std::string::value_type *)objc_msgSend(v4, "bytes"),
(std::string::size_type)objc_msgSend(v4, "length"));
}