//
// cocos2d::CCUserDefault::getStringForKey from 0x1800a2780 to 0x1800a2847 (199 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c18b4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:14 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall cocos2d::CCUserDefault::getStringForKey(__int64 a1, __int64 a2, __int64 a3)
{
void *v6; // rcx
void *Block[3]; // [rsp+40h] [rbp-38h] BYREF
unsigned __int64 v9; // [rsp+58h] [rbp-20h]
sub_180005A10(Block, (char *)Text);
cocos2d::CCUserDefault::getStringForKey(a1, a2, a3, Block);
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 )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v6);
}
return a2;
}