// // BoomScrollLayer::pageNumberForPosition from 0x689704 to 0x6897c8 (196 bytes) // // 5 xrefs: // > BoomScrollLayer::updateDots @ 0x6898e4 // > BoomScrollLayer::moveToPageEnded @ 0x689ad8 // > BoomScrollLayer::ccTouchEnded @ 0x68a3e8 // > BoomScrollLayer::ccTouchMoved @ 0x68a9b4 // > @ 0xf1540 // // 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 12:50:32 +0000 // __int64 __fastcall BoomScrollLayer::pageNumberForPosition(cocos2d::CCArray **a1) { float v2; // s8 float v3; // s0 int v4; // w19 v2 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)a1[63] + 192LL))(a1[63]); v3 = (float)-v2 / (float)(*(float *)(*((__int64 (__fastcall **)(cocos2d::CCArray **))*a1 + 41))(a1) - *((float *)a1 + 148)); v4 = vcvtps_s32_f32(v3); if ( (float)((float)v4 - v3) >= 0.5 ) --v4; if ( *((_BYTE *)a1 + 436) ) return (unsigned int)v4; if ( v4 < 0 ) v4 = 0; if ( v4 < (int)(BoomScrollLayer::getTotalPages(a1) - 1) ) return (unsigned int)v4; else return (unsigned int)BoomScrollLayer::getTotalPages(a1) - 1; }