{"type": "func", "start": 3022716, "end": 3022996, "name": "BoomScrollLayer::updateDots", "pseudocode": "// \n// BoomScrollLayer::updateDots from 0x2e1f7c to 0x2e2094 (280 bytes)\n// \n// 2 xrefs:\n// > BoomScrollLayer::setPagesIndicatorPosition @ 0x2e20b0\n// > BoomScrollLayer::moveToPageEnded @ 0x2e2110\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; // r0\n  float y; // r10\n  int v5; // s16\n  const cocos2d::CCPoint *v6; // r0\n  cocos2d::CCPoint v7; // r1\n  int v8; // r0\n  int RelativePageForNum; // r9\n  signed int i; // r5\n  float x; // s20\n  int *v12; // r6\n  int v13; // r3\n  void (__fastcall *v14)(int *, cocos2d::CCPoint *); // r2\n  void (__fastcall *v15)(int *, cocos2d::CCPoint *); // [sp+4h] [bp-18h]\n  cocos2d::CCPoint v16; // [sp+Ch] [bp-10h] BYREF\n\n  if ( a1->m_dots )\n  {\n    TotalPages = BoomScrollLayer::getTotalPages(a1);\n    y = a1->m_dotPosition.y;\n    v5 = TotalPages;\n    v6 = a1->m_extendedLayer->getPosition(a1->m_extendedLayer);\n    cocos2d::CCPoint::CCPoint(&v16, v6);\n    LODWORD(v7.x) = &v16;\n    v8 = BoomScrollLayer::pageNumberForPosition(a1, v7);\n    RelativePageForNum = v8;\n    if ( a1->m_looped )\n      RelativePageForNum = BoomScrollLayer::getRelativePageForNum(a1, v8);\n    for ( i = 0; i < v5; ++i )\n    {\n      x = a1->m_dotPosition.x;\n      if ( (unsigned int)i < cocos2d::CCArray::count(a1->m_dots) )\n      {\n        v12 = (int *)cocos2d::CCArray::objectAtIndex(a1->m_dots, i);\n        v15 = *(void (__fastcall **)(int *, cocos2d::CCPoint *))(*v12 + 92);\n        cocos2d::CCPoint::CCPoint(\n          &v16,\n          x + (float)((float)((float)i - (float)((float)((float)v5 - 1.0) * 0.5)) * 16.0),\n          y);\n        v15(v12, &v16);\n        v13 = *v12;\n        if ( i == RelativePageForNum )\n        {\n          (*(void (__fastcall **)(int *, void *))(v13 + 472))(v12, &unk_9A96E0);\n        }\n        else\n        {\n          v14 = *(void (__fastcall **)(int *, cocos2d::CCPoint *))(v13 + 472);\n          memset(&v16, 125, 3);\n          v14(v12, &v16);\n        }\n        (*(void (__fastcall **)(int *, bool))(*v12 + 164))(v12, a1->m_dotsVisible);\n      }\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::updateDots from 0x2e1f7c to 0x2e2094 (280 bytes)\n; \n; 2 xrefs:\n; > BoomScrollLayer::setPagesIndicatorPosition @ 0x2e20b0\n; > BoomScrollLayer::moveToPageEnded @ 0x2e2110\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x2E1F86)                ; +0x0, 0x2e1f7c\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x2e1f7e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x2e1f82\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x2e1f84\nVPUSH           {D8-D10}                                               ; +0xa, 0x2e1f86\nMOV             R4, R0                                                 ; +0xe, 0x2e1f8a\nLDR             R2, [R3]                                               ; +0x10, 0x2e1f8c\nMOV             R7, R3                                                 ; +0x12, 0x2e1f8e\nSUB             SP, SP, #0x1C                                          ; +0x14, 0x2e1f90\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x16, 0x2e1f92\nLDR.W           R2, [R0,#0x13C]                                        ; +0x18, 0x2e1f94\nCMP             R2, #0                                                 ; +0x1c, 0x2e1f98\nBEQ             loc_2E207E                                             ; +0x1e, 0x2e1f9a\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x20, 0x2e1f9c\nLDR.W           R10, [R4,#0x1C0]                                       ; +0x24, 0x2e1fa0\nADD.W           R8, SP, #0x1C+var_10                                   ; +0x28, 0x2e1fa4\nVMOV            S16, R0                                                ; +0x2c, 0x2e1fa8\nLDR.W           R0, [R4,#0x180]                                        ; +0x30, 0x2e1fac\nVCVT.F32.S32    S17, S16                                               ; +0x34, 0x2e1fb0\nLDR             R3, [R0]                                               ; +0x38, 0x2e1fb4\nLDR             R3, [R3,#0x60]                                         ; +0x3a, 0x2e1fb6\nBLX             R3                                                     ; +0x3c, 0x2e1fb8\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x3e, 0x2e1fba\nMOV             R0, R8; this                                           ; +0x40, 0x2e1fbc\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x42, 0x2e1fbe\nMOV             R0, R4                                                 ; +0x46, 0x2e1fc2\nMOV             R1, R8                                                 ; +0x48, 0x2e1fc4\nBL              _ZN15BoomScrollLayer21pageNumberForPositionEN7cocos2d7CCPointE; BoomScrollLayer::pageNumberForPosition(cocos2d::CCPoint) ; +0x4a, 0x2e1fc6\nLDRB.W          R3, [R4,#0x14C]                                        ; +0x4e, 0x2e1fca\nMOV             R9, R0                                                 ; +0x52, 0x2e1fce\nCBZ             R3, loc_2E1FDC                                         ; +0x54, 0x2e1fd0\nMOV             R1, R9; int                                            ; +0x56, 0x2e1fd2\nMOV             R0, R4; this                                           ; +0x58, 0x2e1fd4\nBL              _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x5a, 0x2e1fd6\nMOV             R9, R0                                                 ; +0x5e, 0x2e1fda\nVMOV.F32        S18, #1.0                                              ; +0x60, 0x2e1fdc\nLDR.W           R11, =(unk_9A96E0 - 0x2E1FEA)                          ; +0x64, 0x2e1fe0\nMOVS            R5, #0                                                 ; +0x68, 0x2e1fe4\nADD             R11, PC; unk_9A96E0                                    ; +0x6a, 0x2e1fe6\nVMOV.F32        S19, #0.5                                              ; +0x6c, 0x2e1fe8\nVMOV            R3, S16                                                ; +0x70, 0x2e1fec\nCMP             R5, R3                                                 ; +0x74, 0x2e1ff0\nBGE             loc_2E207E                                             ; +0x76, 0x2e1ff2\nLDR.W           R0, [R4,#0x13C]; this                                  ; +0x78, 0x2e1ff4\nVLDR            S20, [R4,#0x1BC]                                       ; +0x7c, 0x2e1ff8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x80, 0x2e1ffc\nCMP             R5, R0                                                 ; +0x84, 0x2e2000\nBCS             loc_2E207A                                             ; +0x86, 0x2e2002\nMOV             R1, R5; unsigned int                                   ; +0x88, 0x2e2004\nLDR.W           R0, [R4,#0x13C]; this                                  ; +0x8a, 0x2e2006\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x8e, 0x2e200a\nVSUB.F32        S14, S17, S18                                          ; +0x92, 0x2e200e\nVMOV            S15, R5                                                ; +0x96, 0x2e2012\nMOV             R2, R10; float                                         ; +0x9a, 0x2e2016\nVCVT.F32.S32    S15, S15                                               ; +0x9c, 0x2e2018\nVMLS.F32        S15, S14, S19                                          ; +0xa0, 0x2e201c\nLDR             R3, [R0]                                               ; +0xa4, 0x2e2020\nMOV             R6, R0                                                 ; +0xa6, 0x2e2022\nMOV             R0, R8; this                                           ; +0xa8, 0x2e2024\nLDR             R3, [R3,#0x5C]                                         ; +0xaa, 0x2e2026\nVMOV.F32        S14, #16.0                                             ; +0xac, 0x2e2028\nSTR             R3, [SP,#0x1C+var_18]                                  ; +0xb0, 0x2e202c\nVMLA.F32        S20, S15, S14                                          ; +0xb2, 0x2e202e\nVMOV            R1, S20; float                                         ; +0xb6, 0x2e2032\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xba, 0x2e2036\nLDR             R3, [SP,#0x1C+var_18]                                  ; +0xbe, 0x2e203a\nMOV             R0, R6                                                 ; +0xc0, 0x2e203c\nMOV             R1, R8                                                 ; +0xc2, 0x2e203e\nBLX             R3                                                     ; +0xc4, 0x2e2040\nCMP             R5, R9                                                 ; +0xc6, 0x2e2042\nLDR             R3, [R6]                                               ; +0xc8, 0x2e2044\nBNE             loc_2E2054                                             ; +0xca, 0x2e2046\nLDR.W           R3, [R3,#0x1D8]                                        ; +0xcc, 0x2e2048\nMOV             R0, R6                                                 ; +0xd0, 0x2e204c\nMOV             R1, R11                                                ; +0xd2, 0x2e204e\nBLX             R3                                                     ; +0xd4, 0x2e2050\nB               loc_2E206C                                             ; +0xd6, 0x2e2052\nLDR.W           R2, [R3,#0x1D8]                                        ; +0xd8, 0x2e2054\nMOV             R0, R6                                                 ; +0xdc, 0x2e2058\nMOVS            R3, #0x7D ; '}'                                        ; +0xde, 0x2e205a\nMOV             R1, R8                                                 ; +0xe0, 0x2e205c\nSTRB.W          R3, [SP,#0x1C+var_10]                                  ; +0xe2, 0x2e205e\nSTRB.W          R3, [SP,#0x1C+var_F]                                   ; +0xe6, 0x2e2062\nSTRB.W          R3, [SP,#0x1C+var_E]                                   ; +0xea, 0x2e2066\nBLX             R2                                                     ; +0xee, 0x2e206a\nLDR             R3, [R6]                                               ; +0xf0, 0x2e206c\nMOV             R0, R6                                                 ; +0xf2, 0x2e206e\nLDRB.W          R1, [R4,#0x1B9]                                        ; +0xf4, 0x2e2070\nLDR.W           R3, [R3,#0xA4]                                         ; +0xf8, 0x2e2074\nBLX             R3                                                     ; +0xfc, 0x2e2078\nADDS            R5, #1                                                 ; +0xfe, 0x2e207a\nB               loc_2E1FEC                                             ; +0x100, 0x2e207c\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x102, 0x2e207e\nLDR             R3, [R7]                                               ; +0x104, 0x2e2080\nCMP             R2, R3                                                 ; +0x106, 0x2e2082\nBEQ             loc_2E208A                                             ; +0x108, 0x2e2084\nBLX             __stack_chk_fail                                       ; +0x10a, 0x2e2086\nADD             SP, SP, #0x1C                                          ; +0x10e, 0x2e208a\nVPOP            {D8-D10}                                               ; +0x110, 0x2e208c\nPOP.W           {R4-R11,PC}                                            ; +0x114, 0x2e2090", "xrefs": ["BoomScrollLayer::setPagesIndicatorPosition @ 0x2e20b0", "BoomScrollLayer::moveToPageEnded @ 0x2e2110"], "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"}