// // cocos2d::CCMenu::alignItemsVerticallyWithPadding from 0x100270be0 to 0x100270dc0 (480 bytes) // // 2 xrefs: // > InfoLayer::init @ 0x1003ef268 // > EditorPauseLayer::customSetup @ 0x1004439f8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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:01:46 +0000 // void __fastcall cocos2d::CCMenu::alignItemsVerticallyWithPadding(__int64 a1, float a2) { __int64 v3; // x0 float v5; // s9 int v6; // w8 __int64 v7; // x0 unsigned int *v8; // x9 __int64 v9; // x8 const void **v10; // x23 unsigned __int64 v11; // x24 void *v12; // x0 void *v13; // x22 float v14; // s10 float v15; // s9 __int64 v16; // x8 unsigned int *v17; // x9 __int64 v18; // x8 const void **v19; // x22 unsigned __int64 v20; // x23 void *v21; // x0 void *v22; // x21 float v23; // s11 float v24; // s0 float v25; // s11 float v26; // [xsp+8h] [xbp-58h] BYREF v3 = *(_QWORD *)(a1 + 208); if ( !v3 ) return; v5 = -a2; v6 = sub_1002E757C(v3); v7 = *(_QWORD *)(a1 + 208); if ( !v6 ) goto LABEL_11; if ( !v7 ) return; v8 = *(unsigned int **)(v7 + 56); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((const void ***)v8 + 2); v11 = (unsigned __int64)&v10[v9 - 1]; do { if ( !*v10 ) break; v12 = __dynamic_cast( *v10, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, 0); if ( v12 ) { v13 = v12; v14 = *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 328LL))(v12) + 4); v5 = v5 + (float)(a2 + (float)(v14 * (*(float (__fastcall **)(void *))(*(_QWORD *)v13 + 152LL))(v13))); } ++v10; } while ( (unsigned __int64)v10 <= v11 ); v7 = *(_QWORD *)(a1 + 208); LABEL_11: if ( !v7 ) return; v15 = v5 * 0.5; goto LABEL_14; } v15 = a2 * -0.5; LABEL_14: if ( (unsigned int)sub_1002E757C(v7) ) { v16 = *(_QWORD *)(a1 + 208); if ( v16 ) { v17 = *(unsigned int **)(v16 + 56); v18 = *v17; if ( (_DWORD)v18 ) { v19 = *((const void ***)v17 + 2); v20 = (unsigned __int64)&v19[v18 - 1]; do { if ( !*v19 ) break; v21 = __dynamic_cast( *v19, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, 0); if ( v21 ) { v22 = v21; v23 = *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v21 + 328LL))(v21) + 4); v24 = (*(float (__fastcall **)(void *))(*(_QWORD *)v22 + 152LL))(v22); sub_1000262BC(&v26, 0.0, v15 + (float)((float)(v23 * v24) * -0.5)); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v22 + 184LL))(v22, &v26); v25 = *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v22 + 328LL))(v22) + 4); v15 = v15 - (float)(a2 + (float)(v25 * (*(float (__fastcall **)(void *))(*(_QWORD *)v22 + 152LL))(v22))); } ++v19; } while ( (unsigned __int64)v19 <= v20 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source