//
// AutoBackupOptionsPopup::valueDidChange from 0x1400ce2a0 to 0x1400ce3fb (347 bytes)
//
// 2 xrefs:
// > ??> @ 0x140726148
// > ??> @ 0x14091412c
//
// 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:26:24 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall AutoBackupOptionsPopup::valueDidChange(__int64 a1, int a2, float a3)
{
int v3; // edi
__int64 v4; // rbx
__int64 v5; // rbx
struct cocos2d::CCString *v6; // rax
void *v7; // rcx
void *v8; // [rsp+30h] [rbp-38h]
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__int64 v10; // [rsp+48h] [rbp-20h]
unsigned __int64 v11; // [rsp+50h] [rbp-18h]
if ( a2 == -1 )
{
v3 = (int)a3;
if ( (int)a3 > 1000 )
v3 = 1000;
if ( v3 < 0 )
v3 = 0;
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v10 = 3;
v11 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0236", 4u);
v5 = *(_QWORD *)(v4 + 432);
v6 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)(v3 + 1));
cocos2d::CCDictionary::setObject(v5, v6, Block);
if ( v11 > 0xF )
{
v7 = Block[0];
if ( v11 + 1 >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v7);
}
}
}