// // ConfigureHSVWidget::textChanged from 0x8e0d34 to 0x8e0fb4 (640 bytes) // // 3 xrefs: // > `non-virtual thunk to'ConfigureHSVWidget::textChanged @ 0x8e0fb8 // > @ 0x6d0f8 // > @ 0x11a0b10 // // 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 ConfigureHSVWidget::textChanged(ConfigureHSVWidget *a1, CCTextInputNode *a2) { int v3; // w0 double v4; // d0 const char *v5; // x1 cocos2d::CCString *v6; // x0 float v7; // s0 char *v8; // x0 char *v9; // x22 int v10; // w21 char *v11; // x0 double v12; // d0 const char *v13; // x1 cocos2d::CCString *v14; // x0 float v15; // s0 char *v16; // x0 unsigned int *v17; // x2 int v18; // w1 unsigned int *v19; // x2 int v20; // w1 unsigned int *v21; // x22 int v22; // w1 float v24; // [xsp+30h] [xbp+30h] float v25; // [xsp+30h] [xbp+30h] char *v26; // [xsp+50h] [xbp+50h] BYREF if ( !a1->m_updating ) { v3 = a2->getTag(a2); switch ( v3 ) { case 2: CCTextInputNode::getString(a2, (__int64)&v26); v12 = atof(v26); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.2f", v13, v12); v15 = cocos2d::CCString::floatValue(v14); v16 = v26 - 24; if ( v26 - 24 == (char *)&qword_124B6B0 ) goto LABEL_15; if ( &pthread_create ) { v17 = (unsigned int *)(v26 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *((_DWORD *)v26 - 2); *((_DWORD *)v26 - 2) = v18 - 1; } if ( v18 > 0 ) { LABEL_15: a1->m_hsv.s = v15; } else { v24 = v15; operator delete(v16); a1->m_hsv.s = v24; } break; case 3: CCTextInputNode::getString(a2, (__int64)&v26); v4 = atof(v26); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.2f", v5, v4); v7 = cocos2d::CCString::floatValue(v6); v8 = v26 - 24; if ( v26 - 24 == (char *)&qword_124B6B0 ) goto LABEL_7; if ( &pthread_create ) { v19 = (unsigned int *)(v26 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *((_DWORD *)v26 - 2); *((_DWORD *)v26 - 2) = v20 - 1; } if ( v20 > 0 ) { LABEL_7: a1->m_hsv.v = v7; } else { v25 = v7; operator delete(v8); a1->m_hsv.v = v25; } break; case 1: CCTextInputNode::getString(a2, (__int64)&v26); v9 = v26; v10 = atoi(v26); v11 = v9 - 24; if ( v9 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v9 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v9 - 2); *((_DWORD *)v9 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v11); } if ( v10 < -360 ) v10 = -360; if ( v10 > 360 ) v10 = 360; a1->m_hsv.h = (float)v10; break; } ConfigureHSVWidget::updateSliders(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source