// // SetupOpacityPopup::textChanged from 0x14042b7d0 to 0x14042ba0e (574 bytes) // // 4 xrefs: // > @ 0x1405e9130 // > @ 0x1406a0f98 // > @ 0x1406a0fa8 // > @ 0x1406d99a4 // // 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 SetupOpacityPopup::textChanged(SetupOpacityPopup *a1, CCTextInputNode *a2) { const char *v4; // rax size_t v5; // r8 const char *v6; // rcx int v7; // eax unsigned __int64 v8; // rdx char *v9; // rcx const char *v10; // rax size_t v11; // r8 const char *v12; // rcx float v13; // xmm6_4 char *v14; // rcx cocos2d::CCString *v15; // rax float v16; // xmm1_4 float v17; // xmm2_4 char *String[2]; // [rsp+28h] [rbp-40h] BYREF __int128 v19; // [rsp+38h] [rbp-30h] if ( !LOBYTE(a1->m_fSkewX) ) { if ( a2->getTag(a2) == 3 ) { v4 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v5 = -1; v19 = 0; do ++v5; while ( v4[v5] ); sub_14003A930(String, v4, v5); v6 = (const char *)String; if ( *((_QWORD *)&v19 + 1) > 0xFu ) v6 = String[0]; v7 = atoi(v6); v8 = *((_QWORD *)&v19 + 1); LODWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable) = v7; if ( v8 > 0xF ) { v9 = String[0]; if ( v8 + 1 >= 0x1000 ) { v9 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } SetupOpacityPopup::updateTargetID((SetupOpacityPopup *)((char *)a1 - 632)); SetupTriggerPopup::updateEditorLabel((SetupOpacityPopup *)((char *)a1 - 632)); } else if ( a2->getTag(a2) == 4 ) { v10 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v11 = -1; v19 = 0; do ++v11; while ( v10[v11] ); sub_14003A930(String, v10, v11); v12 = (const char *)String; if ( *((_QWORD *)&v19 + 1) > 0xFu ) v12 = String[0]; v13 = atof(v12); if ( *((_QWORD *)&v19 + 1) > 0xFu ) { v14 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v19 + 1) + 1LL) >= 0x1000 ) { v14 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); } v15 = cocos2d::CCString::createWithFormat("%.02f", v13); *((float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable + 1) = cocos2d::CCString::floatValue(v15); SetupOpacityPopup::updateDuration((SetupOpacityPopup *)((char *)a1 - 632)); v16 = 0.0; v17 = fminf( 1.0, *((float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable + 1) / 10.0); if ( v17 >= 0.0 ) v16 = v17; Slider::setValue( (Slider *)a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable, v16); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source