{"type": "func", "start": 4298794208, "end": 4298794288, "name": "BoomScrollLayer::positionForPageWithNumber", "pseudocode": "// \n// BoomScrollLayer::positionForPageWithNumber from 0x1003a64e0 to 0x1003a6530 (80 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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::CCPoint __fastcall BoomScrollLayer::positionForPageWithNumber(BoomScrollLayer *a1, int a2)\n{\n  int v2; // edx\n  float v4; // [rsp+Ch] [rbp-14h]\n  cocos2d::CCPoint result; // 0:xmm0_8.8\n\n  v4 = (float)-v2;\n  result = (cocos2d::CCPoint)*(unsigned int *)(*(__int64 (__fastcall **)(int))(**(_QWORD **)&a2 + 312LL))(a2);\n  result.x = (float)(result.x - *(float *)(*(_QWORD *)&a2 + 584LL)) * v4;\n  sub_10028CBE0((float *)a1, result.x, 0.0);\n  return result;\n}", "assembly": "; \n; BoomScrollLayer::positionForPageWithNumber from 0x1003a64e0 to 0x1003a6530 (80 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\npush    rbp                                                            ; +0x0, 0x1003a64e0\nmov     rbp, rsp                                                       ; +0x1, 0x1003a64e1\npush    r14                                                            ; +0x4, 0x1003a64e4\npush    rbx                                                            ; +0x6, 0x1003a64e6\nsub     rsp, 10h                                                       ; +0x7, 0x1003a64e7\nmov     rbx, rsi                                                       ; +0xb, 0x1003a64eb\nmov     r14, rdi                                                       ; +0xe, 0x1003a64ee\nneg     edx                                                            ; +0x11, 0x1003a64f1\ncvtsi2ss xmm0, edx                                                     ; +0x13, 0x1003a64f3\nmovss   [rbp+var_14], xmm0                                             ; +0x17, 0x1003a64f7\nmov     rax, [rsi]                                                     ; +0x1c, 0x1003a64fc\nmov     rdi, rsi                                                       ; +0x1f, 0x1003a64ff\ncall    qword ptr [rax+138h]                                           ; +0x22, 0x1003a6502\nmovss   xmm0, dword ptr [rax]                                          ; +0x28, 0x1003a6508\nsubss   xmm0, dword ptr [rbx+248h]                                     ; +0x2c, 0x1003a650c\nmulss   xmm0, [rbp+var_14]                                             ; +0x34, 0x1003a6514\nxorps   xmm1, xmm1                                                     ; +0x39, 0x1003a6519\nmov     rdi, r14                                                       ; +0x3c, 0x1003a651c\ncall    sub_10028CBE0                                                  ; +0x3f, 0x1003a651f\nmov     rax, r14                                                       ; +0x44, 0x1003a6524\nadd     rsp, 10h                                                       ; +0x47, 0x1003a6527\npop     rbx                                                            ; +0x4b, 0x1003a652b\npop     r14                                                            ; +0x4c, 0x1003a652c\npop     rbp                                                            ; +0x4e, 0x1003a652e\nretn                                                                   ; +0x4f, 0x1003a652f", "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"}