{"type": "func", "start": 4295435740, "end": 4295436108, "name": "BrowseSmartTemplateLayer::updateDots", "pseudocode": "// \n// BrowseSmartTemplateLayer::updateDots from 0x1000725dc to 0x10007274c (368 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::goToPage @ 0x1000721e0\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 __fastcall BrowseSmartTemplateLayer::updateDots(BrowseSmartTemplateLayer *a1)\n{\n  cocos2d::CCDirector *v2; // x0\n  int v3; // w21\n  __int64 v4; // x20\n  float v5; // s8\n  float v6; // s9\n  __int64 v7; // x22\n  __n128 v8; // q0\n  __n128 v9; // q1\n  _DWORD v10[4]; // [xsp+0h] [xbp-70h] BYREF\n\n  if ( !a1->m_dotsArray )\n    BrowseSmartTemplateLayer::createDots(a1);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v2);\n  v3 = sub_10024A36C(a1->m_pages);\n  if ( (unsigned int)sub_10024A36C(a1->m_pages) )\n  {\n    v4 = 0;\n    v5 = (float)((float)(*(float *)&v10[3] * 0.5) + -140.0) + 15.0;\n    do\n    {\n      v6 = *(float *)&v10[2];\n      if ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_dotsArray) )\n      {\n        v7 = sub_10024A388(a1->m_dotsArray, v4);\n        v8.n128_f32[0] = (float)(v6 * 0.5)\n                       + (float)((float)((float)(unsigned int)v4 + (float)((float)((float)v3 + -1.0) * -0.5)) * 16.0);\n        v9.n128_f32[0] = v5;\n        sub_100022980(v8, v9, v10);\n        (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v7 + 184LL))(v7, v10);\n        if ( (_DWORD)v4 == a1->m_page )\n        {\n          (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v7 + 944LL))(v7, &unk_100636017);\n        }\n        else\n        {\n          memset(v10, 125, 3);\n          (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v7 + 944LL))(v7, v10);\n        }\n      }\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_pages) );\n  }\n}", "assembly": "; \n; BrowseSmartTemplateLayer::updateDots from 0x1000725dc to 0x10007274c (368 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::goToPage @ 0x1000721e0\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\nSUB             SP, SP, #0x80                                          ; +0x0, 0x1000725dc\nSTP             D13, D12, [SP,#0x70+var_60]                            ; +0x4, 0x1000725e0\nSTP             D11, D10, [SP,#0x70+var_50]                            ; +0x8, 0x1000725e4\nSTP             D9, D8, [SP,#0x70+var_40]                              ; +0xc, 0x1000725e8\nSTP             X24, X23, [SP,#0x70+var_30]                            ; +0x10, 0x1000725ec\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x14, 0x1000725f0\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x18, 0x1000725f4\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x1c, 0x1000725f8\nADD             X29, SP, #0x70                                         ; +0x20, 0x1000725fc\nMOV             X19, X0                                                ; +0x24, 0x100072600\nLDR             X8, [X0,#0x2A0]                                        ; +0x28, 0x100072604\nCBNZ            X8, loc_100072614                                      ; +0x2c, 0x100072608\nMOV             X0, X19                                                ; +0x30, 0x10007260c\nBL              BrowseSmartTemplateLayer__createDots                   ; +0x34, 0x100072610\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x38, 0x100072614\nADD             X8, SP, #0x70+var_68                                   ; +0x3c, 0x100072618\nBL              cocos2d__CCDirector__getWinSize                        ; +0x40, 0x10007261c\nLDR             X0, [X19,#0x280]                                       ; +0x44, 0x100072620\nBL              sub_10024A36C                                          ; +0x48, 0x100072624\nMOV             X21, X0                                                ; +0x4c, 0x100072628\nLDR             S8, [SP,#0x70+var_64]                                  ; +0x50, 0x10007262c\nLDR             X0, [X19,#0x280]                                       ; +0x54, 0x100072630\nBL              sub_10024A36C                                          ; +0x58, 0x100072634\nCBZ             W0, loc_100072728                                      ; +0x5c, 0x100072638\nMOV             W20, #0                                                ; +0x60, 0x10007263c\nFMOV            S10, #0.5                                              ; +0x64, 0x100072640\nFMUL            S0, S8, S10                                            ; +0x68, 0x100072644\nMOV             W8, #0xC30C0000                                        ; +0x6c, 0x100072648\nFMOV            S1, W8                                                 ; +0x70, 0x10007264c\nFADD            S0, S0, S1                                             ; +0x74, 0x100072650\nFMOV            S1, #15.0                                              ; +0x78, 0x100072654\nFADD            S8, S0, S1                                             ; +0x7c, 0x100072658\nSCVTF           S0, W21                                                ; +0x80, 0x10007265c\nFMOV            S1, #-1.0                                              ; +0x84, 0x100072660\nFADD            S11, S0, S1                                            ; +0x88, 0x100072664\nFMOV            S12, #-0.5                                             ; +0x8c, 0x100072668\nFMOV            S13, #16.0                                             ; +0x90, 0x10007266c\nADRL            X21, unk_100636017                                     ; +0x94, 0x100072670\nMOV             W23, #0x7D ; '}'                                       ; +0x9c, 0x100072678\nMOV             W24, #0x7D7D                                           ; +0xa0, 0x10007267c\nLDR             S9, [SP,#0x70+var_68]                                  ; +0xa4, 0x100072680\nLDR             X0, [X19,#0x2A0]                                       ; +0xa8, 0x100072684\nBL              sub_10024A36C                                          ; +0xac, 0x100072688\nCMP             W20, W0                                                ; +0xb0, 0x10007268c\nB.CS            loc_100072714                                          ; +0xb4, 0x100072690\nUCVTF           S0, W20                                                ; +0xb8, 0x100072694\nFMADD           S0, S11, S12, S0                                       ; +0xbc, 0x100072698\nFMUL            S1, S9, S10                                            ; +0xc0, 0x10007269c\nFMADD           S9, S0, S13, S1                                        ; +0xc4, 0x1000726a0\nLDR             X0, [X19,#0x2A0]                                       ; +0xc8, 0x1000726a4\nMOV             X1, X20                                                ; +0xcc, 0x1000726a8\nBL              sub_10024A388                                          ; +0xd0, 0x1000726ac\nMOV             X22, X0                                                ; +0xd4, 0x1000726b0\nMOV             X0, SP                                                 ; +0xd8, 0x1000726b4\nFMOV            S0, S9                                                 ; +0xdc, 0x1000726b8\nFMOV            S1, S8                                                 ; +0xe0, 0x1000726bc\nBL              sub_100022980                                          ; +0xe4, 0x1000726c0\nLDR             X8, [X22]                                              ; +0xe8, 0x1000726c4\nLDR             X8, [X8,#0xB8]                                         ; +0xec, 0x1000726c8\nMOV             X1, SP                                                 ; +0xf0, 0x1000726cc\nMOV             X0, X22                                                ; +0xf4, 0x1000726d0\nBLR             X8                                                     ; +0xf8, 0x1000726d4\nLDR             W8, [X19,#0x288]                                       ; +0xfc, 0x1000726d8\nCMP             W20, W8                                                ; +0x100, 0x1000726dc\nB.NE            loc_1000726F8                                          ; +0x104, 0x1000726e0\nLDR             X8, [X22]                                              ; +0x108, 0x1000726e4\nLDR             X8, [X8,#0x3B0]                                        ; +0x10c, 0x1000726e8\nMOV             X0, X22                                                ; +0x110, 0x1000726ec\nMOV             X1, X21                                                ; +0x114, 0x1000726f0\nB               loc_100072710                                          ; +0x118, 0x1000726f4\nSTRB            W23, [SP,#0x70+var_6E]                                 ; +0x11c, 0x1000726f8\nSTRH            W24, [SP,#0x70+var_70]                                 ; +0x120, 0x1000726fc\nLDR             X8, [X22]                                              ; +0x124, 0x100072700\nLDR             X8, [X8,#0x3B0]                                        ; +0x128, 0x100072704\nMOV             X1, SP                                                 ; +0x12c, 0x100072708\nMOV             X0, X22                                                ; +0x130, 0x10007270c\nBLR             X8                                                     ; +0x134, 0x100072710\nADD             W20, W20, #1                                           ; +0x138, 0x100072714\nLDR             X0, [X19,#0x280]                                       ; +0x13c, 0x100072718\nBL              sub_10024A36C                                          ; +0x140, 0x10007271c\nCMP             W20, W0                                                ; +0x144, 0x100072720\nB.CC            loc_100072680                                          ; +0x148, 0x100072724\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x14c, 0x100072728\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x150, 0x10007272c\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x154, 0x100072730\nLDP             X24, X23, [SP,#0x70+var_30]                            ; +0x158, 0x100072734\nLDP             D9, D8, [SP,#0x70+var_40]                              ; +0x15c, 0x100072738\nLDP             D11, D10, [SP,#0x70+var_50]                            ; +0x160, 0x10007273c\nLDP             D13, D12, [SP,#0x70+var_60]                            ; +0x164, 0x100072740\nADD             SP, SP, #0x80                                          ; +0x168, 0x100072744\nRET                                                                    ; +0x16c, 0x100072748", "xrefs": ["BrowseSmartTemplateLayer::goToPage @ 0x1000721e0"], "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"}