// // TextArea::update from 0x1400776e0 to 0x1400778bf (479 bytes) // // 4 xrefs: // > @ 0x140538088 // > @ 0x140667678 // > @ 0x140667688 // > @ 0x1406c6570 // // 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) { cocos2d::CCDictionary *m_shakeCharacters; // rdi cocos2d::CCDictElement *m_pElements; // rdi cocos2d::CCDictElement *i; // rbp cocos2d::CCArray *m_pObject; // rdi struct cocos2d::CCObject *v7; // rax struct cocos2d::CCObject *v8; // rbx float m_shakeElapsed; // xmm0_4 int v10; // eax float v11; // xmm6_4 float v12; // xmm7_4 int v13; // eax cocos2d::ccArray *data; // rdi __int64 num; // rax cocos2d::CCObject **arr; // rdi cocos2d::CCObject **j; // rsi cocos2d::CCObject *v18; // rbx cocos2d::CCPoint v19; // [rsp+90h] [rbp+8h] BYREF char v20; // [rsp+A0h] [rbp+18h] BYREF m_shakeCharacters = a1->m_shakeCharacters; a1->m_shakeElapsed = a2 + a1->m_shakeElapsed; 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; v7 = cocos2d::CCArray::objectAtIndex(m_pObject, 0); v8 = v7; if ( v7 ) { m_shakeElapsed = a1->m_shakeElapsed; if ( m_shakeElapsed > *(float *)&v7[11].m_nLuaID ) { *(float *)&v7[11].m_nLuaID = m_shakeElapsed + *((float *)&v7[11].__vftable + 1); v10 = rand(); v11 = *(float *)&v8[11].m_uID; v12 = (float)v10 / 32767.0; v13 = rand(); cocos2d::CCPoint::CCPoint( &v19, (float)((float)((float)((float)((float)v13 / 32767.0) + (float)((float)v13 / 32767.0)) - 1.0) * *(float *)&v8[11].m_uID) * 0.5, (float)((float)((float)(v12 + v12) - 1.0) * v11) * 0.5); if ( m_pObject ) { data = m_pObject->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( j = &arr[num - 1]; arr <= j; ++arr ) { v18 = *arr; if ( !*arr ) break; cocos2d::CCPoint::operator+(&v18[11].m_uReference, &v20); v18->__vftable[2].encodeWithCoder(v18, (DS_Dictionary *)&v20); } } } } } m_pElements = i; if ( !i ) break; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source