// // SetupPulsePopup::textChanged from 0x14043c420 to 0x14043cbbc (1948 bytes) // // 5 xrefs: // > @ 0x1405eb890 // > @ 0x1406a1b6c // > @ 0x1406a1ba0 // > @ 0x1406a1bb8 // > @ 0x1406da0b8 // // 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 SetupPulsePopup::textChanged(SetupPulsePopup *a1, CCTextInputNode *a2) { int m_scene; // r14d const char *v5; // rax size_t v6; // rbx const char *v7; // rcx int v8; // eax unsigned __int64 v9; // rdx char *v10; // rcx int m_alertProtocol_high; // eax unsigned int v12; // ecx const char *v13; // rax size_t v14; // rbx const char *v15; // rcx int v16; // eax unsigned __int64 v17; // rdx char *v18; // rcx const char *v19; // rax size_t v20; // rbx const char *v21; // rcx double v22; // xmm0_8 unsigned __int64 v23; // rdx float v24; // xmm1_4 char *v25; // rcx float v26; // xmm6_4 float v27; // xmm1_4 const char *v28; // rax size_t v29; // rbx const char *v30; // rcx double v31; // xmm0_8 unsigned __int64 v32; // rdx float v33; // xmm1_4 char *v34; // rcx float v35; // xmm6_4 float v36; // xmm1_4 const char *v37; // rax size_t v38; // rbx const char *v39; // rcx double v40; // xmm0_8 unsigned __int64 v41; // rdx float v42; // xmm1_4 char *v43; // rcx float v44; // xmm6_4 float v45; // xmm1_4 const char *v46; // rax size_t v47; // rbx const char *v48; // rcx int v49; // r15d char *v50; // rcx char v51; // bl int v52; // eax int v53; // eax cocos2d::CCTouchDelegate_vtbl *v54; // rcx char *v55; // rcx _BYTE *v56; // rax size_t v57; // rbx size_t v58; // r8 char **v59; // rax char *v60; // rcx __int64 v61; // rsi char *v62; // rcx _BYTE *v63; // rax __int64 v64; // rax __int16 v65; // cx char v66; // dl cocos2d::CCTouchDelegate_vtbl *v67; // rcx __int16 v68; // [rsp+20h] [rbp-58h] BYREF char v69; // [rsp+22h] [rbp-56h] char *String[2]; // [rsp+30h] [rbp-48h] BYREF __int128 v71; // [rsp+40h] [rbp-38h] m_scene = 0; if ( !LOBYTE(a1->m_fSkewX) ) { switch ( a2->getTag(a2) ) { case 4: v5 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v6 = -1; v71 = 0; do ++v6; while ( v5[v6] ); sub_14003A930(String, v5, v6); v7 = (const char *)String; if ( *((_QWORD *)&v71 + 1) > 0xFu ) v7 = String[0]; v8 = atoi(v7); v9 = *((_QWORD *)&v71 + 1); HIDWORD(a1->m_alertProtocol) = v8; if ( v9 > 0xF ) { v10 = String[0]; if ( v9 + 1 >= 0x1000 ) { v10 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v10); } m_alertProtocol_high = HIDWORD(a1->m_alertProtocol); if ( m_alertProtocol_high < 1 ) m_alertProtocol_high = 1; v12 = 999; if ( a1->m_ZOrder == 1 ) v12 = 9999; if ( v12 < m_alertProtocol_high ) m_alertProtocol_high = v12; HIDWORD(a1->m_alertProtocol) = m_alertProtocol_high; SetupPulsePopup::updateTargetID((SetupPulsePopup *)((char *)a1 - 632)); SetupTriggerPopup::updateEditorLabel((SetupPulsePopup *)((char *)a1 - 632)); break; case 5: v13 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v14 = -1; v71 = 0; do ++v14; while ( v13[v14] ); sub_14003A930(String, v13, v14); v15 = (const char *)String; if ( *((_QWORD *)&v71 + 1) > 0xFu ) v15 = String[0]; v16 = atoi(v15); v17 = *((_QWORD *)&v71 + 1); LODWORD(a1->m_scene) = v16; if ( v17 > 0xF ) { v18 = String[0]; if ( v17 + 1 >= 0x1000 ) { v18 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v18 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v18); } if ( SLODWORD(a1->m_scene) >= 0 ) m_scene = (int)a1->m_scene; if ( m_scene > 999 ) m_scene = 999; LODWORD(a1->m_scene) = m_scene; SetupPulsePopup::updateCopyColor((SetupPulsePopup *)((char *)a1 - 632)); break; case 8: v19 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v20 = -1; v71 = 0; do ++v20; while ( v19[v20] ); sub_14003A930(String, v19, v20); v21 = (const char *)String; if ( *((_QWORD *)&v71 + 1) > 0xFu ) v21 = String[0]; v22 = atof(v21); v23 = *((_QWORD *)&v71 + 1); v24 = v22; *(float *)&a1->m_reverseKeyBack = v24; if ( v23 > 0xF ) { v25 = String[0]; if ( v23 + 1 >= 0x1000 ) { v25 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v25 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v25); } v26 = 0.0; *(float *)&a1->m_reverseKeyBack = fmaxf(0.0, *(float *)&a1->m_reverseKeyBack); SetupPulsePopup::updateFadeInTime((SetupPulsePopup *)((char *)a1 - 632)); v27 = fminf(1.0, *(float *)&a1->m_reverseKeyBack / 10.0); if ( v27 >= 0.0 ) v26 = v27; Slider::setValue( (Slider *)a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable, v26); break; case 9: v28 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v29 = -1; v71 = 0; do ++v29; while ( v28[v29] ); sub_14003A930(String, v28, v29); v30 = (const char *)String; if ( *((_QWORD *)&v71 + 1) > 0xFu ) v30 = String[0]; v31 = atof(v30); v32 = *((_QWORD *)&v71 + 1); v33 = v31; *(float *)(&a1->m_color + 1) = v33; if ( v32 > 0xF ) { v34 = String[0]; if ( v32 + 1 >= 0x1000 ) { v34 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v34 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v34); } v35 = 0.0; *(float *)(&a1->m_color + 1) = fmaxf(0.0, *(float *)(&a1->m_color + 1)); SetupPulsePopup::updateHoldTime((SetupPulsePopup *)((char *)a1 - 632)); v36 = fminf(1.0, *(float *)(&a1->m_color + 1) / 10.0); if ( v36 >= 0.0 ) v35 = v36; Slider::setValue(*(Slider **)&a1->m_bTouchEnabled, v35); break; case 0xA: v37 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v38 = -1; v71 = 0; do ++v38; while ( v37[v38] ); sub_14003A930(String, v37, v38); v39 = (const char *)String; if ( *((_QWORD *)&v71 + 1) > 0xFu ) v39 = String[0]; v40 = atof(v39); v41 = *((_QWORD *)&v71 + 1); v42 = v40; *(float *)&a1->m_mainLayer = v42; if ( v41 > 0xF ) { v43 = String[0]; if ( v41 + 1 >= 0x1000 ) { v43 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v43 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v43); } v44 = 0.0; *(float *)&a1->m_mainLayer = fmaxf(0.0, *(float *)&a1->m_mainLayer); SetupPulsePopup::updateFadeOutTime((SetupPulsePopup *)((char *)a1 - 632)); v45 = fminf(1.0, *(float *)&a1->m_mainLayer / 10.0); if ( v45 >= 0.0 ) v44 = v45; Slider::setValue((Slider *)a1->m_pScriptTouchHandlerEntry, v44); break; case 0xB: case 0xC: case 0xD: v46 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v47 = -1; v71 = 0; do ++v47; while ( v46[v47] ); sub_14003A930(String, v46, v47); v48 = (const char *)String; if ( *((_QWORD *)&v71 + 1) > 0xFu ) v48 = String[0]; v49 = atoi(v48); if ( *((_QWORD *)&v71 + 1) > 0xFu ) { v50 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v71 + 1) + 1LL) >= 0x1000 ) { v50 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v50 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v50); } v51 = -1; if ( v49 < 0 ) v49 = 0; if ( v49 < 255 ) v51 = v49; v52 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) - 11; if ( v52 ) { v53 = v52 - 1; if ( v53 ) { if ( v53 == 1 ) *(&a1->_cascadeColorEnabled + 1) = v51; } else { a1->_cascadeColorEnabled = v51; } } else { a1->_cascadeOpacityEnabled = v51; } v54 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable; v68 = *(_WORD *)&a1->_cascadeOpacityEnabled; v69 = *(&a1->_cascadeColorEnabled + 1); (*((void (__fastcall **)(cocos2d::CCTouchDelegate_vtbl *, __int16 *))v54->~CCTouchDelegate + 139))(v54, &v68); break; case 0xE: v55 = (char *)a1->SetupTriggerPopup::TextInputDelegate::__vftable[9].enterPressed + 600; v56 = (_BYTE *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v55 + 8LL))(v55); v57 = -1; *(_OWORD *)String = 0; v58 = -1; v71 = 0; do ++v58; while ( v56[v58] ); sub_14003A930(String, v56, v58); v59 = String; v60 = String[0]; v61 = -1; if ( *((_QWORD *)&v71 + 1) > 0xFu ) v59 = (char **)String[0]; do ++v61; while ( *((_BYTE *)v59 + v61) ); if ( *((_QWORD *)&v71 + 1) > 0xFu ) { if ( (unsigned __int64)(*((_QWORD *)&v71 + 1) + 1LL) >= 0x1000 ) { v60 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v60 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v60); } if ( v61 == 6 ) { v62 = (char *)a1->SetupTriggerPopup::TextInputDelegate::__vftable[9].enterPressed + 600; v63 = (_BYTE *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v62 + 8LL))(v62); v71 = 0u; *(_OWORD *)String = 0; do ++v57; while ( v63[v57] ); sub_14003A930(String, v63, v57); v64 = ColorSelectPopup::hexToColor((__int64)&v68, String); v65 = *(_WORD *)v64; v66 = *(_BYTE *)(v64 + 2); *(_WORD *)&a1->_cascadeOpacityEnabled = *(_WORD *)v64; *(&a1->_cascadeColorEnabled + 1) = v66; v68 = v65; v67 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable; v69 = v66; (*((void (__fastcall **)(cocos2d::CCTouchDelegate_vtbl *, __int16 *))v67->~CCTouchDelegate + 139))(v67, &v68); } break; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source