// // TextArea::update from 0x591b90 to 0x591d2c (412 bytes) // // 2 xrefs: // > @ 0xc0cd8 // > @ 0x113e5f8 // // 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 TextArea::update(TextArea *a1, float a2) { float v3; // s0 cocos2d::CCDictionary *m_shakeCharacters; // x0 cocos2d::CCDictElement *m_pElements; // x0 cocos2d::CCDictElement *i; // x21 cocos2d::CCArray *m_pObject; // x20 float *v8; // x0 float *v9; // x19 float m_shakeElapsed; // s0 int v11; // w0 cocos2d::ccArray *data; // x1 char *arr; // x20 __int64 v14; // x0 char *v15; // x26 __int64 v16; // x19 void (__fastcall *v17)(__int64, __int64 *); // x27 float v18; // [xsp+80h] [xbp+80h] cocos2d::CCPoint v19; // [xsp+98h] [xbp+98h] BYREF __int64 v20; // [xsp+A0h] [xbp+A0h] BYREF v3 = a1->m_shakeElapsed + a2; m_shakeCharacters = a1->m_shakeCharacters; a1->m_shakeElapsed = v3; if ( m_shakeCharacters ) { m_pElements = m_shakeCharacters->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { m_pObject = (cocos2d::CCArray *)m_pElements->m_pObject; v8 = (float *)cocos2d::CCArray::objectAtIndex(m_pObject, 0); v9 = v8; if ( v8 ) { m_shakeElapsed = a1->m_shakeElapsed; if ( m_shakeElapsed > v8[156] ) { v8[156] = m_shakeElapsed + v8[154]; v18 = (float)((float)((float)((float)((float)rand() * 4.6566e-10) * 2.0) + -1.0) * v8[155]) * 0.5; v11 = rand(); cocos2d::CCPoint::CCPoint( &v19, v18, (float)((float)((float)((float)((float)v11 * 4.6566e-10) * 2.0) + -1.0) * v9[155]) * 0.5); if ( m_pObject ) { data = m_pObject->data; if ( data->num ) { arr = (char *)data->arr; v14 = 8LL * data->num - 8; v15 = &arr[v14]; if ( arr <= &arr[v14] ) { while ( 1 ) { v16 = *(_QWORD *)arr; if ( !*(_QWORD *)arr ) break; arr += 8; v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::operator+(&v20, v16 + 632, &v19); v17(v16, &v20); if ( v15 < arr ) { if ( i ) goto LABEL_7; return; } } } } } } } if ( !i ) break; LABEL_7: m_pElements = i; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source