// // SetupShakePopup::textChanged from 0xaa18f8 to 0xaa1b88 (656 bytes) // // 3 xrefs: // > `non-virtual thunk to'SetupShakePopup::textChanged @ 0xaa1b98 // > @ 0x7cdf8 // > @ 0x14a1b78 // // 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:00:48 +0000 // __int64 __fastcall SetupShakePopup::textChanged(SetupShakePopup *this, CCTextInputNode *a2) { char *v4; // x0 const char *v5; // x1 float v6; // s8 cocos2d::CCString *v7; // x0 float v8; // s0 Slider *v9; // x0 float v10; // s1 float v11; // s0 bool v12; // nf char *v13; // x0 const char *v14; // x1 float v15; // s8 cocos2d::CCString *v16; // x0 float v17; // s0 char *v18; // x0 const char *v19; // x1 float v20; // s8 cocos2d::CCString *v21; // x0 float v22; // s0 __int64 v24[2]; // [xsp+40h] [xbp+40h] BYREF char *v25; // [xsp+50h] [xbp+50h] if ( !*((_BYTE *)this + 744) ) { if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 5 ) { CCTextInputNode::getString(a2, v24); v13 = (char *)v24 + 1; if ( (v24[0] & 1) != 0 ) v13 = v25; v15 = atof(v13); if ( (v24[0] & 1) != 0 ) operator delete(v25); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v14, v15); cocos2d::CCString::floatValue(v16); if ( v17 <= 0.0 ) { v17 = 0.0; } else if ( v17 >= 10.0 ) { v17 = 10.0; } *((float *)this + 258) = v17; SetupShakePopup::updateDuration(this); v9 = *((Slider **)this + 128); v10 = 1.0; v11 = *((float *)this + 258) / 10.0; v12 = v11 < 1.0; if ( v11 >= 1.0 ) { LABEL_13: if ( v12 ) { LABEL_15: Slider::setValue(v9, v11); return _stack_chk_guard; } LABEL_14: v11 = v10; goto LABEL_15; } } else if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 8 ) { CCTextInputNode::getString(a2, v24); v18 = (char *)v24 + 1; if ( (v24[0] & 1) != 0 ) v18 = v25; v20 = atof(v18); if ( (v24[0] & 1) != 0 ) operator delete(v25); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v19, v20); cocos2d::CCString::floatValue(v21); if ( v22 <= 0.0 ) { v22 = 0.0; } else if ( v22 >= 0.2 ) { v22 = 0.2; } *((float *)this + 270) = v22; SetupShakePopup::updateInterval(this); v9 = *((Slider **)this + 134); v10 = 1.0; v11 = *((float *)this + 258) / 0.1; if ( v11 >= 1.0 ) goto LABEL_14; } else { CCTextInputNode::getString(a2, v24); v4 = (char *)v24 + 1; if ( (v24[0] & 1) != 0 ) v4 = v25; v6 = atof(v4); if ( (v24[0] & 1) != 0 ) operator delete(v25); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v5, v6); cocos2d::CCString::floatValue(v7); if ( v8 <= 0.0 ) { v8 = 0.0; } else if ( v8 >= 100.0 ) { v8 = 100.0; } *((float *)this + 264) = v8; SetupShakePopup::updateShake(this); v9 = *((Slider **)this + 131); v10 = 1.0; v11 = *((float *)this + 264) / 5.0; v12 = v11 < 1.0; if ( v11 >= 1.0 ) goto LABEL_13; } if ( v11 <= 0.0 ) { Slider::setValue(v9, 0.0); return _stack_chk_guard; } goto LABEL_15; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source