{"type": "func", "start": 5368961456, "end": 5368961963, "name": "BoomScrollLayer::updateDots", "pseudocode": "// \n// BoomScrollLayer::updateDots from 0x14003d9b0 to 0x14003dbab (507 bytes)\n// \n// 12 xrefs:\n// > BoomScrollLayer::init @ 0x14003d40b\n// > BoomScrollLayer::moveToPageEnded @ 0x14003dcfd\n// > ListButtonBar::init @ 0x14006b12e\n// > EditButtonBar::loadFromItems @ 0x1400d4c42\n// > GauntletSelectLayer::setupGauntlets @ 0x1401fa41b\n// > LevelSelectLayer::init @ 0x140318c03\n// > SecretRewardsLayer::init @ 0x1403d493a\n// > SecretRewardsLayer::createSecondaryLayer @ 0x1403d5690\n// > BoomScrollLayer::init @ 0x14003d5b9\n// > <???> @ 0x140661c68\n// > <???> @ 0x140661ca8\n// > <???> @ 0x1406c3fb4\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  cocos2d::CCArray *m_dynamicObjects; // rcx\n  int v4; // r15d\n  float y; // xmm9_4\n  const struct cocos2d::CCPoint *v6; // rax\n  cocos2d::CCPoint v7; // rdx\n  int v8; // ebp\n  cocos2d::CCArray *m_pages; // rcx\n  signed int v10; // ecx\n  signed int i; // esi\n  float v12; // xmm6_4\n  struct cocos2d::CCObject *v13; // r14\n  cocos2d::CCObject_vtbl *v14; // rbx\n  DS_Dictionary *v15; // rax\n  void (__fastcall **v16)(__int64, cocos2d::CCPoint *); // rax\n  cocos2d::CCPoint *v17; // rdx\n  cocos2d::CCPoint v18; // [rsp+90h] [rbp+8h] BYREF\n  cocos2d::CCPoint v19; // [rsp+A0h] [rbp+18h] BYREF\n\n  if ( a1->m_dots )\n  {\n    if ( a1->m_dynamic )\n      m_dynamicObjects = a1->m_dynamicObjects;\n    else\n      m_dynamicObjects = a1->m_pages;\n    v4 = cocos2d::CCArray::count(m_dynamicObjects);\n    y = a1->m_dotPosition.y;\n    v6 = a1->m_extendedLayer->getPosition_0(a1->m_extendedLayer);\n    cocos2d::CCPoint::CCPoint(&v18, v6);\n    v8 = BoomScrollLayer::pageNumberForPosition(a1, v7);\n    if ( a1->m_looped )\n    {\n      if ( a1->m_dynamic )\n        m_pages = a1->m_dynamicObjects;\n      else\n        m_pages = a1->m_pages;\n      v10 = cocos2d::CCArray::count(m_pages);\n      if ( v8 <= 0 )\n      {\n        for ( ; v8 < 0; v8 += v10 )\n          ;\n      }\n      else\n      {\n        v8 %= v10;\n      }\n    }\n    for ( i = 0; i < v4; ++i )\n    {\n      v12 = (float)((float)((float)i - (float)((float)((float)v4 - 1.0) * 0.5)) * 16.0) + a1->m_dotPosition.x;\n      if ( i < cocos2d::CCArray::count(a1->m_dots) )\n      {\n        v13 = cocos2d::CCArray::objectAtIndex(a1->m_dots, i);\n        v14 = v13->__vftable;\n        v15 = (DS_Dictionary *)cocos2d::CCPoint::CCPoint(&v19, v12, y);\n        v14[2].encodeWithCoder(v13, v15);\n        v16 = *(void (__fastcall ***)(__int64, cocos2d::CCPoint *))&v13[5].m_unknown2;\n        if ( i == v8 )\n        {\n          v17 = (cocos2d::CCPoint *)&unk_140529988;\n        }\n        else\n        {\n          memset(&v18, 125, 3);\n          v17 = &v18;\n        }\n        (*v16)((__int64)&v13[5].m_unknown2, v17);\n        ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v13->__vftable[4].update)(v13, a1->m_dotsVisible);\n      }\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::updateDots from 0x14003d9b0 to 0x14003dbab (507 bytes)\n; \n; 12 xrefs:\n; > BoomScrollLayer::init @ 0x14003d40b\n; > BoomScrollLayer::moveToPageEnded @ 0x14003dcfd\n; > ListButtonBar::init @ 0x14006b12e\n; > EditButtonBar::loadFromItems @ 0x1400d4c42\n; > GauntletSelectLayer::setupGauntlets @ 0x1401fa41b\n; > LevelSelectLayer::init @ 0x140318c03\n; > SecretRewardsLayer::init @ 0x1403d493a\n; > SecretRewardsLayer::createSecondaryLayer @ 0x1403d5690\n; > BoomScrollLayer::init @ 0x14003d5b9\n; > <???> @ 0x140661c68\n; > <???> @ 0x140661ca8\n; > <???> @ 0x1406c3fb4\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\npush    rdi                                                            ; +0x0, 0x14003d9b0\nsub     rsp, 80h                                                       ; +0x2, 0x14003d9b2\ncmp     qword ptr [rcx+198h], 0                                        ; +0x9, 0x14003d9b9\nmov     rdi, rcx                                                       ; +0x11, 0x14003d9c1\njz      loc_14003DBA2                                                  ; +0x14, 0x14003d9c4\ncmp     byte ptr [rcx+1C0h], 0                                         ; +0x1a, 0x14003d9ca\nmov     [rsp+88h+var_10], rbp                                          ; +0x21, 0x14003d9d1\nmov     [rsp+88h+var_18], rsi                                          ; +0x26, 0x14003d9d6\nmov     [rsp+88h+var_28], r15                                          ; +0x2b, 0x14003d9db\nmovaps  [rsp+88h+var_48], xmm7                                         ; +0x30, 0x14003d9e0\nmovaps  [rsp+88h+var_68], xmm9                                         ; +0x35, 0x14003d9e5\njz      short loc_14003D9F6                                            ; +0x3b, 0x14003d9eb\nmov     rcx, [rcx+1B8h]                                                ; +0x3d, 0x14003d9ed\njmp     short loc_14003D9FD                                            ; +0x44, 0x14003d9f4\nmov     rcx, [rcx+1D8h]                                                ; +0x46, 0x14003d9f6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4d, 0x14003d9fd\nmov     rcx, [rdi+1F0h]                                                ; +0x53, 0x14003da03\nmov     r15d, eax                                                      ; +0x5a, 0x14003da0a\nmovss   xmm9, dword ptr [rdi+238h]                                     ; +0x5d, 0x14003da0d\nmovd    xmm7, eax                                                      ; +0x66, 0x14003da16\nmov     rax, [rcx]                                                     ; +0x6a, 0x14003da1a\ncvtdq2ps xmm7, xmm7                                                    ; +0x6d, 0x14003da1d\ncall    qword ptr [rax+0C8h]                                           ; +0x70, 0x14003da20\nmov     rdx, rax                                                       ; +0x76, 0x14003da26\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x79, 0x14003da29\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x81, 0x14003da31\nmov     rcx, rdi                                                       ; +0x87, 0x14003da37\ncall    BoomScrollLayer__pageNumberForPosition                         ; +0x8a, 0x14003da3a\ncmp     byte ptr [rdi+1ACh], 0                                         ; +0x8f, 0x14003da3f\nmov     ebp, eax                                                       ; +0x96, 0x14003da46\njz      short loc_14003DA84                                            ; +0x98, 0x14003da48\ncmp     byte ptr [rdi+1C0h], 0                                         ; +0x9a, 0x14003da4a\njz      short loc_14003DA5C                                            ; +0xa1, 0x14003da51\nmov     rcx, [rdi+1B8h]                                                ; +0xa3, 0x14003da53\njmp     short loc_14003DA63                                            ; +0xaa, 0x14003da5a\nmov     rcx, [rdi+1D8h]                                                ; +0xac, 0x14003da5c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb3, 0x14003da63\nmov     ecx, eax                                                       ; +0xb9, 0x14003da69\ntest    ebp, ebp                                                       ; +0xbb, 0x14003da6b\njle     short loc_14003DA78                                            ; +0xbd, 0x14003da6d\nmov     eax, ebp                                                       ; +0xbf, 0x14003da6f\ncdq                                                                    ; +0xc1, 0x14003da71\nidiv    ecx                                                            ; +0xc2, 0x14003da72\nmov     ebp, edx                                                       ; +0xc4, 0x14003da74\njmp     short loc_14003DA84                                            ; +0xc6, 0x14003da76\njns     short loc_14003DA84                                            ; +0xc8, 0x14003da78\nnop     word ptr [rax+rax+00h]                                         ; +0xca, 0x14003da7a\nadd     ebp, ecx                                                       ; +0xd0, 0x14003da80\njs      short loc_14003DA80                                            ; +0xd2, 0x14003da82\nxor     esi, esi                                                       ; +0xd4, 0x14003da84\ntest    r15d, r15d                                                     ; +0xd6, 0x14003da86\njle     loc_14003DB88                                                  ; +0xd9, 0x14003da89\nsubss   xmm7, cs:flt_140622C24                                         ; +0xdf, 0x14003da8f\nmovaps  [rsp+88h+var_38], xmm6                                         ; +0xe7, 0x14003da97\nmovaps  [rsp+88h+var_58], xmm8                                         ; +0xec, 0x14003da9c\nmovss   xmm8, cs:dword_1406230F8                                       ; +0xf2, 0x14003daa2\nmov     [rsp+88h+arg_8], rbx                                           ; +0xfb, 0x14003daab\nmulss   xmm7, cs:dword_140622B08                                       ; +0x103, 0x14003dab3\nmov     [rsp+88h+var_20], r14                                          ; +0x10b, 0x14003dabb\nmov     rcx, [rdi+198h]                                                ; +0x110, 0x14003dac0\nmovd    xmm6, esi                                                      ; +0x117, 0x14003dac7\ncvtdq2ps xmm6, xmm6                                                    ; +0x11b, 0x14003dacb\nsubss   xmm6, xmm7                                                     ; +0x11e, 0x14003dace\nmulss   xmm6, xmm8                                                     ; +0x122, 0x14003dad2\naddss   xmm6, dword ptr [rdi+234h]                                     ; +0x127, 0x14003dad7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x12f, 0x14003dadf\ncmp     esi, eax                                                       ; +0x135, 0x14003dae5\njnb     short loc_14003DB65                                            ; +0x137, 0x14003dae7\nmov     rcx, [rdi+198h]                                                ; +0x139, 0x14003dae9\nmov     edx, esi                                                       ; +0x140, 0x14003daf0\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x142, 0x14003daf2\nmovaps  xmm2, xmm9                                                     ; +0x148, 0x14003daf8\nlea     rcx, [rsp+88h+arg_10]                                          ; +0x14c, 0x14003dafc\nmovaps  xmm1, xmm6                                                     ; +0x154, 0x14003db04\nmov     r14, rax                                                       ; +0x157, 0x14003db07\nmov     rbx, [rax]                                                     ; +0x15a, 0x14003db0a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x15d, 0x14003db0d\nmov     rdx, rax                                                       ; +0x163, 0x14003db13\nmov     rcx, r14                                                       ; +0x166, 0x14003db16\ncall    qword ptr [rbx+0B8h]                                           ; +0x169, 0x14003db19\nlea     rcx, [r14+140h]                                                ; +0x16f, 0x14003db1f\nmov     rax, [rcx]                                                     ; +0x176, 0x14003db26\ncmp     esi, ebp                                                       ; +0x179, 0x14003db29\njnz     short loc_14003DB36                                            ; +0x17b, 0x14003db2b\nlea     rdx, unk_140529988                                             ; +0x17d, 0x14003db2d\njmp     short loc_14003DB50                                            ; +0x184, 0x14003db34\nmov     [rsp+88h+arg_0], 7D7Dh                                         ; +0x186, 0x14003db36\nlea     rdx, [rsp+88h+arg_0]                                           ; +0x190, 0x14003db40\nmov     [rsp+88h+arg_2], 7Dh ; '}'                                     ; +0x198, 0x14003db48\ncall    qword ptr [rax]                                                ; +0x1a0, 0x14003db50\nmov     rax, [r14]                                                     ; +0x1a2, 0x14003db52\nmov     rcx, r14                                                       ; +0x1a5, 0x14003db55\nmovzx   edx, byte ptr [rdi+231h]                                       ; +0x1a8, 0x14003db58\ncall    qword ptr [rax+140h]                                           ; +0x1af, 0x14003db5f\ninc     esi                                                            ; +0x1b5, 0x14003db65\ncmp     esi, r15d                                                      ; +0x1b7, 0x14003db67\njl      loc_14003DAC0                                                  ; +0x1ba, 0x14003db6a\nmovaps  xmm8, [rsp+88h+var_58]                                         ; +0x1c0, 0x14003db70\nmovaps  xmm6, [rsp+88h+var_38]                                         ; +0x1c6, 0x14003db76\nmov     r14, [rsp+88h+var_20]                                          ; +0x1cb, 0x14003db7b\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x1d0, 0x14003db80\nmovaps  xmm7, [rsp+88h+var_48]                                         ; +0x1d8, 0x14003db88\nmov     r15, [rsp+88h+var_28]                                          ; +0x1dd, 0x14003db8d\nmov     rsi, [rsp+88h+var_18]                                          ; +0x1e2, 0x14003db92\nmov     rbp, [rsp+88h+var_10]                                          ; +0x1e7, 0x14003db97\nmovaps  xmm9, [rsp+88h+var_68]                                         ; +0x1ec, 0x14003db9c\nadd     rsp, 80h                                                       ; +0x1f2, 0x14003dba2\npop     rdi                                                            ; +0x1f9, 0x14003dba9\nretn                                                                   ; +0x1fa, 0x14003dbaa", "xrefs": ["BoomScrollLayer::init @ 0x14003d40b", "BoomScrollLayer::moveToPageEnded @ 0x14003dcfd", "ListButtonBar::init @ 0x14006b12e", "EditButtonBar::loadFromItems @ 0x1400d4c42", "GauntletSelectLayer::setupGauntlets @ 0x1401fa41b", "LevelSelectLayer::init @ 0x140318c03", "SecretRewardsLayer::init @ 0x1403d493a", "SecretRewardsLayer::createSecondaryLayer @ 0x1403d5690", "BoomScrollLayer::init @ 0x14003d5b9", "<???> @ 0x140661c68", "<???> @ 0x140661ca8", "<???> @ 0x1406c3fb4"], "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"}