// // SetupShakePopup::textChanged from 0x1006654e0 to 0x10066584c (876 bytes) // // 2 xrefs: // > sub_100665850 @ 0x10066585c // > @ 0x100987ff0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall SetupShakePopup::textChanged(SetupShakePopup *a1, CCTextInputNode *a2) { double v2; // xmm0_8 char *v3; // r14 cocos2d::CCString *v4; // rax float v5; // xmm0_4 EffectGameObject *m_gameObject; // rax unsigned int v7; // r14d float *p_m_duration; // rax Slider **p_m_durationSlider; // rbx float v10; // xmm0_4 char *v11; // r14 cocos2d::CCString *v12; // rax float v13; // xmm0_4 EffectGameObject *v14; // rax char *v15; // r14 cocos2d::CCString *v16; // rax float v17; // xmm0_4 EffectGameObject *v18; // rax unsigned int v19; // r14d unsigned int v20; // r14d __m128 v21; // xmm1 __m128 v22; // xmm0 float v23; // xmm0_4 float v24; // xmm3_4 _QWORD v25[2]; // [rsp-38h] [rbp-38h] BYREF char *v26; // [rsp-28h] [rbp-28h] double v27; // [rsp-20h] [rbp-20h] if ( !a1->m_disableTextDelegate ) { if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 5 ) { CCTextInputNode::getString(v25, (__int64)a2, v2); if ( (v25[0] & 1) != 0 ) { v3 = v26; v27 = atof(v26); operator delete(v3); } else { atof((const char *)v25 + 1); } v4 = (cocos2d::CCString *)sub_1007AB580("%.02f", v25[0]); v5 = fminf(fmaxf(cocos2d::CCString::floatValue(v4), 0.0), 10.0); a1->m_duration = v5; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_duration = v5; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v7 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v7++) + 1452) = a1->m_duration; while ( v7 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } p_m_duration = &a1->m_duration; p_m_durationSlider = &a1->m_durationSlider; v10 = 10.0; } else if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 8 ) { CCTextInputNode::getString(v25, (__int64)a2, v2); if ( (v25[0] & 1) != 0 ) { v11 = v26; v27 = atof(v26); operator delete(v11); } else { atof((const char *)v25 + 1); } v12 = (cocos2d::CCString *)sub_1007AB580("%.02f", v25[0]); v13 = fminf(fmaxf(cocos2d::CCString::floatValue(v12), 0.0), 0.2); a1->m_interval = v13; v14 = a1->m_gameObject; if ( v14 ) { v14->m_shakeInterval = v13; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v19 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v19++) + 1480) = a1->m_interval; while ( v19 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } v10 = 0.1; p_m_duration = &a1->m_duration; p_m_durationSlider = &a1->m_intervalSlider; } else { CCTextInputNode::getString(v25, (__int64)a2, v2); if ( (v25[0] & 1) != 0 ) { v15 = v26; v27 = atof(v26); operator delete(v15); } else { atof((const char *)v25 + 1); } v16 = (cocos2d::CCString *)sub_1007AB580("%.02f", v25[0]); v17 = fminf(fmaxf(cocos2d::CCString::floatValue(v16), 0.0), 100.0); a1->m_strength = v17; v18 = a1->m_gameObject; if ( v18 ) { v18->m_shakeStrength = v17; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v20 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v20++) + 1476) = a1->m_strength; while ( v20 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } p_m_duration = &a1->m_strength; p_m_durationSlider = &a1->m_strengthSlider; v10 = 5.0; } v21 = (__m128)*(unsigned int *)p_m_duration; v21.f32[0] = v21.f32[0] / v10; v22 = _mm_cmpge_ss(v21, (__m128)0x3F800000u); LODWORD(v23) = v22.i32[0] & 0x3F800000 | _mm_andnot_ps(v22, _mm_and_ps(_mm_cmplt_ss((__m128)0LL, v21), (__m128)0x3F800000u)).u32[0]; v24 = v21.f32[0]; if ( v21.f32[0] <= 0.0 ) v24 = v23; if ( v21.f32[0] < 1.0 ) v23 = v24; Slider::setValue(*p_m_durationSlider, v23); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source