{"type": "func", "start": 4298789072, "end": 4298789352, "name": "BoomScrollLayer::updatePages", "pseudocode": "// \n// BoomScrollLayer::updatePages from 0x1003a50d0 to 0x1003a51e8 (280 bytes)\n// \n// 5 xrefs:\n// > BoomScrollLayer::init @ 0x1003a4e59\n// > BoomScrollLayer::addPage_1 @ 0x1003a692a\n// > BoomScrollLayer::addPage @ 0x1003a699e\n// > BoomScrollLayer::removePage @ 0x1003a69f5\n// > BoomScrollLayer::removePageWithNumber @ 0x1003a6ab3\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::updatePages(BoomScrollLayer *a1)\n{\n  unsigned int v1; // r14d\n  __int64 v2; // r12\n  float *v3; // rax\n  float v4; // [rsp+4h] [rbp-2Ch] BYREF\n  float v5; // [rsp+Ch] [rbp-24h]\n  double v6; // 0:xmm0_8.8\n\n  if ( (unsigned int)sub_100720070(a1->m_pages) )\n  {\n    v1 = 0;\n    do\n    {\n      v2 = sub_1007200C0(a1->m_pages, v1);\n      sub_10028CBE0(&v4, 0.0, 0.0);\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 280LL))(v2, &v4);\n      cocos2d::CCDirector::sharedDirector();\n      *(cocos2d::CCSize *)&v6 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v4);\n      (*(void (__fastcall **)(__int64, float *, double))(*(_QWORD *)v2 + 304LL))(v2, &v4, v6);\n      v5 = (float)(int)v1;\n      v3 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1);\n      sub_10028CBE0(&v4, (float)(*v3 - a1->m_pageOffset) * v5, 0.0);\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 184LL))(v2, &v4);\n      if ( !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 496LL))(v2) )\n        ((void (__fastcall *)(ExtendedLayer *, __int64))a1->m_extendedLayer->addChild)(a1->m_extendedLayer, v2);\n      ++v1;\n    }\n    while ( v1 < (unsigned int)sub_100720070(a1->m_pages) );\n  }\n}", "assembly": "; \n; BoomScrollLayer::updatePages from 0x1003a50d0 to 0x1003a51e8 (280 bytes)\n; \n; 5 xrefs:\n; > BoomScrollLayer::init @ 0x1003a4e59\n; > BoomScrollLayer::addPage_1 @ 0x1003a692a\n; > BoomScrollLayer::addPage @ 0x1003a699e\n; > BoomScrollLayer::removePage @ 0x1003a69f5\n; > BoomScrollLayer::removePageWithNumber @ 0x1003a6ab3\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, 0x1003a50d0\nmov     rbp, rsp                                                       ; +0x1, 0x1003a50d1\npush    r15                                                            ; +0x4, 0x1003a50d4\npush    r14                                                            ; +0x6, 0x1003a50d6\npush    r12                                                            ; +0x8, 0x1003a50d8\npush    rbx                                                            ; +0xa, 0x1003a50da\nsub     rsp, 10h                                                       ; +0xb, 0x1003a50db\nmov     rbx, rdi                                                       ; +0xf, 0x1003a50df\nmov     rdi, [rdi+1D8h]                                                ; +0x12, 0x1003a50e2\ncall    sub_100720070                                                  ; +0x19, 0x1003a50e9\ntest    eax, eax                                                       ; +0x1e, 0x1003a50ee\njz      loc_1003A51DB                                                  ; +0x20, 0x1003a50f0\nxor     r14d, r14d                                                     ; +0x26, 0x1003a50f6\nlea     r15, [rbp+var_2C]                                              ; +0x29, 0x1003a50f9\njmp     short loc_1003A5118                                            ; +0x2d, 0x1003a50fd\nalign 20h                                                              ; +0x2f, 0x1003a50ff\ninc     r14d                                                           ; +0x30, 0x1003a5100\nmov     rdi, [rbx+1D8h]                                                ; +0x33, 0x1003a5103\ncall    sub_100720070                                                  ; +0x3a, 0x1003a510a\ncmp     r14d, eax                                                      ; +0x3f, 0x1003a510f\njnb     loc_1003A51DB                                                  ; +0x42, 0x1003a5112\nmov     rdi, [rbx+1D8h]                                                ; +0x48, 0x1003a5118\nmov     esi, r14d                                                      ; +0x4f, 0x1003a511f\ncall    sub_1007200C0                                                  ; +0x52, 0x1003a5122\nmov     r12, rax                                                       ; +0x57, 0x1003a5127\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x1003a512a\nxorps   xmm1, xmm1                                                     ; +0x5d, 0x1003a512d\nmov     rdi, r15                                                       ; +0x60, 0x1003a5130\ncall    sub_10028CBE0                                                  ; +0x63, 0x1003a5133\nmov     rax, [r12]                                                     ; +0x68, 0x1003a5138\nmov     rdi, r12                                                       ; +0x6c, 0x1003a513c\nmov     rsi, r15                                                       ; +0x6f, 0x1003a513f\ncall    qword ptr [rax+118h]                                           ; +0x72, 0x1003a5142\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x78, 0x1003a5148\nmov     rdi, r15                                                       ; +0x7d, 0x1003a514d\nmov     rsi, rax                                                       ; +0x80, 0x1003a5150\ncall    cocos2d__CCDirector__getWinSize                                ; +0x83, 0x1003a5153\nmov     rax, [r12]                                                     ; +0x88, 0x1003a5158\nmov     rdi, r12                                                       ; +0x8c, 0x1003a515c\nmov     rsi, r15                                                       ; +0x8f, 0x1003a515f\ncall    qword ptr [rax+130h]                                           ; +0x92, 0x1003a5162\nxorps   xmm0, xmm0                                                     ; +0x98, 0x1003a5168\ncvtsi2ss xmm0, r14d                                                    ; +0x9b, 0x1003a516b\nmovss   [rbp+var_24], xmm0                                             ; +0xa0, 0x1003a5170\nmov     rax, [rbx]                                                     ; +0xa5, 0x1003a5175\nmov     rdi, rbx                                                       ; +0xa8, 0x1003a5178\ncall    qword ptr [rax+138h]                                           ; +0xab, 0x1003a517b\nmovss   xmm0, dword ptr [rax]                                          ; +0xb1, 0x1003a5181\nsubss   xmm0, dword ptr [rbx+248h]                                     ; +0xb5, 0x1003a5185\nmulss   xmm0, [rbp+var_24]                                             ; +0xbd, 0x1003a518d\nxorps   xmm1, xmm1                                                     ; +0xc2, 0x1003a5192\nmov     rdi, r15                                                       ; +0xc5, 0x1003a5195\ncall    sub_10028CBE0                                                  ; +0xc8, 0x1003a5198\nmov     rax, [r12]                                                     ; +0xcd, 0x1003a519d\nmov     rdi, r12                                                       ; +0xd1, 0x1003a51a1\nmov     rsi, r15                                                       ; +0xd4, 0x1003a51a4\ncall    qword ptr [rax+0B8h]                                           ; +0xd7, 0x1003a51a7\nmov     rax, [r12]                                                     ; +0xdd, 0x1003a51ad\nmov     rdi, r12                                                       ; +0xe1, 0x1003a51b1\ncall    qword ptr [rax+1F0h]                                           ; +0xe4, 0x1003a51b4\ntest    rax, rax                                                       ; +0xea, 0x1003a51ba\njnz     loc_1003A5100                                                  ; +0xed, 0x1003a51bd\nmov     rdi, [rbx+1F0h]                                                ; +0xf3, 0x1003a51c3\nmov     rax, [rdi]                                                     ; +0xfa, 0x1003a51ca\nmov     rsi, r12                                                       ; +0xfd, 0x1003a51cd\ncall    qword ptr [rax+1B8h]                                           ; +0x100, 0x1003a51d0\njmp     loc_1003A5100                                                  ; +0x106, 0x1003a51d6\nadd     rsp, 10h                                                       ; +0x10b, 0x1003a51db\npop     rbx                                                            ; +0x10f, 0x1003a51df\npop     r12                                                            ; +0x110, 0x1003a51e0\npop     r14                                                            ; +0x112, 0x1003a51e2\npop     r15                                                            ; +0x114, 0x1003a51e4\npop     rbp                                                            ; +0x116, 0x1003a51e6\nretn                                                                   ; +0x117, 0x1003a51e7", "xrefs": ["BoomScrollLayer::init @ 0x1003a4e59", "BoomScrollLayer::addPage_1 @ 0x1003a692a", "BoomScrollLayer::addPage @ 0x1003a699e", "BoomScrollLayer::removePage @ 0x1003a69f5", "BoomScrollLayer::removePageWithNumber @ 0x1003a6ab3"], "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"}