// // GameToolbox::alignItemsVertically from 0x3cc9ac to 0x3ccaea (318 bytes) // // 1 xrefs: // > AccountLoginLayer::init @ 0x587950 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:46:38 +0000 // float __fastcall GameToolbox::alignItemsVertically(float result, float a2, int a3) { float v4; // r9 float v6; // s16 _DWORD *v7; // r3 int *v8; // r7 int *v9; // r4 int v10; // r8 int v11; // t1 float v12; // s17 _DWORD *v13; // r3 int v14; // r4 int *v15; // r3 unsigned int v16; // r7 int *v17; // r8 float i; // s16 int v19; // r4 int v20; // t1 const cocos2d::CCSize *v21; // r0 float v22; // s19 void (__fastcall *v23)(int, _BYTE *); // r11 float v24; // r0 void (__fastcall *v25)(int, _BYTE *); // r11 int v26; // r0 float v27; // s19 _BYTE v28[4]; // [sp+4h] [bp-18h] BYREF float v29; // [sp+8h] [bp-14h] _BYTE v30[8]; // [sp+Ch] [bp-10h] BYREF v4 = result; v6 = -a2; if ( result != 0.0 ) { v7 = *(_DWORD **)(LODWORD(result) + 52); if ( *v7 ) { v8 = (int *)v7[3]; v9 = &v8[*v7 - 1]; while ( v8 <= v9 ) { v11 = *v8++; v10 = v11; if ( !v11 ) break; v12 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v10 + 164))(v10) + 4); result = (*(float (__fastcall **)(int))(*(_DWORD *)v10 + 76))(v10); v6 = v6 + (float)(a2 + (float)(v12 * result)); } } v13 = *(_DWORD **)(LODWORD(v4) + 52); if ( *v13 ) { v14 = *v13 + 0x40000000; v15 = (int *)v13[3]; v16 = (unsigned int)&v15[v14 - 1]; v17 = v15; for ( i = -(float)(v6 * 0.5); (unsigned int)v17 <= v16; i = i + (float)(a2 + (float)(v27 * result)) ) { v20 = *v17++; v19 = v20; if ( !v20 ) break; v21 = (const cocos2d::CCSize *)(*(int (__fastcall **)(int))(*(_DWORD *)v19 + 164))(v19); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v28, v21); v22 = v29; v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92); v24 = (*(float (__fastcall **)(int))(*(_DWORD *)v19 + 76))(v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, 0.0, i + (float)((float)(v22 * v24) * 0.5)); v23(v19, v30); v25 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92); v26 = (*(int (__fastcall **)(int))(*(_DWORD *)v19 + 96))(v19); cocos2d::CCPoint::operator+(v30, a3, v26); v25(v19, v30); v27 = v29; result = (*(float (__fastcall **)(int))(*(_DWORD *)v19 + 76))(v19); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source