// // SetupShakePopup::textChanged from 0x6297b0 to 0x62999a (490 bytes) // // 1 xrefs: // > `non-virtual thunk to'SetupShakePopup::textChanged @ 0x6299c0 // // 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 11:55:11 +0000 // int __fastcall SetupShakePopup::textChanged(int this, CCTextInputNode *a2) { float *v2; // r4 char *v4; // r0 double v5; // d9 const char *v6; // r1 cocos2d::CCString *v7; // r0 float v8; // r0 float v9; // s15 Slider *v10; // r0 float v11; // s15 char *v12; // r0 double v13; // d9 const char *v14; // r1 cocos2d::CCString *v15; // r0 float v16; // r0 int v17; // s15 float v18; // s15 float v19; // s14 char *v20; // r0 double v21; // d9 const char *v22; // r1 cocos2d::CCString *v23; // r0 float v24; // r0 int v25; // s15 char v26; // [sp+0h] [bp-14h] BYREF _BYTE v27[7]; // [sp+1h] [bp-13h] BYREF char *v28; // [sp+8h] [bp-Ch] v2 = (float *)this; if ( !*(_BYTE *)(this + 568) ) { if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 5 ) { CCTextInputNode::getString((CCTextInputNode *)&v26, (int)a2); if ( (v26 & 1) != 0 ) v4 = v28; else v4 = v27; v5 = atof(v4); std::string::~string((int)&v26); *(float *)&v5 = v5; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v6, *(float *)&v5); v8 = COERCE_FLOAT(cocos2d::CCString::floatValue(v7)); v9 = v8; if ( v8 <= 0.0 ) { v9 = 0.0; } else if ( v8 >= 10.0 ) { v9 = 10.0; } v2[180] = v9; SetupShakePopup::updateDuration((unsigned int)v2); v10 = *((Slider **)v2 + 179); v11 = v2[180] / 10.0; } else { if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 8 ) { CCTextInputNode::getString((CCTextInputNode *)&v26, (int)a2); if ( (v26 & 1) != 0 ) v12 = v28; else v12 = v27; v13 = atof(v12); std::string::~string((int)&v26); *(float *)&v13 = v13; v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v14, *(float *)&v13); v16 = COERCE_FLOAT(cocos2d::CCString::floatValue(v15)); v17 = LODWORD(v16); if ( v16 <= 0.0 ) { v17 = 0; } else if ( v16 >= 0.2 ) { v17 = 1045220557; } *((_DWORD *)v2 + 186) = v17; SetupShakePopup::updateInterval((unsigned int)v2); v10 = *((Slider **)v2 + 185); v18 = v2[180]; v19 = 0.1; } else { CCTextInputNode::getString((CCTextInputNode *)&v26, (int)a2); if ( (v26 & 1) != 0 ) v20 = v28; else v20 = v27; v21 = atof(v20); std::string::~string((int)&v26); *(float *)&v21 = v21; v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v22, *(float *)&v21); v24 = COERCE_FLOAT(cocos2d::CCString::floatValue(v23)); v25 = LODWORD(v24); if ( v24 <= 0.0 ) { v25 = 0; } else if ( v24 >= 100.0 ) { v25 = 1120403456; } *((_DWORD *)v2 + 183) = v25; SetupShakePopup::updateShake((unsigned int)v2); v10 = *((Slider **)v2 + 182); v19 = 5.0; v18 = v2[183]; } v11 = v18 / v19; } if ( v11 >= 1.0 ) { v11 = 1.0; } else if ( v11 <= 0.0 ) { v11 = 0.0; } return Slider::setValue(v10, v11); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source