// // cocos2d::CCMenu::alignItemsHorizontallyWithPadding from 0x100874320 to 0x10087455f (575 bytes) // // 11 xrefs: // > CCTextInputMenu::init @ 0x100078811 // > EditLevelLayer::init @ 0x1001dda32 // > GJGarageLayer::setupIconSelect @ 0x100355027 // > GJGarageLayer::setupPage @ 0x10035661c // > MenuLayer::init @ 0x10037b28b // > PauseLayer::customSetup @ 0x1003bfcbf // > FLAlertLayer::init @ 0x100494735 // > EditorUI::setupCreateMenu @ 0x100637cff // > GJTransformControl::init @ 0x100643f34 // > cocos2d::CCMenu::alignItemsHorizontally @ 0x10087430d // > DailyRecallUnlockPopup::init @ 0x10098ac11 // // This function is hookable on this platform (idp: pc, 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 12:36:52 +0000 // void __fastcall cocos2d::CCMenu::alignItemsHorizontallyWithPadding(__int64 a1, __m128 a2) { __int64 v3; // rdi int v4; // eax __int64 v5; // rdi unsigned int *v6; // rax const void **v7; // r13 const void **v8; // r14 void *v9; // rax void *v10; // r12 __m128 v11; // xmm1 __m128 v12; // xmm0 __m128 v13; // xmm0 __int64 v14; // rax unsigned int *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 = a2; v3 = *(_QWORD *)(a1 + 208); if ( !v3 ) return; v25 = _mm_xor_ps((__m128)xmmword_100A035F0, v24); v4 = sub_1007FEF90(v3); v5 = *(_QWORD *)(a1 + 208); if ( !v4 ) goto LABEL_11; if ( !v5 ) return; v6 = *(unsigned int **)(v5 + 56); if ( *v6 ) { v7 = *((const void ***)v6 + 2); v8 = &v7[*v6 - 1]; do { if ( !*v7 ) break; v9 = __dynamic_cast( *v7, (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 + 328LL))(v9); v11 = v25; v11.f32[0] = v25.f32[0] + (float)((float)((*(float (__fastcall **)(void *))(*(_QWORD *)v10 + 136LL))(v10) * v26) + v24.f32[0]); v25 = v11; } ++v7; } while ( v7 <= v8 ); v5 = *(_QWORD *)(a1 + 208); LABEL_11: if ( !v5 ) return; v12 = v25; v12.f32[0] = v25.f32[0] * -0.5; v25 = v12; if ( !(unsigned int)sub_1007FEF90(v5) ) return; goto LABEL_15; } v13 = (__m128)0x3F000000u; v13.f32[0] = 0.5 * v24.f32[0]; v25 = v13; if ( !(unsigned int)sub_1007FEF90(v5) ) return; LABEL_15: v14 = *(_QWORD *)(a1 + 208); if ( v14 ) { v15 = *(unsigned int **)(v14 + 56); if ( *v15 ) { v16 = *((const void ***)v15 + 2); v17 = &v16[*v15 - 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 + 328LL))(v18); v20 = (*(float (__fastcall **)(void *))(*(_QWORD *)v19 + 136LL))(v19); sub_100278250(&v23, (float)((float)(v20 * v26) * 0.5) + v25.f32[0], 0.0); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v19 + 184LL))(v19, &v23); v26 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v19 + 328LL))(v19); v21 = (*(float (__fastcall **)(void *))(*(_QWORD *)v19 + 136LL))(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