{"type": "func", "start": 4298794944, "end": 4298795116, "name": "BoomScrollLayer::selectPage", "pseudocode": "// \n// BoomScrollLayer::selectPage from 0x1003a67c0 to 0x1003a686c (172 bytes)\n// \n// 0 xrefs:\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::selectPage(BoomScrollLayer *a1, int a2)\n{\n  ExtendedLayer *m_extendedLayer; // r15\n  float *v3; // rax\n  float v4; // [rsp-34h] [rbp-34h] BYREF\n  float v5; // [rsp-2Ch] [rbp-2Ch]\n\n  if ( a2 >= 0 && (int)sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) > a2 )\n  {\n    m_extendedLayer = a1->m_extendedLayer;\n    v5 = (float)-a2;\n    v3 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1);\n    sub_10028CBE0(&v4, (float)(*v3 - a1->m_pageOffset) * v5, 0.0);\n    ((void (__fastcall *)(ExtendedLayer *, float *))m_extendedLayer->setPosition)(m_extendedLayer, &v4);\n    a1->m_slowPage = a1->m_page;\n    a1->m_page = a2;\n  }\n}", "assembly": "; \n; BoomScrollLayer::selectPage from 0x1003a67c0 to 0x1003a686c (172 bytes)\n; \n; 0 xrefs:\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\ntest    esi, esi                                                       ; +0x0, 0x1003a67c0\njs      locret_1003A686B                                               ; +0x2, 0x1003a67c2\npush    rbp                                                            ; +0x8, 0x1003a67c8\nmov     rbp, rsp                                                       ; +0x9, 0x1003a67c9\npush    r15                                                            ; +0xc, 0x1003a67cc\npush    r14                                                            ; +0xe, 0x1003a67ce\npush    r12                                                            ; +0x10, 0x1003a67d0\npush    rbx                                                            ; +0x12, 0x1003a67d2\nsub     rsp, 10h                                                       ; +0x13, 0x1003a67d3\nmov     ebx, esi                                                       ; +0x17, 0x1003a67d7\nmov     r14, rdi                                                       ; +0x19, 0x1003a67d9\nmovzx   eax, byte ptr [rdi+1C0h]                                       ; +0x1c, 0x1003a67dc\nxor     eax, 1                                                         ; +0x23, 0x1003a67e3\nshl     eax, 5                                                         ; +0x26, 0x1003a67e6\nmov     rdi, [rax+rdi+1B8h]                                            ; +0x29, 0x1003a67e9\ncall    sub_100720070                                                  ; +0x31, 0x1003a67f1\ncmp     eax, ebx                                                       ; +0x36, 0x1003a67f6\njle     short loc_1003A685F                                            ; +0x38, 0x1003a67f8\nmov     r15, [r14+1F0h]                                                ; +0x3a, 0x1003a67fa\nmov     eax, ebx                                                       ; +0x41, 0x1003a6801\nneg     eax                                                            ; +0x43, 0x1003a6803\ncvtsi2ss xmm0, eax                                                     ; +0x45, 0x1003a6805\nmovss   dword ptr [rbp-24h], xmm0                                      ; +0x49, 0x1003a6809\nmov     rax, [r14]                                                     ; +0x4e, 0x1003a680e\nmov     rdi, r14                                                       ; +0x51, 0x1003a6811\ncall    qword ptr [rax+138h]                                           ; +0x54, 0x1003a6814\nmovss   xmm0, dword ptr [rax]                                          ; +0x5a, 0x1003a681a\nsubss   xmm0, dword ptr [r14+248h]                                     ; +0x5e, 0x1003a681e\nmulss   xmm0, dword ptr [rbp-24h]                                      ; +0x67, 0x1003a6827\nlea     r12, [rbp-2Ch]                                                 ; +0x6c, 0x1003a682c\nxorps   xmm1, xmm1                                                     ; +0x70, 0x1003a6830\nmov     rdi, r12                                                       ; +0x73, 0x1003a6833\ncall    sub_10028CBE0                                                  ; +0x76, 0x1003a6836\nmov     rax, [r15]                                                     ; +0x7b, 0x1003a683b\nmov     rdi, r15                                                       ; +0x7e, 0x1003a683e\nmov     rsi, r12                                                       ; +0x81, 0x1003a6841\ncall    qword ptr [rax+0B8h]                                           ; +0x84, 0x1003a6844\nmov     eax, [r14+244h]                                                ; +0x8a, 0x1003a684a\nmov     [r14+1A0h], eax                                                ; +0x91, 0x1003a6851\nmov     [r14+244h], ebx                                                ; +0x98, 0x1003a6858\nadd     rsp, 10h                                                       ; +0x9f, 0x1003a685f\npop     rbx                                                            ; +0xa3, 0x1003a6863\npop     r12                                                            ; +0xa4, 0x1003a6864\npop     r14                                                            ; +0xa6, 0x1003a6866\npop     r15                                                            ; +0xa8, 0x1003a6868\npop     rbp                                                            ; +0xaa, 0x1003a686a\nretn                                                                   ; +0xab, 0x1003a686b", "xrefs": [], "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"}