{"type": "func", "start": 4298700992, "end": 4298701200, "name": "BoomScrollLayer::pageNumberForPosition", "pseudocode": "// \n// BoomScrollLayer::pageNumberForPosition from 0x10038f8c0 to 0x10038f990 (208 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:29:13 +0000\n// \n\n__int64 __fastcall BoomScrollLayer::pageNumberForPosition(__int64 a1)\n{\n  __m128 v1; // xmm1\n  __m128 v2; // xmm0\n  int v3; // r14d\n\n  v1 = _mm_xor_ps(\n         (__m128)*(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 504) + 192LL))(*(_QWORD *)(a1 + 504)),\n         (__m128)xmmword_100A035F0);\n  v1.f32[0] = v1.f32[0]\n            / (float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) - *(float *)(a1 + 592));\n  v2 = _mm_round_ss((__m128)0LL, v1, 10);\n  v3 = ((float)(_mm_cvtepi32_ps(_mm_cvttps_epi32(v2)).f32[0] - v1.f32[0]) < 0.5) + (int)v2.f32[0] - 1;\n  if ( !*(_BYTE *)(a1 + 436) )\n  {\n    if ( v3 <= 0 )\n      v3 = 0;\n    if ( (int)(sub_1007FEF90(*(_QWORD *)(a1 + 32 * (*(unsigned __int8 *)(a1 + 456) ^ 1u) + 448)) - 1) <= v3 )\n      return (unsigned int)(sub_1007FEF90(*(_QWORD *)(a1 + 32 * (*(unsigned __int8 *)(a1 + 456) ^ 1u) + 448)) - 1);\n  }\n  return (unsigned int)v3;\n}", "assembly": "; \n; BoomScrollLayer::pageNumberForPosition from 0x10038f8c0 to 0x10038f990 (208 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:29:13 +0000\n; \npush    rbp                                                            ; +0x0, 0x10038f8c0\nmov     rbp, rsp                                                       ; +0x1, 0x10038f8c1\npush    r14                                                            ; +0x4, 0x10038f8c4\npush    rbx                                                            ; +0x6, 0x10038f8c6\nsub     rsp, 10h                                                       ; +0x7, 0x10038f8c7\nmov     rbx, rdi                                                       ; +0xb, 0x10038f8cb\nmov     rdi, [rdi+1F8h]                                                ; +0xe, 0x10038f8ce\nmov     rax, [rdi]                                                     ; +0x15, 0x10038f8d5\ncall    qword ptr [rax+0C0h]                                           ; +0x18, 0x10038f8d8\nmovss   xmm0, dword ptr [rax]                                          ; +0x1e, 0x10038f8de\nxorps   xmm0, cs:xmmword_100A035F0                                     ; +0x22, 0x10038f8e2\nmovaps  [rbp+var_20], xmm0                                             ; +0x29, 0x10038f8e9\nmov     rax, [rbx]                                                     ; +0x2d, 0x10038f8ed\nmov     rdi, rbx                                                       ; +0x30, 0x10038f8f0\ncall    qword ptr [rax+148h]                                           ; +0x33, 0x10038f8f3\nmovss   xmm0, dword ptr [rax]                                          ; +0x39, 0x10038f8f9\nsubss   xmm0, dword ptr [rbx+250h]                                     ; +0x3d, 0x10038f8fd\nmovaps  xmm1, [rbp+var_20]                                             ; +0x45, 0x10038f905\ndivss   xmm1, xmm0                                                     ; +0x49, 0x10038f909\nxorps   xmm0, xmm0                                                     ; +0x4d, 0x10038f90d\nroundss xmm0, xmm1, 0Ah                                                ; +0x50, 0x10038f910\ncvttss2si r14d, xmm0                                                   ; +0x56, 0x10038f916\ncvttps2dq xmm0, xmm0                                                   ; +0x5b, 0x10038f91b\ncvtdq2ps xmm0, xmm0                                                    ; +0x5f, 0x10038f91f\nsubss   xmm0, xmm1                                                     ; +0x62, 0x10038f922\nucomiss xmm0, cs:dword_100A03578                                       ; +0x66, 0x10038f926\nadc     r14d, 0FFFFFFFFh                                               ; +0x6d, 0x10038f92d\ncmp     byte ptr [rbx+1B4h], 0                                         ; +0x71, 0x10038f931\njnz     short loc_10038F984                                            ; +0x78, 0x10038f938\nxor     eax, eax                                                       ; +0x7a, 0x10038f93a\ntest    r14d, r14d                                                     ; +0x7c, 0x10038f93c\ncmovle  r14d, eax                                                      ; +0x7f, 0x10038f93f\nmovzx   eax, byte ptr [rbx+1C8h]                                       ; +0x83, 0x10038f943\nxor     eax, 1                                                         ; +0x8a, 0x10038f94a\nshl     eax, 5                                                         ; +0x8d, 0x10038f94d\nmov     rdi, [rbx+rax+1C0h]                                            ; +0x90, 0x10038f950\ncall    sub_1007FEF90                                                  ; +0x98, 0x10038f958\ndec     eax                                                            ; +0x9d, 0x10038f95d\ncmp     eax, r14d                                                      ; +0x9f, 0x10038f95f\njg      short loc_10038F984                                            ; +0xa2, 0x10038f962\nmovzx   eax, byte ptr [rbx+1C8h]                                       ; +0xa4, 0x10038f964\nxor     eax, 1                                                         ; +0xab, 0x10038f96b\nshl     eax, 5                                                         ; +0xae, 0x10038f96e\nmov     rdi, [rbx+rax+1C0h]                                            ; +0xb1, 0x10038f971\ncall    sub_1007FEF90                                                  ; +0xb9, 0x10038f979\nmov     r14d, eax                                                      ; +0xbe, 0x10038f97e\ndec     r14d                                                           ; +0xc1, 0x10038f981\nmov     eax, r14d                                                      ; +0xc4, 0x10038f984\nadd     rsp, 10h                                                       ; +0xc7, 0x10038f987\npop     rbx                                                            ; +0xcb, 0x10038f98b\npop     r14                                                            ; +0xcc, 0x10038f98c\npop     rbp                                                            ; +0xce, 0x10038f98e\nretn                                                                   ; +0xcf, 0x10038f98f", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}