{"type": "func", "start": 5369257312, "end": 5369257471, "name": "ChallengesPage::updateDots", "pseudocode": "// \n// ChallengesPage::updateDots from 0x140085d60 to 0x140085dff (159 bytes)\n// \n// 3 xrefs:\n// > ChallengesPage::challengeStatusFinished @ 0x140085f7d\n// > ChallengesPage::claimItem @ 0x140086cdb\n// > <???> @ 0x1406c6c0c\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\n// Hidden C++ exception states: #wind=1\nvoid ChallengesPage::updateDots(ChallengesPage *a1)\n{\n  int i; // edi\n  GameStatsManager *v3; // rcx\n  bool v4; // bl\n  struct cocos2d::CCObject *v5; // rax\n  void *v6; // [rsp+38h] [rbp+10h]\n\n  for ( i = 1; i <= 3; ++i )\n  {\n    v3 = (GameStatsManager *)qword_1406C2EE8;\n    if ( !qword_1406C2EE8 )\n    {\n      v6 = operator new(0x3E0u);\n      qword_1406C2EE8 = sub_1401D0AE0(v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n      v3 = (GameStatsManager *)qword_1406C2EE8;\n    }\n    v4 = GameStatsManager::getQueuedChallenge(v3, i) != nullptr;\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_dots, i - 1);\n    ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v5->__vftable[4].update)(v5, v4);\n  }\n}", "assembly": "; \n; ChallengesPage::updateDots from 0x140085d60 to 0x140085dff (159 bytes)\n; \n; 3 xrefs:\n; > ChallengesPage::challengeStatusFinished @ 0x140085f7d\n; > ChallengesPage::claimItem @ 0x140086cdb\n; > <???> @ 0x1406c6c0c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140085d60\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140085d65\npush    rdi                                                            ; +0xa, 0x140085d6a\nsub     rsp, 20h                                                       ; +0xb, 0x140085d6b\nmov     rsi, rcx                                                       ; +0xf, 0x140085d6f\nmov     edi, 1                                                         ; +0x12, 0x140085d72\nnop     word ptr [rax+rax+00000000h]                                   ; +0x17, 0x140085d77\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x20, 0x140085d80\ntest    rcx, rcx                                                       ; +0x27, 0x140085d87\njnz     short loc_140085DBB                                            ; +0x2a, 0x140085d8a\nmov     ecx, 3E0h; Size                                                ; +0x2c, 0x140085d8c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x140085d91\nmov     [rsp+28h+arg_8], rax                                           ; +0x36, 0x140085d96\nmov     rcx, rax                                                       ; +0x3b, 0x140085d9b\ncall    sub_1401D0AE0                                                  ; +0x3e, 0x140085d9e\nnop                                                                    ; +0x43, 0x140085da3\nmov     cs:qword_1406C2EE8, rax                                        ; +0x44, 0x140085da4\nmov     rdx, [rax]                                                     ; +0x4b, 0x140085dab\nmov     rcx, rax                                                       ; +0x4e, 0x140085dae\ncall    qword ptr [rdx+48h]                                            ; +0x51, 0x140085db1\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x54, 0x140085db4\nmov     edx, edi                                                       ; +0x5b, 0x140085dbb\ncall    GameStatsManager__getQueuedChallenge                           ; +0x5d, 0x140085dbd\ntest    rax, rax                                                       ; +0x62, 0x140085dc2\nsetnz   bl                                                             ; +0x65, 0x140085dc5\nlea     edx, [rdi-1]                                                   ; +0x68, 0x140085dc8\nmov     rcx, [rsi+290h]                                                ; +0x6b, 0x140085dcb\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x72, 0x140085dd2\nmov     r8, [rax]                                                      ; +0x78, 0x140085dd8\nmovzx   edx, bl                                                        ; +0x7b, 0x140085ddb\nmov     rcx, rax                                                       ; +0x7e, 0x140085dde\ncall    qword ptr [r8+140h]                                            ; +0x81, 0x140085de1\ninc     edi                                                            ; +0x88, 0x140085de8\ncmp     edi, 3                                                         ; +0x8a, 0x140085dea\njle     short loc_140085D80                                            ; +0x8d, 0x140085ded\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8f, 0x140085def\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x94, 0x140085df4\nadd     rsp, 20h                                                       ; +0x99, 0x140085df9\npop     rdi                                                            ; +0x9d, 0x140085dfd\nretn                                                                   ; +0x9e, 0x140085dfe", "xrefs": ["ChallengesPage::challengeStatusFinished @ 0x140085f7d", "ChallengesPage::claimItem @ 0x140086cdb", "<???> @ 0x1406c6c0c"], "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"}