{"type": "func", "start": 4298696432, "end": 4298696712, "name": "BoomScrollLayer::updatePages", "pseudocode": "// \n// BoomScrollLayer::updatePages from 0x10038e6f0 to 0x10038e808 (280 bytes)\n// \n// 5 xrefs:\n// > BoomScrollLayer::init @ 0x10038e479\n// > BoomScrollLayer::addPage_1 @ 0x10039011a\n// > BoomScrollLayer::addPage @ 0x10039018e\n// > BoomScrollLayer::removePage @ 0x1003901e5\n// > BoomScrollLayer::removePageWithNumber @ 0x1003902a3\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 12:29:13 +0000\n// \n\n__int64 __fastcall BoomScrollLayer::updatePages(__int64 a1)\n{\n  __int64 result; // rax\n  unsigned int v2; // r14d\n  __int64 v3; // r12\n  __int64 v4; // rax\n  float *v5; // rax\n  float v6[2]; // [rsp+4h] [rbp-2Ch] BYREF\n  float v7; // [rsp+Ch] [rbp-24h]\n\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 480));\n  if ( (_DWORD)result )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 480), v2);\n      sub_100278250(v6, 0.0, 0.0);\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 296LL))(v3, v6);\n      v4 = cocos2d::CCDirector::sharedDirector(v3, v6);\n      cocos2d::CCDirector::getWinSize(v6, v4);\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 320LL))(v3, v6);\n      v7 = (float)(int)v2;\n      v5 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);\n      sub_100278250(v6, (float)(*v5 - *(float *)(a1 + 592)) * v7, 0.0);\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 184LL))(v3, v6);\n      if ( !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3) )\n        (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 504) + 456LL))(*(_QWORD *)(a1 + 504), v3);\n      ++v2;\n      result = sub_1007FEF90(*(_QWORD *)(a1 + 480));\n    }\n    while ( v2 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; BoomScrollLayer::updatePages from 0x10038e6f0 to 0x10038e808 (280 bytes)\n; \n; 5 xrefs:\n; > BoomScrollLayer::init @ 0x10038e479\n; > BoomScrollLayer::addPage_1 @ 0x10039011a\n; > BoomScrollLayer::addPage @ 0x10039018e\n; > BoomScrollLayer::removePage @ 0x1003901e5\n; > BoomScrollLayer::removePageWithNumber @ 0x1003902a3\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 12:29:13 +0000\n; \npush    rbp                                                            ; +0x0, 0x10038e6f0\nmov     rbp, rsp                                                       ; +0x1, 0x10038e6f1\npush    r15                                                            ; +0x4, 0x10038e6f4\npush    r14                                                            ; +0x6, 0x10038e6f6\npush    r12                                                            ; +0x8, 0x10038e6f8\npush    rbx                                                            ; +0xa, 0x10038e6fa\nsub     rsp, 10h                                                       ; +0xb, 0x10038e6fb\nmov     rbx, rdi                                                       ; +0xf, 0x10038e6ff\nmov     rdi, [rdi+1E0h]                                                ; +0x12, 0x10038e702\ncall    sub_1007FEF90                                                  ; +0x19, 0x10038e709\ntest    eax, eax                                                       ; +0x1e, 0x10038e70e\njz      loc_10038E7FB                                                  ; +0x20, 0x10038e710\nxor     r14d, r14d                                                     ; +0x26, 0x10038e716\nlea     r15, [rbp+var_2C]                                              ; +0x29, 0x10038e719\njmp     short loc_10038E738                                            ; +0x2d, 0x10038e71d\nalign 20h                                                              ; +0x2f, 0x10038e71f\ninc     r14d                                                           ; +0x30, 0x10038e720\nmov     rdi, [rbx+1E0h]                                                ; +0x33, 0x10038e723\ncall    sub_1007FEF90                                                  ; +0x3a, 0x10038e72a\ncmp     r14d, eax                                                      ; +0x3f, 0x10038e72f\njnb     loc_10038E7FB                                                  ; +0x42, 0x10038e732\nmov     rdi, [rbx+1E0h]                                                ; +0x48, 0x10038e738\nmov     esi, r14d                                                      ; +0x4f, 0x10038e73f\ncall    sub_1007FEFE0                                                  ; +0x52, 0x10038e742\nmov     r12, rax                                                       ; +0x57, 0x10038e747\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x10038e74a\nxorps   xmm1, xmm1                                                     ; +0x5d, 0x10038e74d\nmov     rdi, r15                                                       ; +0x60, 0x10038e750\ncall    sub_100278250                                                  ; +0x63, 0x10038e753\nmov     rax, [r12]                                                     ; +0x68, 0x10038e758\nmov     rdi, r12                                                       ; +0x6c, 0x10038e75c\nmov     rsi, r15                                                       ; +0x6f, 0x10038e75f\ncall    qword ptr [rax+128h]                                           ; +0x72, 0x10038e762\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x78, 0x10038e768\nmov     rdi, r15                                                       ; +0x7d, 0x10038e76d\nmov     rsi, rax                                                       ; +0x80, 0x10038e770\ncall    cocos2d__CCDirector__getWinSize                                ; +0x83, 0x10038e773\nmov     rax, [r12]                                                     ; +0x88, 0x10038e778\nmov     rdi, r12                                                       ; +0x8c, 0x10038e77c\nmov     rsi, r15                                                       ; +0x8f, 0x10038e77f\ncall    qword ptr [rax+140h]                                           ; +0x92, 0x10038e782\nxorps   xmm0, xmm0                                                     ; +0x98, 0x10038e788\ncvtsi2ss xmm0, r14d                                                    ; +0x9b, 0x10038e78b\nmovss   [rbp+var_24], xmm0                                             ; +0xa0, 0x10038e790\nmov     rax, [rbx]                                                     ; +0xa5, 0x10038e795\nmov     rdi, rbx                                                       ; +0xa8, 0x10038e798\ncall    qword ptr [rax+148h]                                           ; +0xab, 0x10038e79b\nmovss   xmm0, dword ptr [rax]                                          ; +0xb1, 0x10038e7a1\nsubss   xmm0, dword ptr [rbx+250h]                                     ; +0xb5, 0x10038e7a5\nmulss   xmm0, [rbp+var_24]                                             ; +0xbd, 0x10038e7ad\nxorps   xmm1, xmm1                                                     ; +0xc2, 0x10038e7b2\nmov     rdi, r15                                                       ; +0xc5, 0x10038e7b5\ncall    sub_100278250                                                  ; +0xc8, 0x10038e7b8\nmov     rax, [r12]                                                     ; +0xcd, 0x10038e7bd\nmov     rdi, r12                                                       ; +0xd1, 0x10038e7c1\nmov     rsi, r15                                                       ; +0xd4, 0x10038e7c4\ncall    qword ptr [rax+0B8h]                                           ; +0xd7, 0x10038e7c7\nmov     rax, [r12]                                                     ; +0xdd, 0x10038e7cd\nmov     rdi, r12                                                       ; +0xe1, 0x10038e7d1\ncall    qword ptr [rax+200h]                                           ; +0xe4, 0x10038e7d4\ntest    rax, rax                                                       ; +0xea, 0x10038e7da\njnz     loc_10038E720                                                  ; +0xed, 0x10038e7dd\nmov     rdi, [rbx+1F8h]                                                ; +0xf3, 0x10038e7e3\nmov     rax, [rdi]                                                     ; +0xfa, 0x10038e7ea\nmov     rsi, r12                                                       ; +0xfd, 0x10038e7ed\ncall    qword ptr [rax+1C8h]                                           ; +0x100, 0x10038e7f0\njmp     loc_10038E720                                                  ; +0x106, 0x10038e7f6\nadd     rsp, 10h                                                       ; +0x10b, 0x10038e7fb\npop     rbx                                                            ; +0x10f, 0x10038e7ff\npop     r12                                                            ; +0x110, 0x10038e800\npop     r14                                                            ; +0x112, 0x10038e802\npop     r15                                                            ; +0x114, 0x10038e804\npop     rbp                                                            ; +0x116, 0x10038e806\nretn                                                                   ; +0x117, 0x10038e807", "xrefs": ["BoomScrollLayer::init @ 0x10038e479", "BoomScrollLayer::addPage_1 @ 0x10039011a", "BoomScrollLayer::addPage @ 0x10039018e", "BoomScrollLayer::removePage @ 0x1003901e5", "BoomScrollLayer::removePageWithNumber @ 0x1003902a3"], "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"}