// // BoomScrollLayer::moveToPageEnded from 0x1003a63a0 to 0x1003a64d3 (307 bytes) // // 3 xrefs: // > BoomScrollLayer::instantMoveToPage @ 0x1003a65f8 // > BoomScrollLayer::quickUpdate @ 0x1003a68bd // > BoomScrollLayer::moveToPage @ 0x1003a673e // // 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 __fastcall BoomScrollLayer::moveToPageEnded(BoomScrollLayer *a1) { BoomScrollLayerDelegate *m_delegate; // rdi double *v3; // rsi double v4; // xmm0_8 float *v5; // rax __m128 v6; // xmm1 __m128 v7; // xmm0 int v8; // r14d float v9; // xmm0_4 int v10; // r14d __int64 v11; // [rsp+8h] [rbp-28h] BYREF __m128 v12; // [rsp+10h] [rbp-20h] if ( a1->m_slowPage != a1->m_page ) { m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(BoomScrollLayerDelegate *, BoomScrollLayer *))m_delegate->scrollLayerScrolledToPage)( m_delegate, a1); } cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2); v3 = (double *)((__int64 (__fastcall *)(ExtendedLayer *))a1->m_extendedLayer->getPosition)(a1->m_extendedLayer); v4 = sub_10028CC60(&v11, v3); v12 = _mm_xor_ps( (__m128)*(unsigned int *)((__int64 (__fastcall *)(ExtendedLayer *, double))a1->m_extendedLayer->getPosition)( a1->m_extendedLayer, v4), (__m128)xmmword_1008150B0); v5 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1); v6 = v12; v6.f32[0] = v12.f32[0] / (float)(*v5 - a1->m_pageOffset); v7 = _mm_round_ss((__m128)0LL, v6, 10); v8 = (int)v7.f32[0]; v9 = _mm_cvtepi32_ps(_mm_cvttps_epi32(v7)).f32[0] - v6.f32[0]; v10 = (v9 < 0.5) + v8 - 1; if ( !a1->m_looped ) { if ( v10 <= 0 ) v10 = 0; if ( (int)(sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) - 1) <= v10 ) v10 = sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) - 1; } a1->m_page = v10; a1->m_slowPage = v10; BoomScrollLayer::updateDots(a1, v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source