{"type": "func", "start": 5368975728, "end": 5368976010, "name": "BoomScrollLayer::updatePages", "pseudocode": "// \n// BoomScrollLayer::updatePages from 0x140041170 to 0x14004128a (282 bytes)\n// \n// 4 xrefs:\n// > BoomScrollLayer::init @ 0x140040ddd\n// > <???> @ 0x140884ca0\n// > <???> @ 0x140884cb0\n// > <???> @ 0x14090f4a0\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 11:25:29 +0000\n// \n\nunsigned int __fastcall BoomScrollLayer::updatePages(__int64 a1)\n{\n  unsigned int v2; // edi\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v4; // r14\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  __int64 WinSize; // rax\n  float v10; // xmm6_4\n  float *v11; // rax\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  char v14; // [rsp+50h] [rbp+8h] BYREF\n  char v15; // [rsp+58h] [rbp+10h] BYREF\n  char v16; // [rsp+60h] [rbp+18h] BYREF\n\n  v2 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 480));\n  if ( result )\n  {\n    do\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), v2);\n      v5 = *(_QWORD *)v4;\n      v6 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, 0.0, 0.0);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v5 + 288))(v4, v6);\n      v7 = *(_QWORD *)v4;\n      v8 = cocos2d::CCDirector::sharedDirector();\n      WinSize = cocos2d::CCDirector::getWinSize(v8, &v15);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v7 + 312))(v4, WinSize);\n      v10 = *(float *)(a1 + 592);\n      v11 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);\n      v12 = *(_QWORD *)v4;\n      v13 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, (float)(*v11 - v10) * (float)(int)v2, 0.0);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v12 + 184))(v4, v13);\n      if ( !(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 504LL))(v4) )\n        (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 504) + 464LL))(\n          *(_QWORD *)(a1 + 504),\n          v4);\n      ++v2;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 480));\n    }\n    while ( v2 < result );\n  }\n  return result;\n}", "assembly": "; \n; BoomScrollLayer::updatePages from 0x140041170 to 0x14004128a (282 bytes)\n; \n; 4 xrefs:\n; > BoomScrollLayer::init @ 0x140040ddd\n; > <???> @ 0x140884ca0\n; > <???> @ 0x140884cb0\n; > <???> @ 0x14090f4a0\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 11:25:29 +0000\n; \npush    rsi                                                            ; +0x0, 0x140041170\npush    rdi                                                            ; +0x2, 0x140041172\nsub     rsp, 38h                                                       ; +0x3, 0x140041173\nmov     rsi, rcx                                                       ; +0x7, 0x140041177\nxor     edi, edi                                                       ; +0xa, 0x14004117a\nmov     rcx, [rcx+1E0h]                                                ; +0xc, 0x14004117c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x13, 0x140041183\ntest    eax, eax                                                       ; +0x19, 0x140041189\njz      loc_140041283                                                  ; +0x1b, 0x14004118b\nmov     [rsp+48h+arg_18], rbx                                          ; +0x21, 0x140041191\nmov     [rsp+48h+var_18], r14                                          ; +0x26, 0x140041196\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0x2b, 0x14004119b\nmov     rcx, [rsi+1E0h]                                                ; +0x30, 0x1400411a0\nmov     edx, edi                                                       ; +0x37, 0x1400411a7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x1400411a9\nxorps   xmm2, xmm2                                                     ; +0x3f, 0x1400411af\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x42, 0x1400411b2\nxorps   xmm1, xmm1                                                     ; +0x47, 0x1400411b7\nmov     r14, rax                                                       ; +0x4a, 0x1400411ba\nmov     rbx, [rax]                                                     ; +0x4d, 0x1400411bd\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x50, 0x1400411c0\nmov     rdx, rax                                                       ; +0x56, 0x1400411c6\nmov     rcx, r14                                                       ; +0x59, 0x1400411c9\ncall    qword ptr [rbx+120h]                                           ; +0x5c, 0x1400411cc\nmov     rbx, [r14]                                                     ; +0x62, 0x1400411d2\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x65, 0x1400411d5\nmov     rcx, rax                                                       ; +0x6b, 0x1400411db\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x6e, 0x1400411de\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x73, 0x1400411e3\nmov     rdx, rax                                                       ; +0x79, 0x1400411e9\nmov     rcx, r14                                                       ; +0x7c, 0x1400411ec\ncall    qword ptr [rbx+138h]                                           ; +0x7f, 0x1400411ef\nmov     rax, [rsi]                                                     ; +0x85, 0x1400411f5\nmov     rcx, rsi                                                       ; +0x88, 0x1400411f8\nmovss   xmm6, dword ptr [rsi+250h]                                     ; +0x8b, 0x1400411fb\ncall    qword ptr [rax+140h]                                           ; +0x93, 0x140041203\nmov     rbx, [r14]                                                     ; +0x99, 0x140041209\nlea     rcx, [rsp+48h+arg_10]                                          ; +0x9c, 0x14004120c\nmovd    xmm0, edi                                                      ; +0xa1, 0x140041211\nxorps   xmm2, xmm2                                                     ; +0xa5, 0x140041215\ncvtdq2ps xmm0, xmm0                                                    ; +0xa8, 0x140041218\nmovss   xmm1, dword ptr [rax]                                          ; +0xab, 0x14004121b\nsubss   xmm1, xmm6                                                     ; +0xaf, 0x14004121f\nmulss   xmm1, xmm0                                                     ; +0xb3, 0x140041223\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb7, 0x140041227\nmov     rdx, rax                                                       ; +0xbd, 0x14004122d\nmov     rcx, r14                                                       ; +0xc0, 0x140041230\ncall    qword ptr [rbx+0B8h]                                           ; +0xc3, 0x140041233\nmov     rax, [r14]                                                     ; +0xc9, 0x140041239\nmov     rcx, r14                                                       ; +0xcc, 0x14004123c\ncall    qword ptr [rax+1F8h]                                           ; +0xcf, 0x14004123f\ntest    rax, rax                                                       ; +0xd5, 0x140041245\njnz     short loc_14004125D                                            ; +0xd8, 0x140041248\nmov     rcx, [rsi+1F8h]                                                ; +0xda, 0x14004124a\nmov     rdx, r14                                                       ; +0xe1, 0x140041251\nmov     rax, [rcx]                                                     ; +0xe4, 0x140041254\ncall    qword ptr [rax+1D0h]                                           ; +0xe7, 0x140041257\nmov     rcx, [rsi+1E0h]                                                ; +0xed, 0x14004125d\ninc     edi                                                            ; +0xf4, 0x140041264\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf6, 0x140041266\ncmp     edi, eax                                                       ; +0xfc, 0x14004126c\njb      loc_1400411A0                                                  ; +0xfe, 0x14004126e\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x104, 0x140041274\nmov     r14, [rsp+48h+var_18]                                          ; +0x109, 0x140041279\nmov     rbx, [rsp+48h+arg_18]                                          ; +0x10e, 0x14004127e\nadd     rsp, 38h                                                       ; +0x113, 0x140041283\npop     rdi                                                            ; +0x117, 0x140041287\npop     rsi                                                            ; +0x118, 0x140041288\nretn                                                                   ; +0x119, 0x140041289", "xrefs": ["BoomScrollLayer::init @ 0x140040ddd", "<???> @ 0x140884ca0", "<???> @ 0x140884cb0", "<???> @ 0x14090f4a0"], "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"}