{"type": "func", "start": 5369357312, "end": 5369357477, "name": "ChallengesPage::updateDots", "pseudocode": "// \n// ChallengesPage::updateDots from 0x14009e400 to 0x14009e4a5 (165 bytes)\n// \n// 3 xrefs:\n// > ChallengesPage::challengeStatusFinished @ 0x14009e630\n// > ChallengesPage::claimItem @ 0x14009f3ce\n// > <???> @ 0x140912fbc\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:26:05 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall ChallengesPage::updateDots(__int64 a1)\n{\n  int i; // edi\n  __int64 v3; // rcx\n  bool v4; // bl\n  struct cocos2d::CCObject *v5; // rax\n  __int64 result; // rax\n  void *v7; // [rsp+38h] [rbp+10h]\n\n  for ( i = 1; i <= 3; ++i )\n  {\n    v3 = qword_14090BFE0;\n    if ( !qword_14090BFE0 )\n    {\n      v7 = operator new(0x3E8u);\n      qword_14090BFE0 = sub_1402D6480(v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n      v3 = qword_14090BFE0;\n    }\n    v4 = GameStatsManager::getQueuedChallenge(v3, (unsigned int)i) != 0;\n    v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), i - 1);\n    result = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, bool))(*(_QWORD *)v5 + 336LL))(v5, v4);\n  }\n  return result;\n}", "assembly": "; \n; ChallengesPage::updateDots from 0x14009e400 to 0x14009e4a5 (165 bytes)\n; \n; 3 xrefs:\n; > ChallengesPage::challengeStatusFinished @ 0x14009e630\n; > ChallengesPage::claimItem @ 0x14009f3ce\n; > <???> @ 0x140912fbc\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:26:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14009e400\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14009e405\npush    rdi                                                            ; +0xa, 0x14009e40a\nsub     rsp, 20h                                                       ; +0xb, 0x14009e40b\nmov     rsi, rcx                                                       ; +0xf, 0x14009e40f\nmov     edi, 1                                                         ; +0x12, 0x14009e412\nnop     word ptr [rax+rax+00000000h]                                   ; +0x17, 0x14009e417\nmov     rcx, cs:qword_14090BFE0                                        ; +0x20, 0x14009e420\ntest    rcx, rcx                                                       ; +0x27, 0x14009e427\njnz     short loc_14009E45E                                            ; +0x2a, 0x14009e42a\nmov     ecx, 3E8h; Size                                                ; +0x2c, 0x14009e42c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x14009e431\nmov     [rsp+28h+arg_8], rax                                           ; +0x36, 0x14009e436\nmov     rcx, rax                                                       ; +0x3b, 0x14009e43b\ncall    sub_1402D6480                                                  ; +0x3e, 0x14009e43e\nnop                                                                    ; +0x43, 0x14009e443\nmov     cs:qword_14090BFE0, rax                                        ; +0x44, 0x14009e444\nmov     rcx, [rax]                                                     ; +0x4b, 0x14009e44b\nmov     rdx, [rcx+48h]                                                 ; +0x4e, 0x14009e44e\nmov     rcx, rax                                                       ; +0x52, 0x14009e452\ncall    rdx                                                            ; +0x55, 0x14009e455\nmov     rcx, cs:qword_14090BFE0                                        ; +0x57, 0x14009e457\nmov     edx, edi                                                       ; +0x5e, 0x14009e45e\ncall    GameStatsManager__getQueuedChallenge                           ; +0x60, 0x14009e460\ntest    rax, rax                                                       ; +0x65, 0x14009e465\nsetnz   bl                                                             ; +0x68, 0x14009e468\nlea     edx, [rdi-1]                                                   ; +0x6b, 0x14009e46b\nmov     rcx, [rsi+2B0h]                                                ; +0x6e, 0x14009e46e\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x14009e475\nmov     rcx, [rax]                                                     ; +0x7b, 0x14009e47b\nmov     r8, [rcx+150h]                                                 ; +0x7e, 0x14009e47e\nmovzx   edx, bl                                                        ; +0x85, 0x14009e485\nmov     rcx, rax                                                       ; +0x88, 0x14009e488\ncall    r8                                                             ; +0x8b, 0x14009e48b\ninc     edi                                                            ; +0x8e, 0x14009e48e\ncmp     edi, 3                                                         ; +0x90, 0x14009e490\njle     short loc_14009E420                                            ; +0x93, 0x14009e493\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x95, 0x14009e495\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x9a, 0x14009e49a\nadd     rsp, 20h                                                       ; +0x9f, 0x14009e49f\npop     rdi                                                            ; +0xa3, 0x14009e4a3\nretn                                                                   ; +0xa4, 0x14009e4a4", "xrefs": ["ChallengesPage::challengeStatusFinished @ 0x14009e630", "ChallengesPage::claimItem @ 0x14009f3ce", "<???> @ 0x140912fbc"], "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"}