// // GameToolbox::alignItemsVertically from 0x57f5a0 to 0x57f780 (480 bytes) // // 2 xrefs: // > AccountLoginLayer::init @ 0x851440 // > @ 0x4ed20 // // 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 GameToolbox::alignItemsVertically(cocos2d::CCArray *a1, float a2, cocos2d::CCPoint a3) { __int64 v3; // x1 __int64 v5; // x22 cocos2d::ccArray *data; // x1 unsigned int num; // w0 cocos2d::CCObject **arr; // x20 float v10; // s8 cocos2d::CCObject **v11; // x24 cocos2d::CCObject *v12; // x19 float v13; // s9 cocos2d::CCObject **v14; // x25 __int64 v15; // x0 char *v16; // x21 cocos2d::CCObject *v17; // x19 float v18; // s8 const cocos2d::CCSize *v19; // x0 float height; // s9 bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // x26 float v22; // s0 bool (__fastcall *v23)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // x26 __int64 v24; // x0 float v25; // s9 cocos2d::CCSize v26; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v27; // [xsp+80h] [xbp+80h] BYREF v5 = v3; if ( a1 ) { data = a1->data; num = data->num; if ( data->num ) { arr = data->arr; v10 = -a2; v11 = &arr[num - 1]; if ( arr > v11 ) goto LABEL_8; v12 = *arr; if ( !*arr ) goto LABEL_8; do { ++arr; v13 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v12->__vftable[3].setTag)(v12) + 4); v10 = v10 + (float)(a2 + (float)(v13 * ((float (__fastcall *)(cocos2d::CCObject *))v12->__vftable[1].setTag)(v12))); if ( v11 < arr ) break; v12 = *arr; } while ( *arr ); data = a1->data; num = data->num; if ( data->num ) { LABEL_8: v14 = data->arr; v15 = 8LL * num - 8; v16 = (char *)v14 + v15; if ( v14 <= (cocos2d::CCObject **)((char *)v14 + v15) ) { v17 = *v14; if ( *v14 ) { v18 = (float)-v10 * 0.5; do { ++v14; v19 = (const cocos2d::CCSize *)((__int64 (__fastcall *)(cocos2d::CCObject *))v17->__vftable[3].setTag)(v17); cocos2d::CCSize::CCSize(&v26, v19); height = v26.height; isEqual = v17->__vftable[2].isEqual; v22 = ((float (__fastcall *)(cocos2d::CCObject *))v17->__vftable[1].setTag)(v17); cocos2d::CCPoint::CCPoint(&v27, 0.0, v18 + (float)((float)(height * v22) * 0.5)); isEqual(v17, (const cocos2d::CCObject *)&v27); v23 = v17->__vftable[2].isEqual; v24 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v17->__vftable[2].acceptVisitor)(v17); cocos2d::CCPoint::operator+(&v27, v5, v24); v23(v17, (const cocos2d::CCObject *)&v27); v25 = v26.height; v18 = v18 + (float)(a2 + (float)(v25 * ((float (__fastcall *)(cocos2d::CCObject *))v17->__vftable[1].setTag)(v17))); if ( v16 < (char *)v14 ) break; v17 = *v14; } while ( *v14 ); } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source