{"type": "func", "start": 4298793888, "end": 4298794195, "name": "BoomScrollLayer::moveToPageEnded", "pseudocode": "// \n// BoomScrollLayer::moveToPageEnded from 0x1003a63a0 to 0x1003a64d3 (307 bytes)\n// \n// 3 xrefs:\n// > BoomScrollLayer::instantMoveToPage @ 0x1003a65f8\n// > BoomScrollLayer::quickUpdate @ 0x1003a68bd\n// > BoomScrollLayer::moveToPage @ 0x1003a673e\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall BoomScrollLayer::moveToPageEnded(BoomScrollLayer *a1)\n{\n  BoomScrollLayerDelegate *m_delegate; // rdi\n  double *v3; // rsi\n  double v4; // xmm0_8\n  float *v5; // rax\n  __m128 v6; // xmm1\n  __m128 v7; // xmm0\n  int v8; // r14d\n  float v9; // xmm0_4\n  int v10; // r14d\n  __int64 v11; // [rsp+8h] [rbp-28h] BYREF\n  __m128 v12; // [rsp+10h] [rbp-20h]\n\n  if ( a1->m_slowPage != a1->m_page )\n  {\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(BoomScrollLayerDelegate *, BoomScrollLayer *))m_delegate->scrollLayerScrolledToPage)(\n        m_delegate,\n        a1);\n  }\n  cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n  v3 = (double *)((__int64 (__fastcall *)(ExtendedLayer *))a1->m_extendedLayer->getPosition)(a1->m_extendedLayer);\n  v4 = sub_10028CC60(&v11, v3);\n  v12 = _mm_xor_ps(\n          (__m128)*(unsigned int *)((__int64 (__fastcall *)(ExtendedLayer *, double))a1->m_extendedLayer->getPosition)(\n                                     a1->m_extendedLayer,\n                                     v4),\n          (__m128)xmmword_1008150B0);\n  v5 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1);\n  v6 = v12;\n  v6.f32[0] = v12.f32[0] / (float)(*v5 - a1->m_pageOffset);\n  v7 = _mm_round_ss((__m128)0LL, v6, 10);\n  v8 = (int)v7.f32[0];\n  v9 = _mm_cvtepi32_ps(_mm_cvttps_epi32(v7)).f32[0] - v6.f32[0];\n  v10 = (v9 < 0.5) + v8 - 1;\n  if ( !a1->m_looped )\n  {\n    if ( v10 <= 0 )\n      v10 = 0;\n    if ( (int)(sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) - 1) <= v10 )\n      v10 = sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) - 1;\n  }\n  a1->m_page = v10;\n  a1->m_slowPage = v10;\n  BoomScrollLayer::updateDots(a1, v9);\n}", "assembly": "; \n; BoomScrollLayer::moveToPageEnded from 0x1003a63a0 to 0x1003a64d3 (307 bytes)\n; \n; 3 xrefs:\n; > BoomScrollLayer::instantMoveToPage @ 0x1003a65f8\n; > BoomScrollLayer::quickUpdate @ 0x1003a68bd\n; > BoomScrollLayer::moveToPage @ 0x1003a673e\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1003a63a0\nmov     rbp, rsp                                                       ; +0x1, 0x1003a63a1\npush    r14                                                            ; +0x4, 0x1003a63a4\npush    rbx                                                            ; +0x6, 0x1003a63a6\nsub     rsp, 20h                                                       ; +0x7, 0x1003a63a7\nmov     rbx, rdi                                                       ; +0xb, 0x1003a63ab\nmov     edx, [rdi+244h]                                                ; +0xe, 0x1003a63ae\ncmp     [rdi+1A0h], edx                                                ; +0x14, 0x1003a63b4\njz      short loc_1003A63D1                                            ; +0x1a, 0x1003a63ba\nmov     rdi, [rbx+218h]                                                ; +0x1c, 0x1003a63bc\ntest    rdi, rdi                                                       ; +0x23, 0x1003a63c3\njz      short loc_1003A63D1                                            ; +0x26, 0x1003a63c6\nmov     rax, [rdi]                                                     ; +0x28, 0x1003a63c8\nmov     rsi, rbx                                                       ; +0x2b, 0x1003a63cb\ncall    qword ptr [rax+8]                                              ; +0x2e, 0x1003a63ce\nmov     rdi, [rbx+1F0h]                                                ; +0x31, 0x1003a63d1\nmov     esi, 2                                                         ; +0x38, 0x1003a63d8\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x3d, 0x1003a63dd\nmov     rdi, [rbx+1F0h]                                                ; +0x42, 0x1003a63e2\nmov     rax, [rdi]                                                     ; +0x49, 0x1003a63e9\ncall    qword ptr [rax+0C0h]                                           ; +0x4c, 0x1003a63ec\nlea     rdi, [rbp+var_28]                                              ; +0x52, 0x1003a63f2\nmov     rsi, rax                                                       ; +0x56, 0x1003a63f6\ncall    sub_10028CC60                                                  ; +0x59, 0x1003a63f9\nmov     rdi, [rbx+1F0h]                                                ; +0x5e, 0x1003a63fe\nmov     rax, [rdi]                                                     ; +0x65, 0x1003a6405\ncall    qword ptr [rax+0C0h]                                           ; +0x68, 0x1003a6408\nmovss   xmm0, dword ptr [rax]                                          ; +0x6e, 0x1003a640e\nxorps   xmm0, cs:xmmword_1008150B0                                     ; +0x72, 0x1003a6412\nmovaps  [rbp+var_20], xmm0                                             ; +0x79, 0x1003a6419\nmov     rax, [rbx]                                                     ; +0x7d, 0x1003a641d\nmov     rdi, rbx                                                       ; +0x80, 0x1003a6420\ncall    qword ptr [rax+138h]                                           ; +0x83, 0x1003a6423\nmovss   xmm0, dword ptr [rax]                                          ; +0x89, 0x1003a6429\nsubss   xmm0, dword ptr [rbx+248h]                                     ; +0x8d, 0x1003a642d\nmovaps  xmm1, [rbp+var_20]                                             ; +0x95, 0x1003a6435\ndivss   xmm1, xmm0                                                     ; +0x99, 0x1003a6439\nxorps   xmm0, xmm0                                                     ; +0x9d, 0x1003a643d\nroundss xmm0, xmm1, 0Ah                                                ; +0xa0, 0x1003a6440\ncvttss2si r14d, xmm0                                                   ; +0xa6, 0x1003a6446\ncvttps2dq xmm0, xmm0                                                   ; +0xab, 0x1003a644b\ncvtdq2ps xmm0, xmm0                                                    ; +0xaf, 0x1003a644f\nsubss   xmm0, xmm1                                                     ; +0xb2, 0x1003a6452\nucomiss xmm0, cs:dword_100814FA8                                       ; +0xb6, 0x1003a6456\nadc     r14d, 0FFFFFFFFh                                               ; +0xbd, 0x1003a645d\ncmp     byte ptr [rbx+1ACh], 0                                         ; +0xc1, 0x1003a6461\njnz     short loc_1003A64B4                                            ; +0xc8, 0x1003a6468\nxor     eax, eax                                                       ; +0xca, 0x1003a646a\ntest    r14d, r14d                                                     ; +0xcc, 0x1003a646c\ncmovle  r14d, eax                                                      ; +0xcf, 0x1003a646f\nmovzx   eax, byte ptr [rbx+1C0h]                                       ; +0xd3, 0x1003a6473\nxor     eax, 1                                                         ; +0xda, 0x1003a647a\nshl     eax, 5                                                         ; +0xdd, 0x1003a647d\nmov     rdi, [rax+rbx+1B8h]                                            ; +0xe0, 0x1003a6480\ncall    sub_100720070                                                  ; +0xe8, 0x1003a6488\ndec     eax                                                            ; +0xed, 0x1003a648d\ncmp     eax, r14d                                                      ; +0xef, 0x1003a648f\njg      short loc_1003A64B4                                            ; +0xf2, 0x1003a6492\nmovzx   eax, byte ptr [rbx+1C0h]                                       ; +0xf4, 0x1003a6494\nxor     eax, 1                                                         ; +0xfb, 0x1003a649b\nshl     eax, 5                                                         ; +0xfe, 0x1003a649e\nmov     rdi, [rax+rbx+1B8h]                                            ; +0x101, 0x1003a64a1\ncall    sub_100720070                                                  ; +0x109, 0x1003a64a9\nmov     r14d, eax                                                      ; +0x10e, 0x1003a64ae\ndec     r14d                                                           ; +0x111, 0x1003a64b1\nmov     [rbx+244h], r14d                                               ; +0x114, 0x1003a64b4\nmov     [rbx+1A0h], r14d                                               ; +0x11b, 0x1003a64bb\nmov     rdi, rbx                                                       ; +0x122, 0x1003a64c2\ncall    BoomScrollLayer__updateDots                                    ; +0x125, 0x1003a64c5\nadd     rsp, 20h                                                       ; +0x12a, 0x1003a64ca\npop     rbx                                                            ; +0x12e, 0x1003a64ce\npop     r14                                                            ; +0x12f, 0x1003a64cf\npop     rbp                                                            ; +0x131, 0x1003a64d1\nretn                                                                   ; +0x132, 0x1003a64d2", "xrefs": ["BoomScrollLayer::instantMoveToPage @ 0x1003a65f8", "BoomScrollLayer::quickUpdate @ 0x1003a68bd", "BoomScrollLayer::moveToPage @ 0x1003a673e"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}