// // SetupPortalPopup::sliderChanged from 0x1005705b0 to 0x100570776 (454 bytes) // // 2 xrefs: // > SetupPortalPopup::init @ 0x10056fe37 // > SetupPortalPopup::init @ 0x10056ffe5 // // 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 SetupPortalPopup::sliderChanged(SetupPortalPopup *a1, cocos2d::CCObject *a2) { __int128 v2; // xmm0 cocos2d::CCArray *v3; // rax __m128 v4; // xmm1 __m128 v5; // xmm0 int v6; // eax cocos2d::CCArray *m_gameObjects; // rcx unsigned int v8; // r14d cocos2d::CCLabelBMFont *m_cameraEasingLabel; // r14 cocos2d::CCString *v10; // rax unsigned int v11; // r14d const char *CString; // rax float v13; // [rsp+0h] [rbp-20h] *(float *)&v2 = SliderThumb::getValue((SliderThumb *)a2); v13 = *(float *)&v2; if ( !((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) ) { v4 = (__m128)v2; v4.f32[0] = *(float *)&v2 * 39.0; v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v4), (__m128)xmmword_1008150C0); v5.f32[0] = v5.f32[0] + (float)(v13 * 39.0); v6 = (int)(float)(_mm_round_ss(v5, v5, 11).f32[0] + 1.0); a1->m_cameraEasing = v6; m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) { *(float *)&m_gameObjects[27].m_uAutoReleaseCount = (float)v6; } else if ( (unsigned int)sub_100720070(a1->m_gameObject) ) { v8 = 0; do *(float *)(sub_1007200C0(a1->m_gameObject, v8++) + 1752) = (float)a1->m_cameraEasing; while ( v8 < (unsigned int)sub_100720070(a1->m_gameObject) ); } m_cameraEasingLabel = a1->m_cameraEasingLabel; v10 = (cocos2d::CCString *)sub_1007AB580("Easing: %i", SLOBYTE(v13)); goto LABEL_16; } if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 ) { LODWORD(a1->m_cameraPadding) = v2; v3 = a1->m_gameObjects; if ( v3 ) { v3[27].m_eObjType = v2; } else if ( (unsigned int)sub_100720070(a1->m_gameObject) ) { v11 = 0; do *(float *)(sub_1007200C0(a1->m_gameObject, v11++) + 1756) = a1->m_cameraPadding; while ( v11 < (unsigned int)sub_100720070(a1->m_gameObject) ); } m_cameraEasingLabel = a1->m_cameraPaddingLabel; v10 = (cocos2d::CCString *)sub_1007AB580("Padding: %.01f", v2); LABEL_16: CString = cocos2d::CCString::getCString(v10); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_cameraEasingLabel->setString)( m_cameraEasingLabel, CString); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source