{"type": "func", "start": 5368976016, "end": 5368976523, "name": "BoomScrollLayer::updateDots", "pseudocode": "// \n// BoomScrollLayer::updateDots from 0x140041290 to 0x14004148b (507 bytes)\n// \n// 12 xrefs:\n// > BoomScrollLayer::init @ 0x140040cef\n// > BoomScrollLayer::moveToPageEnded @ 0x14004163d\n// > ListButtonBar::init @ 0x140078061\n// > EditButtonBar::loadFromItems @ 0x140177517\n// > GauntletSelectLayer::setupGauntlets @ 0x1402ff31b\n// > LevelSelectLayer::init @ 0x140441ed4\n// > SecretRewardsLayer::init @ 0x14056a370\n// > SecretRewardsLayer::createSecondaryLayer @ 0x14056b0d3\n// > BoomScrollLayer::init @ 0x140040e92\n// > <???> @ 0x140884cdc\n// > <???> @ 0x140884d1c\n// > <???> @ 0x14090f4c4\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\nvoid __fastcall BoomScrollLayer::updateDots(__int64 a1)\n{\n  cocos2d::CCArray *v2; // rcx\n  int v3; // r15d\n  float v4; // xmm9_4\n  const struct cocos2d::CCPoint *v5; // rax\n  int v6; // ebp\n  cocos2d::CCArray *v7; // rcx\n  signed int v8; // ecx\n  signed int i; // edi\n  float v10; // xmm6_4\n  struct cocos2d::CCObject *v11; // r14\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  void (__fastcall **v14)(char *, _BYTE *); // rax\n  _BYTE *v15; // rdx\n  _BYTE v16[3]; // [rsp+90h] [rbp+8h] BYREF\n  char v17; // [rsp+A0h] [rbp+18h] BYREF\n\n  if ( *(_QWORD *)(a1 + 416) )\n  {\n    if ( *(_BYTE *)(a1 + 456) )\n      v2 = *(cocos2d::CCArray **)(a1 + 448);\n    else\n      v2 = *(cocos2d::CCArray **)(a1 + 480);\n    v3 = cocos2d::CCArray::count(v2);\n    v4 = *(float *)(a1 + 576);\n    v5 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 504) + 200LL))(*(_QWORD *)(a1 + 504));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v5);\n    v6 = BoomScrollLayer::pageNumberForPosition(a1);\n    if ( *(_BYTE *)(a1 + 436) )\n    {\n      if ( *(_BYTE *)(a1 + 456) )\n        v7 = *(cocos2d::CCArray **)(a1 + 448);\n      else\n        v7 = *(cocos2d::CCArray **)(a1 + 480);\n      v8 = cocos2d::CCArray::count(v7);\n      if ( v6 <= 0 )\n      {\n        for ( ; v6 < 0; v6 += v8 )\n          ;\n      }\n      else\n      {\n        v6 %= v8;\n      }\n    }\n    for ( i = 0; i < v3; ++i )\n    {\n      v10 = (float)((float)((float)i - (float)((float)((float)v3 - 1.0) * 0.5)) * 16.0) + *(float *)(a1 + 572);\n      if ( i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 416)) )\n      {\n        v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 416), i);\n        v12 = *(_QWORD *)v11;\n        v13 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v10, v4);\n        (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v12 + 184))(v11, v13);\n        v14 = *((void (__fastcall ***)(char *, _BYTE *))v11 + 40);\n        if ( i == v6 )\n        {\n          v15 = &unk_1406FE7A4;\n        }\n        else\n        {\n          memset(v16, 125, sizeof(v16));\n          v15 = v16;\n        }\n        (*v14)((char *)v11 + 320, v15);\n        (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v11 + 336LL))(\n          v11,\n          *(unsigned __int8 *)(a1 + 569));\n      }\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::updateDots from 0x140041290 to 0x14004148b (507 bytes)\n; \n; 12 xrefs:\n; > BoomScrollLayer::init @ 0x140040cef\n; > BoomScrollLayer::moveToPageEnded @ 0x14004163d\n; > ListButtonBar::init @ 0x140078061\n; > EditButtonBar::loadFromItems @ 0x140177517\n; > GauntletSelectLayer::setupGauntlets @ 0x1402ff31b\n; > LevelSelectLayer::init @ 0x140441ed4\n; > SecretRewardsLayer::init @ 0x14056a370\n; > SecretRewardsLayer::createSecondaryLayer @ 0x14056b0d3\n; > BoomScrollLayer::init @ 0x140040e92\n; > <???> @ 0x140884cdc\n; > <???> @ 0x140884d1c\n; > <???> @ 0x14090f4c4\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, 0x140041290\nsub     rsp, 80h                                                       ; +0x2, 0x140041292\ncmp     qword ptr [rcx+1A0h], 0                                        ; +0x9, 0x140041299\nmov     rsi, rcx                                                       ; +0x11, 0x1400412a1\njz      loc_140041482                                                  ; +0x14, 0x1400412a4\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x1a, 0x1400412aa\nmov     [rsp+88h+var_10], rbp                                          ; +0x21, 0x1400412b1\nmov     [rsp+88h+var_18], rdi                                          ; +0x26, 0x1400412b6\nmov     [rsp+88h+var_28], r15                                          ; +0x2b, 0x1400412bb\nmovaps  [rsp+88h+var_48], xmm7                                         ; +0x30, 0x1400412c0\nmovaps  [rsp+88h+var_68], xmm9                                         ; +0x35, 0x1400412c5\njz      short loc_1400412D6                                            ; +0x3b, 0x1400412cb\nmov     rcx, [rcx+1C0h]                                                ; +0x3d, 0x1400412cd\njmp     short loc_1400412DD                                            ; +0x44, 0x1400412d4\nmov     rcx, [rcx+1E0h]                                                ; +0x46, 0x1400412d6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4d, 0x1400412dd\nmov     rcx, [rsi+1F8h]                                                ; +0x53, 0x1400412e3\nmov     r15d, eax                                                      ; +0x5a, 0x1400412ea\nmovss   xmm9, dword ptr [rsi+240h]                                     ; +0x5d, 0x1400412ed\nmovd    xmm7, eax                                                      ; +0x66, 0x1400412f6\nmov     rax, [rcx]                                                     ; +0x6a, 0x1400412fa\ncvtdq2ps xmm7, xmm7                                                    ; +0x6d, 0x1400412fd\ncall    qword ptr [rax+0C8h]                                           ; +0x70, 0x140041300\nmov     rdx, rax                                                       ; +0x76, 0x140041306\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x79, 0x140041309\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x81, 0x140041311\nmov     rcx, rsi                                                       ; +0x87, 0x140041317\ncall    BoomScrollLayer__pageNumberForPosition                         ; +0x8a, 0x14004131a\ncmp     byte ptr [rsi+1B4h], 0                                         ; +0x8f, 0x14004131f\nmov     ebp, eax                                                       ; +0x96, 0x140041326\njz      short loc_140041364                                            ; +0x98, 0x140041328\ncmp     byte ptr [rsi+1C8h], 0                                         ; +0x9a, 0x14004132a\njz      short loc_14004133C                                            ; +0xa1, 0x140041331\nmov     rcx, [rsi+1C0h]                                                ; +0xa3, 0x140041333\njmp     short loc_140041343                                            ; +0xaa, 0x14004133a\nmov     rcx, [rsi+1E0h]                                                ; +0xac, 0x14004133c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb3, 0x140041343\nmov     ecx, eax                                                       ; +0xb9, 0x140041349\ntest    ebp, ebp                                                       ; +0xbb, 0x14004134b\njle     short loc_140041358                                            ; +0xbd, 0x14004134d\nmov     eax, ebp                                                       ; +0xbf, 0x14004134f\ncdq                                                                    ; +0xc1, 0x140041351\nidiv    ecx                                                            ; +0xc2, 0x140041352\nmov     ebp, edx                                                       ; +0xc4, 0x140041354\njmp     short loc_140041364                                            ; +0xc6, 0x140041356\njns     short loc_140041364                                            ; +0xc8, 0x140041358\nnop     word ptr [rax+rax+00h]                                         ; +0xca, 0x14004135a\nadd     ebp, ecx                                                       ; +0xd0, 0x140041360\njs      short loc_140041360                                            ; +0xd2, 0x140041362\nxor     edi, edi                                                       ; +0xd4, 0x140041364\ntest    r15d, r15d                                                     ; +0xd6, 0x140041366\njle     loc_140041468                                                  ; +0xd9, 0x140041369\nsubss   xmm7, cs:flt_140835080                                         ; +0xdf, 0x14004136f\nmovaps  [rsp+88h+var_38], xmm6                                         ; +0xe7, 0x140041377\nmovaps  [rsp+88h+var_58], xmm8                                         ; +0xec, 0x14004137c\nmovss   xmm8, cs:dword_140835580                                       ; +0xf2, 0x140041382\nmov     [rsp+88h+arg_8], rbx                                           ; +0xfb, 0x14004138b\nmulss   xmm7, cs:dword_140834F20                                       ; +0x103, 0x140041393\nmov     [rsp+88h+var_20], r14                                          ; +0x10b, 0x14004139b\nmov     rcx, [rsi+1A0h]                                                ; +0x110, 0x1400413a0\nmovd    xmm6, edi                                                      ; +0x117, 0x1400413a7\ncvtdq2ps xmm6, xmm6                                                    ; +0x11b, 0x1400413ab\nsubss   xmm6, xmm7                                                     ; +0x11e, 0x1400413ae\nmulss   xmm6, xmm8                                                     ; +0x122, 0x1400413b2\naddss   xmm6, dword ptr [rsi+23Ch]                                     ; +0x127, 0x1400413b7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x12f, 0x1400413bf\ncmp     edi, eax                                                       ; +0x135, 0x1400413c5\njnb     short loc_140041445                                            ; +0x137, 0x1400413c7\nmov     rcx, [rsi+1A0h]                                                ; +0x139, 0x1400413c9\nmov     edx, edi                                                       ; +0x140, 0x1400413d0\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x142, 0x1400413d2\nmovaps  xmm2, xmm9                                                     ; +0x148, 0x1400413d8\nlea     rcx, [rsp+88h+arg_10]                                          ; +0x14c, 0x1400413dc\nmovaps  xmm1, xmm6                                                     ; +0x154, 0x1400413e4\nmov     r14, rax                                                       ; +0x157, 0x1400413e7\nmov     rbx, [rax]                                                     ; +0x15a, 0x1400413ea\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x15d, 0x1400413ed\nmov     rdx, rax                                                       ; +0x163, 0x1400413f3\nmov     rcx, r14                                                       ; +0x166, 0x1400413f6\ncall    qword ptr [rbx+0B8h]                                           ; +0x169, 0x1400413f9\nlea     rcx, [r14+140h]                                                ; +0x16f, 0x1400413ff\nmov     rax, [rcx]                                                     ; +0x176, 0x140041406\ncmp     edi, ebp                                                       ; +0x179, 0x140041409\njnz     short loc_140041416                                            ; +0x17b, 0x14004140b\nlea     rdx, unk_1406FE7A4                                             ; +0x17d, 0x14004140d\njmp     short loc_140041430                                            ; +0x184, 0x140041414\nmov     [rsp+88h+arg_0], 7D7Dh                                         ; +0x186, 0x140041416\nlea     rdx, [rsp+88h+arg_0]                                           ; +0x190, 0x140041420\nmov     [rsp+88h+arg_2], 7Dh ; '}'                                     ; +0x198, 0x140041428\ncall    qword ptr [rax]                                                ; +0x1a0, 0x140041430\nmov     rax, [r14]                                                     ; +0x1a2, 0x140041432\nmov     rcx, r14                                                       ; +0x1a5, 0x140041435\nmovzx   edx, byte ptr [rsi+239h]                                       ; +0x1a8, 0x140041438\ncall    qword ptr [rax+150h]                                           ; +0x1af, 0x14004143f\ninc     edi                                                            ; +0x1b5, 0x140041445\ncmp     edi, r15d                                                      ; +0x1b7, 0x140041447\njl      loc_1400413A0                                                  ; +0x1ba, 0x14004144a\nmovaps  xmm8, [rsp+88h+var_58]                                         ; +0x1c0, 0x140041450\nmovaps  xmm6, [rsp+88h+var_38]                                         ; +0x1c6, 0x140041456\nmov     r14, [rsp+88h+var_20]                                          ; +0x1cb, 0x14004145b\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x1d0, 0x140041460\nmovaps  xmm7, [rsp+88h+var_48]                                         ; +0x1d8, 0x140041468\nmov     r15, [rsp+88h+var_28]                                          ; +0x1dd, 0x14004146d\nmov     rdi, [rsp+88h+var_18]                                          ; +0x1e2, 0x140041472\nmov     rbp, [rsp+88h+var_10]                                          ; +0x1e7, 0x140041477\nmovaps  xmm9, [rsp+88h+var_68]                                         ; +0x1ec, 0x14004147c\nadd     rsp, 80h                                                       ; +0x1f2, 0x140041482\npop     rsi                                                            ; +0x1f9, 0x140041489\nretn                                                                   ; +0x1fa, 0x14004148a", "xrefs": ["BoomScrollLayer::init @ 0x140040cef", "BoomScrollLayer::moveToPageEnded @ 0x14004163d", "ListButtonBar::init @ 0x140078061", "EditButtonBar::loadFromItems @ 0x140177517", "GauntletSelectLayer::setupGauntlets @ 0x1402ff31b", "LevelSelectLayer::init @ 0x140441ed4", "SecretRewardsLayer::init @ 0x14056a370", "SecretRewardsLayer::createSecondaryLayer @ 0x14056b0d3", "BoomScrollLayer::init @ 0x140040e92", "<???> @ 0x140884cdc", "<???> @ 0x140884d1c", "<???> @ 0x14090f4c4"], "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"}