{"type": "func", "start": 5368961168, "end": 5368961450, "name": "BoomScrollLayer::updatePages", "pseudocode": "// \n// BoomScrollLayer::updatePages from 0x14003d890 to 0x14003d9aa (282 bytes)\n// \n// 4 xrefs:\n// > BoomScrollLayer::init @ 0x14003d4f6\n// > <???> @ 0x140661c2c\n// > <???> @ 0x140661c3c\n// > <???> @ 0x1406c3f90\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 BoomScrollLayer::updatePages(BoomScrollLayer *a1)\n{\n  unsigned int i; // edi\n  cocos2d::CCNode *v3; // r14\n  cocos2d::CCNode_vtbl *v4; // rbx\n  const cocos2d::CCPoint *v5; // rax\n  cocos2d::CCNode_vtbl *v6; // rbx\n  cocos2d::CCDirector *v7; // rax\n  struct cocos2d::CCSize WinSize; // rax\n  float m_pageOffset; // xmm6_4\n  cocos2d::CCNode_vtbl *v10; // rbx\n  const cocos2d::CCSize *v11; // rax\n  const cocos2d::CCPoint *v12; // rax\n  cocos2d::CCPoint v13; // [rsp+50h] [rbp+8h] BYREF\n  cocos2d::CCPoint v14; // [rsp+60h] [rbp+18h] BYREF\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_pages); ++i )\n  {\n    v3 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_pages, i);\n    v4 = v3->__vftable;\n    v5 = (const cocos2d::CCPoint *)cocos2d::CCPoint::CCPoint(&v13, 0.0, 0.0);\n    v4->setAnchorPoint(v3, v5);\n    v6 = v3->__vftable;\n    v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector();\n    WinSize = cocos2d::CCDirector::getWinSize(v7);\n    ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSize))v6->setContentSize)(v3, WinSize);\n    m_pageOffset = a1->m_pageOffset;\n    v10 = v3->__vftable;\n    v11 = a1->getContentSize(a1);\n    v12 = (const cocos2d::CCPoint *)cocos2d::CCPoint::CCPoint(\n                                      &v14,\n                                      (float)(v11->width - m_pageOffset) * (float)(int)i,\n                                      0.0);\n    v10->setPosition_0(v3, v12);\n    if ( !v3->getParent(v3) )\n      a1->m_extendedLayer->addChild_1(a1->m_extendedLayer, v3);\n  }\n}", "assembly": "; \n; BoomScrollLayer::updatePages from 0x14003d890 to 0x14003d9aa (282 bytes)\n; \n; 4 xrefs:\n; > BoomScrollLayer::init @ 0x14003d4f6\n; > <???> @ 0x140661c2c\n; > <???> @ 0x140661c3c\n; > <???> @ 0x1406c3f90\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    rsi                                                            ; +0x0, 0x14003d890\npush    rdi                                                            ; +0x2, 0x14003d892\nsub     rsp, 38h                                                       ; +0x3, 0x14003d893\nmov     rsi, rcx                                                       ; +0x7, 0x14003d897\nxor     edi, edi                                                       ; +0xa, 0x14003d89a\nmov     rcx, [rcx+1D8h]                                                ; +0xc, 0x14003d89c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x13, 0x14003d8a3\ntest    eax, eax                                                       ; +0x19, 0x14003d8a9\njz      loc_14003D9A3                                                  ; +0x1b, 0x14003d8ab\nmov     [rsp+48h+arg_18], rbx                                          ; +0x21, 0x14003d8b1\nmov     [rsp+48h+var_18], r14                                          ; +0x26, 0x14003d8b6\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0x2b, 0x14003d8bb\nmov     rcx, [rsi+1D8h]                                                ; +0x30, 0x14003d8c0\nmov     edx, edi                                                       ; +0x37, 0x14003d8c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x14003d8c9\nxorps   xmm2, xmm2                                                     ; +0x3f, 0x14003d8cf\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x42, 0x14003d8d2\nxorps   xmm1, xmm1                                                     ; +0x47, 0x14003d8d7\nmov     r14, rax                                                       ; +0x4a, 0x14003d8da\nmov     rbx, [rax]                                                     ; +0x4d, 0x14003d8dd\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x50, 0x14003d8e0\nmov     rdx, rax                                                       ; +0x56, 0x14003d8e6\nmov     rcx, r14                                                       ; +0x59, 0x14003d8e9\ncall    qword ptr [rbx+110h]                                           ; +0x5c, 0x14003d8ec\nmov     rbx, [r14]                                                     ; +0x62, 0x14003d8f2\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x65, 0x14003d8f5\nmov     rcx, rax                                                       ; +0x6b, 0x14003d8fb\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x6e, 0x14003d8fe\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x73, 0x14003d903\nmov     rdx, rax                                                       ; +0x79, 0x14003d909\nmov     rcx, r14                                                       ; +0x7c, 0x14003d90c\ncall    qword ptr [rbx+128h]                                           ; +0x7f, 0x14003d90f\nmov     rax, [rsi]                                                     ; +0x85, 0x14003d915\nmov     rcx, rsi                                                       ; +0x88, 0x14003d918\nmovss   xmm6, dword ptr [rsi+248h]                                     ; +0x8b, 0x14003d91b\nmov     rbx, [r14]                                                     ; +0x93, 0x14003d923\ncall    qword ptr [rax+130h]                                           ; +0x96, 0x14003d926\nmovd    xmm0, edi                                                      ; +0x9c, 0x14003d92c\nlea     rcx, [rsp+48h+arg_10]                                          ; +0xa0, 0x14003d930\ncvtdq2ps xmm0, xmm0                                                    ; +0xa5, 0x14003d935\nmovss   xmm1, dword ptr [rax]                                          ; +0xa8, 0x14003d938\nxorps   xmm2, xmm2                                                     ; +0xac, 0x14003d93c\nsubss   xmm1, xmm6                                                     ; +0xaf, 0x14003d93f\nmulss   xmm1, xmm0                                                     ; +0xb3, 0x14003d943\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb7, 0x14003d947\nmov     rdx, rax                                                       ; +0xbd, 0x14003d94d\nmov     rcx, r14                                                       ; +0xc0, 0x14003d950\ncall    qword ptr [rbx+0B8h]                                           ; +0xc3, 0x14003d953\nmov     rax, [r14]                                                     ; +0xc9, 0x14003d959\nmov     rcx, r14                                                       ; +0xcc, 0x14003d95c\ncall    qword ptr [rax+1E8h]                                           ; +0xcf, 0x14003d95f\ntest    rax, rax                                                       ; +0xd5, 0x14003d965\njnz     short loc_14003D97D                                            ; +0xd8, 0x14003d968\nmov     rcx, [rsi+1F0h]                                                ; +0xda, 0x14003d96a\nmov     rdx, r14                                                       ; +0xe1, 0x14003d971\nmov     rax, [rcx]                                                     ; +0xe4, 0x14003d974\ncall    qword ptr [rax+1C0h]                                           ; +0xe7, 0x14003d977\nmov     rcx, [rsi+1D8h]                                                ; +0xed, 0x14003d97d\ninc     edi                                                            ; +0xf4, 0x14003d984\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf6, 0x14003d986\ncmp     edi, eax                                                       ; +0xfc, 0x14003d98c\njb      loc_14003D8C0                                                  ; +0xfe, 0x14003d98e\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x104, 0x14003d994\nmov     r14, [rsp+48h+var_18]                                          ; +0x109, 0x14003d999\nmov     rbx, [rsp+48h+arg_18]                                          ; +0x10e, 0x14003d99e\nadd     rsp, 38h                                                       ; +0x113, 0x14003d9a3\npop     rdi                                                            ; +0x117, 0x14003d9a7\npop     rsi                                                            ; +0x118, 0x14003d9a8\nretn                                                                   ; +0x119, 0x14003d9a9", "xrefs": ["BoomScrollLayer::init @ 0x14003d4f6", "<???> @ 0x140661c2c", "<???> @ 0x140661c3c", "<???> @ 0x1406c3f90"], "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"}