// // BoomScrollLayer::updateDots from 0x1003a5ad0 to 0x1003a5d69 (665 bytes) // // 4 xrefs: // > BoomScrollLayer::init @ 0x1003a4d82 // > BoomScrollLayer::setPagesIndicatorPosition @ 0x1003a50be // > BoomScrollLayer::moveToPageEnded @ 0x1003a64c5 // > BoomScrollLayer::init @ 0x1003a4f1b // // 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::updateDots(BoomScrollLayer *a1, float a2) { int v3; // r15d double *v4; // rsi double v5; // xmm0_8 __m128 v6; // xmm1 __m128 v7; // xmm0 unsigned __int64 v8; // r14 int v9; // ecx unsigned __int64 v10; // rdx unsigned int i; // r12d __int64 v12; // rax __int64 v13; // rdi __int64 *v14; // rsi int v15; // r14d __int64 v16; // r15 float x; // [rsp-58h] [rbp-58h] float v18; // [rsp-58h] [rbp-58h] __int64 v19; // [rsp-48h] [rbp-48h] BYREF float y; // [rsp-40h] [rbp-40h] float v21; // [rsp-3Ch] [rbp-3Ch] unsigned __int64 v22; // [rsp-38h] [rbp-38h] if ( a1->m_dots ) { v3 = sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)); y = a1->m_dotPosition.y; v4 = (double *)((__int64 (__fastcall *)(ExtendedLayer *))a1->m_extendedLayer->getPosition)(a1->m_extendedLayer); v5 = sub_10028CC60(&v19, v4); v6 = _mm_xor_ps( (__m128)*(unsigned int *)((__int64 (__fastcall *)(ExtendedLayer *, double))a1->m_extendedLayer->getPosition)( a1->m_extendedLayer, v5), (__m128)xmmword_1008150B0); v6.f32[0] = v6.f32[0] / (float)(*(float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1) - a1->m_pageOffset); v7 = _mm_round_ss((__m128)0LL, v6, 10); v8 = (unsigned int)((float)(_mm_cvtepi32_ps(_mm_cvttps_epi32(v7)).f32[0] - v6.f32[0]) < 0.5) + (int)v7.f32[0] - 1; if ( !a1->m_looped ) { if ( (int)v8 <= 0 ) v8 = 0; if ( (int)(sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) - 1) <= (int)v8 ) v8 = (unsigned int)sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) - 1; } if ( a1->m_looped ) { v9 = sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)); if ( (int)v8 <= 0 ) { v22 = (unsigned int)v8 + v9 * (((_DWORD)v8 != 0) + ((unsigned __int64)-__SPAIR64__(v8, v8) >> 32) / ((unsigned int)(v9 == 0) + v9)); if ( v3 <= 0 ) return; } else { v10 = (unsigned int)((int)v8 >> 31); LODWORD(v10) = (int)v8 % v9; v22 = v10; if ( v3 <= 0 ) return; } } else { v22 = v8; if ( v3 <= 0 ) return; } v21 = (float)((float)v3 + -1.0) * -0.5; for ( i = 0; i != v3; ++i ) { x = a1->m_dotPosition.x; if ( i < (unsigned int)sub_100720070(a1->m_dots) ) { v15 = v3; v18 = (float)((float)((float)(int)i + v21) * 16.0) + x; v16 = sub_1007200C0(a1->m_dots, i); sub_10028CBE0((float *)&v19, v18, y); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL))(v16, &v19); if ( (_DWORD)v22 == i ) { v12 = *(_QWORD *)v16; v13 = v16; v14 = (__int64 *)&unk_10081A890; } else { memset(&v19, 125, 3); v12 = *(_QWORD *)v16; v13 = v16; v14 = &v19; } (*(void (__fastcall **)(__int64, __int64 *))(v12 + 944))(v13, v14); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v16 + 328LL))(v16, a1->m_dotsVisible); v3 = v15; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source