// // cocos2d::CCMenu::alignItemsVerticallyWithPadding from 0x1007936b0 to 0x1007938f5 (581 bytes) // // 3 xrefs: // > EditorPauseLayer::customSetup @ 0x100291c1a // > cocos2d::CCMenu::alignItemsVertically @ 0x10079369d // > InfoLayer::init @ 0x1007afd2b // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall cocos2d::CCMenu::alignItemsVerticallyWithPadding(cocos2d::CCMenu *a1, float a2) { cocos2d::CCArray *m_pChildren; // rdi int v4; // eax cocos2d::CCArray *v5; // rdi cocos2d::ccArray *data; // rax const void **arr; // r13 const void **v8; // r14 void *v9; // rax void *v10; // r12 __m128 v11; // xmm1 __m128 v12; // xmm0 __m128 v13; // xmm0 cocos2d::CCArray *v14; // rax cocos2d::ccArray *v15; // rax const void **v16; // r13 const void **v17; // rbx void *v18; // rax void *v19; // r12 float v20; // xmm0_4 float v21; // xmm0_4 __m128 v22; // xmm1 float v23; // [rsp+8h] [rbp-58h] BYREF __m128 v24; // [rsp+10h] [rbp-50h] __m128 v25; // [rsp+20h] [rbp-40h] float v26; // [rsp+34h] [rbp-2Ch] v24 = *(__m128 *)&a2; m_pChildren = a1->m_pChildren; if ( !m_pChildren ) return; v25 = _mm_xor_ps((__m128)xmmword_1008150B0, v24); v4 = sub_100720070((__int64)m_pChildren); v5 = a1->m_pChildren; if ( !v4 ) goto LABEL_11; if ( !v5 ) return; data = v5->data; if ( data->num ) { arr = (const void **)data->arr; v8 = &arr[data->num - 1]; do { if ( !*arr ) break; v9 = __dynamic_cast( *arr, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, 0); if ( v9 ) { v10 = v9; v26 = *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v9 + 312LL))(v9) + 4); v11 = v25; v11.f32[0] = v25.f32[0] + (float)((float)((*(float (__fastcall **)(void *))(*(_QWORD *)v10 + 152LL))(v10) * v26) + v24.f32[0]); v25 = v11; } ++arr; } while ( arr <= v8 ); v5 = a1->m_pChildren; LABEL_11: if ( !v5 ) return; v12 = v25; v12.f32[0] = v25.f32[0] * 0.5; v25 = v12; if ( !(unsigned int)sub_100720070((__int64)v5) ) return; goto LABEL_15; } v13 = (__m128)0xBF000000; v13.f32[0] = -0.5 * v24.f32[0]; v25 = v13; if ( !(unsigned int)sub_100720070((__int64)v5) ) return; LABEL_15: v14 = a1->m_pChildren; if ( v14 ) { v15 = v14->data; if ( v15->num ) { v16 = (const void **)v15->arr; v17 = &v16[v15->num - 1]; do { if ( !*v16 ) break; v18 = __dynamic_cast( *v16, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, 0); if ( v18 ) { v19 = v18; v26 = *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v18 + 312LL))(v18) + 4); v20 = (*(float (__fastcall **)(void *))(*(_QWORD *)v19 + 152LL))(v19); sub_10028CBE0(&v23, 0.0, (float)((float)(v26 * v20) * -0.5) + v25.f32[0]); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v19 + 184LL))(v19, &v23); v26 = *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v19 + 312LL))(v19) + 4); v21 = (*(float (__fastcall **)(void *))(*(_QWORD *)v19 + 152LL))(v19); v22 = v25; v22.f32[0] = v25.f32[0] - (float)((float)(v21 * v26) + v24.f32[0]); v25 = v22; } ++v16; } while ( v16 <= v17 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source