{"type": "func", "start": 3937900, "end": 3938180, "name": "BoomScrollLayer::updateDots", "pseudocode": "// \n// BoomScrollLayer::updateDots from 0x3c166c to 0x3c1784 (280 bytes)\n// \n// 2 xrefs:\n// > BoomScrollLayer::setPagesIndicatorPosition @ 0x3c17a0\n// > BoomScrollLayer::moveToPageEnded @ 0x3c1800\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:31 +0000\n// \n\nunsigned int __fastcall BoomScrollLayer::updateDots(unsigned int this, float a2)\n{\n  int v2; // r4\n  int TotalPages; // r0\n  float v4; // r10\n  int v5; // s16\n  const cocos2d::CCPoint *v6; // r0\n  unsigned int v7; // r9\n  signed int i; // r5\n  float v9; // s20\n  int *v10; // r6\n  int v11; // r3\n  void (__fastcall *v12)(int *, _BYTE *); // r2\n  void (__fastcall *v13)(int *, _BYTE *); // [sp+4h] [bp-18h]\n  _BYTE v14[8]; // [sp+Ch] [bp-10h] BYREF\n\n  v2 = this;\n  if ( *(_DWORD *)(this + 320) )\n  {\n    TotalPages = BoomScrollLayer::getTotalPages((cocos2d::CCArray **)this);\n    v4 = *(float *)(v2 + 448);\n    v5 = TotalPages;\n    v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 384) + 96))(*(_DWORD *)(v2 + 384));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v6);\n    this = BoomScrollLayer::pageNumberForPosition(v2);\n    v7 = this;\n    if ( *(_BYTE *)(v2 + 336) )\n    {\n      this = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)v2, this);\n      v7 = this;\n    }\n    for ( i = 0; i < v5; ++i )\n    {\n      v9 = *(float *)(v2 + 444);\n      this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 320));\n      if ( i < this )\n      {\n        v10 = (int *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 320), i);\n        v13 = *(void (__fastcall **)(int *, _BYTE *))(*v10 + 92);\n        cocos2d::CCPoint::CCPoint(\n          (cocos2d::CCPoint *)v14,\n          v9 + (float)((float)((float)i - (float)((float)((float)v5 - 1.0) * 0.5)) * 16.0),\n          v4);\n        v13(v10, v14);\n        v11 = *v10;\n        if ( i == v7 )\n        {\n          (*(void (__fastcall **)(int *, void *))(v11 + 480))(v10, &unk_BEAB9C);\n        }\n        else\n        {\n          v12 = *(void (__fastcall **)(int *, _BYTE *))(v11 + 480);\n          memset(v14, 125, 3);\n          v12(v10, v14);\n        }\n        this = (*(int (__fastcall **)(int *, _DWORD))(*v10 + 172))(v10, *(unsigned __int8 *)(v2 + 441));\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; BoomScrollLayer::updateDots from 0x3c166c to 0x3c1784 (280 bytes)\n; \n; 2 xrefs:\n; > BoomScrollLayer::setPagesIndicatorPosition @ 0x3c17a0\n; > BoomScrollLayer::moveToPageEnded @ 0x3c1800\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:31 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x3c166c\nMOV             R4, R0                                                 ; +0x4, 0x3c1670\nVPUSH           {D8-D10}                                               ; +0x6, 0x3c1672\nLDR             R3, =(__stack_chk_guard_ptr - 0x3C167C)                ; +0xa, 0x3c1676\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3c1678\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x3c167a\nSUB             SP, SP, #0x1C                                          ; +0x10, 0x3c167c\nLDR             R2, [R3]                                               ; +0x12, 0x3c167e\nMOV             R7, R3                                                 ; +0x14, 0x3c1680\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x16, 0x3c1682\nLDR.W           R2, [R0,#0x140]                                        ; +0x18, 0x3c1684\nCMP             R2, #0                                                 ; +0x1c, 0x3c1688\nBEQ             loc_3C176E                                             ; +0x1e, 0x3c168a\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x20, 0x3c168c\nLDR.W           R10, [R4,#0x1C0]                                       ; +0x24, 0x3c1690\nADD.W           R8, SP, #0x1C+var_10                                   ; +0x28, 0x3c1694\nVMOV            S16, R0                                                ; +0x2c, 0x3c1698\nLDR.W           R0, [R4,#0x180]                                        ; +0x30, 0x3c169c\nVCVT.F32.S32    S17, S16                                               ; +0x34, 0x3c16a0\nLDR             R3, [R0]                                               ; +0x38, 0x3c16a4\nLDR             R3, [R3,#0x60]                                         ; +0x3a, 0x3c16a6\nBLX             R3                                                     ; +0x3c, 0x3c16a8\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x3e, 0x3c16aa\nMOV             R0, R8; this                                           ; +0x40, 0x3c16ac\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x42, 0x3c16ae\nMOV             R0, R4                                                 ; +0x46, 0x3c16b2\nMOV             R1, R8                                                 ; +0x48, 0x3c16b4\nBL              _ZN15BoomScrollLayer21pageNumberForPositionEN7cocos2d7CCPointE; BoomScrollLayer::pageNumberForPosition(cocos2d::CCPoint) ; +0x4a, 0x3c16b6\nLDRB.W          R3, [R4,#0x150]                                        ; +0x4e, 0x3c16ba\nMOV             R9, R0                                                 ; +0x52, 0x3c16be\nCBZ             R3, loc_3C16CC                                         ; +0x54, 0x3c16c0\nMOV             R1, R9; int                                            ; +0x56, 0x3c16c2\nMOV             R0, R4; this                                           ; +0x58, 0x3c16c4\nBL              _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x5a, 0x3c16c6\nMOV             R9, R0                                                 ; +0x5e, 0x3c16ca\nVMOV.F32        S18, #1.0                                              ; +0x60, 0x3c16cc\nLDR.W           R11, =(unk_BEAB9C - 0x3C16DA)                          ; +0x64, 0x3c16d0\nMOVS            R5, #0                                                 ; +0x68, 0x3c16d4\nADD             R11, PC; unk_BEAB9C                                    ; +0x6a, 0x3c16d6\nVMOV.F32        S19, #0.5                                              ; +0x6c, 0x3c16d8\nVMOV            R3, S16                                                ; +0x70, 0x3c16dc\nCMP             R5, R3                                                 ; +0x74, 0x3c16e0\nBGE             loc_3C176E                                             ; +0x76, 0x3c16e2\nLDR.W           R0, [R4,#0x140]; this                                  ; +0x78, 0x3c16e4\nVLDR            S20, [R4,#0x1BC]                                       ; +0x7c, 0x3c16e8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x80, 0x3c16ec\nCMP             R5, R0                                                 ; +0x84, 0x3c16f0\nBCS             loc_3C176A                                             ; +0x86, 0x3c16f2\nMOV             R1, R5; unsigned int                                   ; +0x88, 0x3c16f4\nLDR.W           R0, [R4,#0x140]; this                                  ; +0x8a, 0x3c16f6\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x8e, 0x3c16fa\nVSUB.F32        S14, S17, S18                                          ; +0x92, 0x3c16fe\nVMOV            S15, R5                                                ; +0x96, 0x3c1702\nMOV             R2, R10; float                                         ; +0x9a, 0x3c1706\nVCVT.F32.S32    S15, S15                                               ; +0x9c, 0x3c1708\nVMLS.F32        S15, S14, S19                                          ; +0xa0, 0x3c170c\nLDR             R3, [R0]                                               ; +0xa4, 0x3c1710\nMOV             R6, R0                                                 ; +0xa6, 0x3c1712\nMOV             R0, R8; this                                           ; +0xa8, 0x3c1714\nLDR             R3, [R3,#0x5C]                                         ; +0xaa, 0x3c1716\nVMOV.F32        S14, #16.0                                             ; +0xac, 0x3c1718\nSTR             R3, [SP,#0x1C+var_18]                                  ; +0xb0, 0x3c171c\nVMLA.F32        S20, S15, S14                                          ; +0xb2, 0x3c171e\nVMOV            R1, S20; float                                         ; +0xb6, 0x3c1722\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xba, 0x3c1726\nLDR             R3, [SP,#0x1C+var_18]                                  ; +0xbe, 0x3c172a\nMOV             R0, R6                                                 ; +0xc0, 0x3c172c\nMOV             R1, R8                                                 ; +0xc2, 0x3c172e\nBLX             R3                                                     ; +0xc4, 0x3c1730\nCMP             R5, R9                                                 ; +0xc6, 0x3c1732\nLDR             R3, [R6]                                               ; +0xc8, 0x3c1734\nBNE             loc_3C1744                                             ; +0xca, 0x3c1736\nLDR.W           R3, [R3,#0x1E0]                                        ; +0xcc, 0x3c1738\nMOV             R0, R6                                                 ; +0xd0, 0x3c173c\nMOV             R1, R11                                                ; +0xd2, 0x3c173e\nBLX             R3                                                     ; +0xd4, 0x3c1740\nB               loc_3C175C                                             ; +0xd6, 0x3c1742\nLDR.W           R2, [R3,#0x1E0]                                        ; +0xd8, 0x3c1744\nMOV             R0, R6                                                 ; +0xdc, 0x3c1748\nMOVS            R3, #0x7D ; '}'                                        ; +0xde, 0x3c174a\nMOV             R1, R8                                                 ; +0xe0, 0x3c174c\nSTRB.W          R3, [SP,#0x1C+var_10]                                  ; +0xe2, 0x3c174e\nSTRB.W          R3, [SP,#0x1C+var_F]                                   ; +0xe6, 0x3c1752\nSTRB.W          R3, [SP,#0x1C+var_E]                                   ; +0xea, 0x3c1756\nBLX             R2                                                     ; +0xee, 0x3c175a\nLDR             R3, [R6]                                               ; +0xf0, 0x3c175c\nMOV             R0, R6                                                 ; +0xf2, 0x3c175e\nLDRB.W          R1, [R4,#0x1B9]                                        ; +0xf4, 0x3c1760\nLDR.W           R3, [R3,#0xAC]                                         ; +0xf8, 0x3c1764\nBLX             R3                                                     ; +0xfc, 0x3c1768\nADDS            R5, #1                                                 ; +0xfe, 0x3c176a\nB               loc_3C16DC                                             ; +0x100, 0x3c176c\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x102, 0x3c176e\nLDR             R3, [R7]                                               ; +0x104, 0x3c1770\nCMP             R2, R3                                                 ; +0x106, 0x3c1772\nBEQ             loc_3C177A                                             ; +0x108, 0x3c1774\nBLX             __stack_chk_fail                                       ; +0x10a, 0x3c1776\nADD             SP, SP, #0x1C                                          ; +0x10e, 0x3c177a\nVPOP            {D8-D10}                                               ; +0x110, 0x3c177c\nPOP.W           {R4-R11,PC}                                            ; +0x114, 0x3c1780", "xrefs": ["BoomScrollLayer::setPagesIndicatorPosition @ 0x3c17a0", "BoomScrollLayer::moveToPageEnded @ 0x3c1800"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}