{"type": "func", "start": 4298761024, "end": 4298761154, "name": "ChallengesPage::challengeStatusFailed", "pseudocode": "// \n// ChallengesPage::challengeStatusFailed from 0x10039e340 to 0x10039e3c2 (130 bytes)\n// \n// 2 xrefs:\n// > sub_10039E410 @ 0x10039e41c\n// > <???> @ 0x100924040\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 ChallengesPage::challengeStatusFailed(ChallengesPage *a1)\n{\n  GameStatsManager *v2; // rax\n  unsigned int v3; // r14d\n  unsigned int v4; // eax\n  int v5; // ecx\n  int v6; // r8d\n  int v7; // r9d\n  cocos2d::CCAction *v8; // rax\n  LoadingCircle *m_circle; // rdi\n\n  v2 = GameStatsManager::sharedState();\n  if ( !GameStatsManager::areChallengesLoaded(v2) )\n  {\n    v3 = (unsigned int)cocos2d::CCDelayTime::create(5.0);\n    v4 = (unsigned int)cocos2d::CCCallFunc::create(\n                         a1,\n                         (cocos2d::SEL_CallFunc)(unsigned __int64)ChallengesPage::tryGetChallenges);\n    v8 = (cocos2d::CCAction *)sub_1003B5760(v3, v4, 0, v5, v6, v7);\n    cocos2d::CCNode::runAction(a1, v8);\n  }\n  m_circle = a1->m_circle;\n  if ( m_circle )\n  {\n    if ( a1->m_triedToLoad )\n      ((void (__fastcall *)(LoadingCircle *, _QWORD))m_circle->setVisible)(m_circle, 0);\n  }\n}", "assembly": "; \n; ChallengesPage::challengeStatusFailed from 0x10039e340 to 0x10039e3c2 (130 bytes)\n; \n; 2 xrefs:\n; > sub_10039E410 @ 0x10039e41c\n; > <???> @ 0x100924040\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    rbp                                                            ; +0x0, 0x10039e340\nmov     rbp, rsp                                                       ; +0x1, 0x10039e341\npush    r14                                                            ; +0x4, 0x10039e344\npush    rbx                                                            ; +0x6, 0x10039e346\nmov     rbx, rdi                                                       ; +0x7, 0x10039e347\ncall    GameStatsManager__sharedState                                  ; +0xa, 0x10039e34a\nmov     rdi, rax                                                       ; +0xf, 0x10039e34f\ncall    GameStatsManager__areChallengesLoaded                          ; +0x12, 0x10039e352\ntest    al, al                                                         ; +0x17, 0x10039e357\njnz     short loc_10039E396                                            ; +0x19, 0x10039e359\nmovss   xmm0, cs:flt_100815088                                         ; +0x1b, 0x10039e35b\ncall    cocos2d__CCDelayTime__create                                   ; +0x23, 0x10039e363\nmov     r14, rax                                                       ; +0x28, 0x10039e368\nlea     rsi, ChallengesPage__tryGetChallenges                          ; +0x2b, 0x10039e36b\nmov     rdi, rbx                                                       ; +0x32, 0x10039e372\nxor     edx, edx                                                       ; +0x35, 0x10039e375\ncall    cocos2d__CCCallFunc__create                                    ; +0x37, 0x10039e377\nmov     rdi, r14                                                       ; +0x3c, 0x10039e37c\nmov     rsi, rax                                                       ; +0x3f, 0x10039e37f\nxor     edx, edx                                                       ; +0x42, 0x10039e382\nxor     eax, eax                                                       ; +0x44, 0x10039e384\ncall    sub_1003B5760                                                  ; +0x46, 0x10039e386\nmov     rdi, rbx                                                       ; +0x4b, 0x10039e38b\nmov     rsi, rax                                                       ; +0x4e, 0x10039e38e\ncall    cocos2d__CCNode__runAction                                     ; +0x51, 0x10039e391\nmov     rdi, [rbx+2A0h]                                                ; +0x56, 0x10039e396\ntest    rdi, rdi                                                       ; +0x5d, 0x10039e39d\njz      short loc_10039E3BD                                            ; +0x60, 0x10039e3a0\ncmp     byte ptr [rbx+2A8h], 1                                         ; +0x62, 0x10039e3a2\njnz     short loc_10039E3BD                                            ; +0x69, 0x10039e3a9\nmov     rax, [rdi]                                                     ; +0x6b, 0x10039e3ab\nmov     rax, [rax+148h]                                                ; +0x6e, 0x10039e3ae\nxor     esi, esi                                                       ; +0x75, 0x10039e3b5\npop     rbx                                                            ; +0x77, 0x10039e3b7\npop     r14                                                            ; +0x78, 0x10039e3b8\npop     rbp                                                            ; +0x7a, 0x10039e3ba\njmp     rax                                                            ; +0x7b, 0x10039e3bb\npop     rbx                                                            ; +0x7d, 0x10039e3bd\npop     r14                                                            ; +0x7e, 0x10039e3be\npop     rbp                                                            ; +0x80, 0x10039e3c0\nretn                                                                   ; +0x81, 0x10039e3c1", "xrefs": ["sub_10039E410 @ 0x10039e41c", "<???> @ 0x100924040"], "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"}