//
// cocos2d::CCUserDefault::getIntegerForKey from 0x7f6bb0 to 0x7f6c24 (116 bytes)
//
// 1 xrefs:
// > cocos2d::CCUserDefault::getIntegerForKey @ 0x7f6c2a
//
// 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:01:10 +0000
//
int __fastcall cocos2d::CCUserDefault::getIntegerForKey(
cocos2d::CCUserDefault *this,
tinyxml2::XMLDocument *a2,
int a3)
{
FILE *v6; // r0
tinyxml2::XMLNode **v7; // r5
char *IO_write_end; // r0
const char *Str; // r0
int v10; // r4
tinyxml2::XMLDocument *v12[2]; // [sp+0h] [bp-8h] BYREF
v12[1] = a2;
v12[0] = nullptr;
v6 = sub_7F69E0(a2, v12);
v7 = (tinyxml2::XMLNode **)v6;
if ( v6 )
{
IO_write_end = v6->_IO_write_end;
if ( IO_write_end )
{
Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(IO_write_end + 12));
v10 = atoi(Str);
cocos2d::CCUserDefault::setIntegerForKey(this, a2, v10);
cocos2d::CCUserDefault::flush(this);
sub_7F69A8((int)v12[0], v7);
return v10;
}
sub_7F69A8((int)v12[0], v7);
}
return getIntegerForKeyJNI((const char *)a2, a3);
}