// // cocos2d::CCMenu::alignItemsHorizontallyWithPadding from 0x180058040 to 0x180058253 (531 bytes) // // 3 xrefs: // > cocos2d::CCMenu::alignItemsHorizontally @ 0x180058038 // > @ 0x1801438a8 // > @ 0x1801b2a24 // // 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 __fastcall cocos2d::CCMenu::alignItemsHorizontallyWithPadding(cocos2d::CCMenu *this, float a2) { cocos2d::CCArray *m_pChildren; // rcx float v4; // xmm6_4 cocos2d::CCArray *v5; // rax cocos2d::ccArray *data; // rdi __int64 num; // rax cocos2d::CCObject **arr; // rdi cocos2d::CCObject **i; // rbp __int64 v10; // rax __int64 v11; // rsi float *v12; // rbx cocos2d::CCArray *v13; // rcx float v14; // xmm6_4 cocos2d::CCArray *v15; // rax cocos2d::ccArray *v16; // rsi __int64 v17; // rax cocos2d::CCObject **v18; // rsi cocos2d::CCObject **j; // rbp __int64 v20; // rax __int64 v21; // r14 __int64 v22; // rdi float *v23; // rbx double v24; // xmm0_8 float *v25; // rax float *v26; // rbx float v27; // [rsp+80h] [rbp+8h] BYREF m_pChildren = this->m_pChildren; v4 = -a2; if ( m_pChildren ) { if ( (unsigned int)cocos2d::CCArray::count(m_pChildren) ) { v5 = this->m_pChildren; if ( v5 ) { data = v5->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { if ( !*arr ) break; v10 = _RTDynamicCast( *arr, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCNode `RTTI Type Descriptor', 0); v11 = v10; if ( v10 ) { v12 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 304LL))(v10); v4 = v4 + (float)((float)((*(float (__fastcall **)(__int64))(*(_QWORD *)v11 + 128LL))(v11) * *v12) + a2); } } } } } } v13 = this->m_pChildren; v14 = (float)-v4 * 0.5; if ( v13 ) { if ( (unsigned int)cocos2d::CCArray::count(v13) ) { v15 = this->m_pChildren; if ( v15 ) { v16 = v15->data; v17 = v16->num; if ( (_DWORD)v17 ) { v18 = v16->arr; for ( j = &v18[v17 - 1]; v18 <= j; ++v18 ) { if ( !*v18 ) break; v20 = _RTDynamicCast( *v18, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCNode `RTTI Type Descriptor', 0); v21 = v20; if ( v20 ) { v22 = *(_QWORD *)v20; v23 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 304LL))(v20); v24 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v21 + 128LL))(v21); v25 = kmVec2Fill(&v27, (float)((float)(*(float *)&v24 * *v23) * 0.5) + v14, 0.0); (*(void (__fastcall **)(__int64, float *))(v22 + 184))(v21, v25); v26 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 304LL))(v21); v14 = v14 + (float)((float)((*(float (__fastcall **)(__int64))(*(_QWORD *)v21 + 128LL))(v21) * *v26) + a2); } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source