//
// cocos2d::CCUserDefault::setDoubleForKey from 0xd90b5c to 0xd90c24 (200 bytes)
//
// 2 xrefs:
// > cocos2d::CCUserDefault::getDoubleForKey @ 0xd90c94
// > ??> @ 0x7f6f0
//
// This function is hookable on this platform (idp: arm, 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 13:08:18 +0000
//
__int64 __fastcall cocos2d::CCUserDefault::setDoubleForKey(cocos2d::CCUserDefault *this, const char *a2, double a3)
{
tinyxml2::XMLNode **v5; // x0
tinyxml2::XMLDocument *v6; // x20
cocos2d::CCUserDefault *v7; // x0
cocos2d::CCUserDefault *v8; // x0
__int64 *XMLFilePath; // x0
const char *v10; // x1
tinyxml2::XMLDocument *v12; // [xsp+30h] [xbp+30h] BYREF
v12 = nullptr;
v5 = (tinyxml2::XMLNode **)sub_D904E4(a2, &v12);
v6 = v12;
if ( v5 )
{
v7 = (cocos2d::CCUserDefault *)tinyxml2::XMLNode::DeleteChild(v5[2], (tinyxml2::XMLNode *)v5);
v8 = cocos2d::CCUserDefault::sharedUserDefault(v7);
XMLFilePath = cocos2d::CCUserDefault::getXMLFilePath(v8);
v10 = (char *)XMLFilePath + 1;
if ( (*(_BYTE *)XMLFilePath & 1) != 0 )
v10 = (const char *)XMLFilePath[2];
tinyxml2::XMLDocument::SaveFile(v6, v10, 0);
if ( v6 )
(*(void (__fastcall **)(tinyxml2::XMLDocument *))(*(_QWORD *)v6 + 136LL))(v6);
}
setDoubleForKeyJNI(a2, a3);
return _stack_chk_guard;
}