{"type": "func", "start": 5691104, "end": 5691552, "name": "BoomScrollLayer::updateDots", "pseudocode": "// \n// BoomScrollLayer::updateDots from 0x56d6e0 to 0x56d8a0 (448 bytes)\n// \n// 5 xrefs:\n// > BoomScrollLayer::setPagesIndicatorPosition @ 0x56d8c8\n// > BoomScrollLayer::moveToPageEnded @ 0x56d964\n// > <???> @ 0x97ed8\n// > BoomScrollLayer::init @ 0x56ec24\n// > <???> @ 0x122d320\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::updateDots(BoomScrollLayer *a1, float a2)\n{\n  int TotalPages; // w22\n  float y; // s10\n  const cocos2d::CCPoint *v5; // x0\n  int RelativePageForNum; // w26\n  unsigned int i; // w19\n  float x; // s8\n  __int64 v9; // x21\n  void (__fastcall *v10)(__int64, cocos2d::CCPoint *); // x28\n  __int64 v11; // x2\n  void (__fastcall *v12)(__int64, cocos2d::CCPoint *); // x2\n  cocos2d::CCPoint v13; // [xsp+80h] [xbp+80h] BYREF\n  cocos2d::CCPoint v14; // 0:s0.4,4:s1.4\n\n  if ( a1->m_dots )\n  {\n    TotalPages = BoomScrollLayer::getTotalPages(a1);\n    y = a1->m_dotPosition.y;\n    v5 = a1->m_extendedLayer->getPosition(a1->m_extendedLayer);\n    cocos2d::CCPoint::CCPoint(&v13, v5);\n    RelativePageForNum = BoomScrollLayer::pageNumberForPosition(a1, v14);\n    if ( a1->m_looped )\n      RelativePageForNum = BoomScrollLayer::getRelativePageForNum(a1, RelativePageForNum);\n    if ( TotalPages > 0 )\n    {\n      for ( i = 0; i != TotalPages; ++i )\n      {\n        while ( 1 )\n        {\n          x = a1->m_dotPosition.x;\n          if ( i < (unsigned int)cocos2d::CCArray::count(a1->m_dots) )\n            break;\n          if ( ++i == TotalPages )\n            return;\n        }\n        v9 = cocos2d::CCArray::objectAtIndex(a1->m_dots, i);\n        v10 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v9 + 184LL);\n        cocos2d::CCPoint::CCPoint(\n          &v13,\n          x + (float)((float)((float)(int)i - (float)((float)((float)TotalPages - 1.0) * 0.5)) * 16.0),\n          y);\n        v10(v9, &v13);\n        v11 = *(_QWORD *)v9;\n        if ( i == RelativePageForNum )\n        {\n          (*(void (__fastcall **)(__int64, _UNKNOWN **))(v11 + 944))(v9, &off_E9EF80);\n        }\n        else\n        {\n          v12 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(v11 + 944);\n          memset(&v13, 125, 3);\n          v12(v9, &v13);\n        }\n        (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v9 + 328LL))(v9, a1->m_dotsVisible);\n      }\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::updateDots from 0x56d6e0 to 0x56d8a0 (448 bytes)\n; \n; 5 xrefs:\n; > BoomScrollLayer::setPagesIndicatorPosition @ 0x56d8c8\n; > BoomScrollLayer::moveToPageEnded @ 0x56d964\n; > <???> @ 0x97ed8\n; > BoomScrollLayer::init @ 0x56ec24\n; > <???> @ 0x122d320\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\nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0x56d6e0\nMOV             X29, SP                                                ; +0x4, 0x56d6e4\nSTP             X25, X26, [SP,#0x90+var_50]                            ; +0x8, 0x56d6e8\nSTP             D8, D9, [SP,#0x90+var_30]                              ; +0xc, 0x56d6ec\nADRP            X25, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x56d6f0\nSTP             D10, D11, [SP,#0x90+var_20]                            ; +0x14, 0x56d6f4\nLDR             X1, [X0,#0x198]                                        ; +0x18, 0x56d6f8\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x1c, 0x56d6fc\nLDR             X2, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x56d700\nMOV             X20, X0                                                ; +0x24, 0x56d704\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x28, 0x56d708\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x2c, 0x56d70c\nLDR             X2, [X2]                                               ; +0x30, 0x56d710\nSTP             X27, X28, [SP,#0x90+var_40]                            ; +0x34, 0x56d714\nSTR             X2, [X29,#0x90+var_8]                                  ; +0x38, 0x56d718\nCBZ             X1, loc_56D840                                         ; +0x3c, 0x56d71c\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x40, 0x56d720\nMOV             W22, W0                                                ; +0x44, 0x56d724\nLDR             X1, [X20,#0x1F0]                                       ; +0x48, 0x56d728\nADD             X23, X29, #0x90+var_10                                 ; +0x4c, 0x56d72c\nLDR             S10, [X20,#0x238]                                      ; +0x50, 0x56d730\nMOV             X0, X1                                                 ; +0x54, 0x56d734\nLDR             X1, [X1]                                               ; +0x58, 0x56d738\nSCVTF           S8, W22                                                ; +0x5c, 0x56d73c\nLDR             X1, [X1,#0xC0]                                         ; +0x60, 0x56d740\nBLR             X1                                                     ; +0x64, 0x56d744\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x68, 0x56d748\nMOV             X0, X23; this                                          ; +0x6c, 0x56d74c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x70, 0x56d750\nMOV             X0, X20                                                ; +0x74, 0x56d754\nMOV             X1, X23                                                ; +0x78, 0x56d758\nBL              _ZN15BoomScrollLayer21pageNumberForPositionEN7cocos2d7CCPointE; BoomScrollLayer::pageNumberForPosition(cocos2d::CCPoint) ; +0x7c, 0x56d75c\nMOV             W26, W0                                                ; +0x80, 0x56d760\nLDRB            W0, [X20,#0x1AC]                                       ; +0x84, 0x56d764\nCBNZ            W0, loc_56D878                                         ; +0x88, 0x56d768\nCMP             W22, WZR                                               ; +0x8c, 0x56d76c\nB.LE            loc_56D840                                             ; +0x90, 0x56d770\nFMOV            S1, #1.0                                               ; +0x94, 0x56d774\nADRP            X27, #off_E9EF80@PAGE                                  ; +0x98, 0x56d778\nFMOV            S9, #0.5                                               ; +0x9c, 0x56d77c\nMOV             W19, #0                                                ; +0xa0, 0x56d780\nFSUB            S8, S8, S1                                             ; +0xa4, 0x56d784\nMOV             W24, #0x7D ; '}'                                       ; +0xa8, 0x56d788\nFMOV            S11, #16.0                                             ; +0xac, 0x56d78c\nADD             X27, X27, #off_E9EF80@PAGEOFF                          ; +0xb0, 0x56d790\nFMUL            S9, S8, S9                                             ; +0xb4, 0x56d794\nB               loc_56D7A8                                             ; +0xb8, 0x56d798\nADD             W19, W19, #1                                           ; +0xbc, 0x56d79c\nCMP             W19, W22                                               ; +0xc0, 0x56d7a0\nB.EQ            loc_56D840                                             ; +0xc4, 0x56d7a4\nLDR             S8, [X20,#0x234]                                       ; +0xc8, 0x56d7a8\nLDR             X0, [X20,#0x198]; this                                 ; +0xcc, 0x56d7ac\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xd0, 0x56d7b0\nCMP             W19, W0                                                ; +0xd4, 0x56d7b4\nB.CS            loc_56D79C                                             ; +0xd8, 0x56d7b8\nLDR             X0, [X20,#0x198]; this                                 ; +0xdc, 0x56d7bc\nMOV             W1, W19; unsigned int                                  ; +0xe0, 0x56d7c0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xe4, 0x56d7c4\nMOV             X21, X0                                                ; +0xe8, 0x56d7c8\nSCVTF           S0, W19                                                ; +0xec, 0x56d7cc\nMOV             X0, X23; this                                          ; +0xf0, 0x56d7d0\nFMOV            S1, S10; float                                         ; +0xf4, 0x56d7d4\nLDR             X1, [X21]                                              ; +0xf8, 0x56d7d8\nFSUB            S0, S0, S9                                             ; +0xfc, 0x56d7dc\nLDR             X28, [X1,#0xB8]                                        ; +0x100, 0x56d7e0\nFMADD           S0, S0, S11, S8; float                                 ; +0x104, 0x56d7e4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x108, 0x56d7e8\nMOV             X0, X21                                                ; +0x10c, 0x56d7ec\nMOV             X1, X23                                                ; +0x110, 0x56d7f0\nBLR             X28                                                    ; +0x114, 0x56d7f4\nCMP             W19, W26                                               ; +0x118, 0x56d7f8\nLDR             X2, [X21]                                              ; +0x11c, 0x56d7fc\nMOV             X0, X21                                                ; +0x120, 0x56d800\nB.EQ            loc_56D88C                                             ; +0x124, 0x56d804\nLDR             X2, [X2,#0x3B0]                                        ; +0x128, 0x56d808\nMOV             X1, X23                                                ; +0x12c, 0x56d80c\nSTRB            W24, [X29,#0x90+var_10]                                ; +0x130, 0x56d810\nSTRB            W24, [X29,#0x90+var_F]                                 ; +0x134, 0x56d814\nSTRB            W24, [X29,#0x90+var_E]                                 ; +0x138, 0x56d818\nBLR             X2                                                     ; +0x13c, 0x56d81c\nLDR             X2, [X21]                                              ; +0x140, 0x56d820\nMOV             X0, X21                                                ; +0x144, 0x56d824\nLDRB            W1, [X20,#0x231]                                       ; +0x148, 0x56d828\nADD             W19, W19, #1                                           ; +0x14c, 0x56d82c\nLDR             X2, [X2,#0x148]                                        ; +0x150, 0x56d830\nBLR             X2                                                     ; +0x154, 0x56d834\nCMP             W19, W22                                               ; +0x158, 0x56d838\nB.NE            loc_56D7A8                                             ; +0x15c, 0x56d83c\nLDR             X25, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x160, 0x56d840\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x164, 0x56d844\nLDR             X0, [X25]                                              ; +0x168, 0x56d848\nCMP             X1, X0                                                 ; +0x16c, 0x56d84c\nB.NE            loc_56D89C                                             ; +0x170, 0x56d850\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x174, 0x56d854\nLDP             D8, D9, [SP,#0x90+var_30]                              ; +0x178, 0x56d858\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x17c, 0x56d85c\nLDP             D10, D11, [SP,#0x90+var_20]                            ; +0x180, 0x56d860\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x184, 0x56d864\nLDP             X25, X26, [SP,#0x90+var_50]                            ; +0x188, 0x56d868\nLDP             X27, X28, [SP,#0x90+var_40]                            ; +0x18c, 0x56d86c\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x190, 0x56d870\nRET                                                                    ; +0x194, 0x56d874\nMOV             W1, W26; int                                           ; +0x198, 0x56d878\nMOV             X0, X20; this                                          ; +0x19c, 0x56d87c\nBL              _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x1a0, 0x56d880\nMOV             W26, W0                                                ; +0x1a4, 0x56d884\nB               loc_56D76C                                             ; +0x1a8, 0x56d888\nLDR             X2, [X2,#0x3B0]                                        ; +0x1ac, 0x56d88c\nMOV             X1, X27                                                ; +0x1b0, 0x56d890\nBLR             X2                                                     ; +0x1b4, 0x56d894\nB               loc_56D820                                             ; +0x1b8, 0x56d898\nBL              .__stack_chk_fail                                      ; +0x1bc, 0x56d89c", "xrefs": ["BoomScrollLayer::setPagesIndicatorPosition @ 0x56d8c8", "BoomScrollLayer::moveToPageEnded @ 0x56d964", "<???> @ 0x97ed8", "BoomScrollLayer::init @ 0x56ec24", "<???> @ 0x122d320"], "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"}