{"type": "func", "start": 4298795344, "end": 4298795451, "name": "BoomScrollLayer::addPage", "pseudocode": "// \n// BoomScrollLayer::addPage from 0x1003a6950 to 0x1003a69bb (107 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::addPage(BoomScrollLayer *a1, cocos2d::CCLayer *a2, int a3)\n{\n  int v3; // r15d\n  __int64 v4; // rdx\n\n  v3 = a3;\n  if ( (unsigned int)sub_100720070(a1->m_pages) < a3 )\n    v3 = sub_100720070(a1->m_pages);\n  v4 = 0;\n  if ( v3 > 0 )\n    v4 = (unsigned int)v3;\n  sub_1007201F0(a1->m_pages, a2, v4);\n  BoomScrollLayer::updatePages(a1);\n  BoomScrollLayer::moveToPage(a1, a1->m_page);\n}", "assembly": "; \n; BoomScrollLayer::addPage from 0x1003a6950 to 0x1003a69bb (107 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, 0x1003a6950\nmov     rbp, rsp                                                       ; +0x1, 0x1003a6951\npush    r15                                                            ; +0x4, 0x1003a6954\npush    r14                                                            ; +0x6, 0x1003a6956\npush    rbx                                                            ; +0x8, 0x1003a6958\npush    rax                                                            ; +0x9, 0x1003a6959\nmov     r15d, edx                                                      ; +0xa, 0x1003a695a\nmov     r14, rsi                                                       ; +0xd, 0x1003a695d\nmov     rbx, rdi                                                       ; +0x10, 0x1003a6960\nmov     rdi, [rdi+1D8h]                                                ; +0x13, 0x1003a6963\ncall    sub_100720070                                                  ; +0x1a, 0x1003a696a\ncmp     eax, r15d                                                      ; +0x1f, 0x1003a696f\njnb     short loc_1003A6983                                            ; +0x22, 0x1003a6972\nmov     rdi, [rbx+1D8h]                                                ; +0x24, 0x1003a6974\ncall    sub_100720070                                                  ; +0x2b, 0x1003a697b\nmov     r15d, eax                                                      ; +0x30, 0x1003a6980\nxor     edx, edx                                                       ; +0x33, 0x1003a6983\ntest    r15d, r15d                                                     ; +0x35, 0x1003a6985\ncmovg   edx, r15d                                                      ; +0x38, 0x1003a6988\nmov     rdi, [rbx+1D8h]                                                ; +0x3c, 0x1003a698c\nmov     rsi, r14                                                       ; +0x43, 0x1003a6993\ncall    sub_1007201F0                                                  ; +0x46, 0x1003a6996\nmov     rdi, rbx                                                       ; +0x4b, 0x1003a699b\ncall    BoomScrollLayer__updatePages                                   ; +0x4e, 0x1003a699e\nmov     esi, [rbx+244h]                                                ; +0x53, 0x1003a69a3\nmov     rdi, rbx                                                       ; +0x59, 0x1003a69a9\nadd     rsp, 8                                                         ; +0x5c, 0x1003a69ac\npop     rbx                                                            ; +0x60, 0x1003a69b0\npop     r14                                                            ; +0x61, 0x1003a69b1\npop     r15                                                            ; +0x63, 0x1003a69b3\npop     rbp                                                            ; +0x65, 0x1003a69b5\njmp     BoomScrollLayer__moveToPage                                    ; +0x66, 0x1003a69b6", "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"}