{"type": "func", "start": 5369257872, "end": 5369258076, "name": "ChallengesPage::challengeStatusFailed", "pseudocode": "// \n// ChallengesPage::challengeStatusFailed from 0x140085f90 to 0x14008605c (204 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14053d700\n// > <???> @ 0x1406c6c24\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::challengeStatusFailed(ChallengesPage *a1)\n{\n  float v1; // xmm3_4\n  __int64 v3; // rax\n  __int64 v4; // rbx\n  struct cocos2d::CCDelayTime *v5; // rax\n  struct cocos2d::CCSequence *v6; // rax\n  cocos2d::ccColor3B *v7; // r8\n  __int64 v8; // rcx\n  float v9; // [rsp+20h] [rbp-8h]\n  void *v10; // [rsp+30h] [rbp+8h]\n\n  v3 = qword_1406C2EE8;\n  if ( !qword_1406C2EE8 )\n  {\n    v10 = operator new(0x3E0u);\n    qword_1406C2EE8 = sub_1401D0AE0(v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n    v3 = qword_1406C2EE8;\n  }\n  if ( *(double *)(v3 + 568) <= 0.0 )\n  {\n    v4 = cocos2d::CCCallFunc::create(&a1[-1].m_fScaleX, ChallengesPage::tryGetChallenges);\n    v5 = cocos2d::CCDelayTime::create(5.0);\n    v6 = cocos2d::CCSequence::create(v5, v4, 0);\n    cocos2d::CCNode::runAction((CCLightFlash *)&a1[-1].m_fScaleX, (cocos2d::CCPoint)v6, v7, v1, v9);\n  }\n  v8 = *(_QWORD *)&a1->m_uIndexInArray;\n  if ( v8 )\n  {\n    if ( LOBYTE(a1->m_unknown2) )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 320LL))(v8, 0);\n  }\n}", "assembly": "; \n; ChallengesPage::challengeStatusFailed from 0x140085f90 to 0x14008605c (204 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14053d700\n; > <???> @ 0x1406c6c24\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_8], rbx                                               ; +0x0, 0x140085f90\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140085f95\npush    rdi                                                            ; +0xa, 0x140085f9a\nsub     rsp, 20h                                                       ; +0xb, 0x140085f9b\nmov     rsi, rcx                                                       ; +0xf, 0x140085f9f\nmov     rax, cs:qword_1406C2EE8                                        ; +0x12, 0x140085fa2\ntest    rax, rax                                                       ; +0x19, 0x140085fa9\njnz     short loc_140085FDD                                            ; +0x1c, 0x140085fac\nmov     ecx, 3E0h; Size                                                ; +0x1e, 0x140085fae\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x140085fb3\nmov     [rsp+28h+arg_0], rax                                           ; +0x28, 0x140085fb8\nmov     rcx, rax                                                       ; +0x2d, 0x140085fbd\ncall    sub_1401D0AE0                                                  ; +0x30, 0x140085fc0\nnop                                                                    ; +0x35, 0x140085fc5\nmov     cs:qword_1406C2EE8, rax                                        ; +0x36, 0x140085fc6\nmov     rdx, [rax]                                                     ; +0x3d, 0x140085fcd\nmov     rcx, rax                                                       ; +0x40, 0x140085fd0\ncall    qword ptr [rdx+48h]                                            ; +0x43, 0x140085fd3\nmov     rax, cs:qword_1406C2EE8                                        ; +0x46, 0x140085fd6\nmovsd   xmm1, qword ptr [rax+238h]                                     ; +0x4d, 0x140085fdd\nxorps   xmm0, xmm0                                                     ; +0x55, 0x140085fe5\ncomisd  xmm1, xmm0                                                     ; +0x58, 0x140085fe8\nja      short loc_140086032                                            ; +0x5c, 0x140085fec\nlea     rdx, ChallengesPage__tryGetChallenges                          ; +0x5e, 0x140085fee\nlea     rcx, [rsi-280h]                                                ; +0x65, 0x140085ff5\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x6c, 0x140085ffc\nmov     rbx, rax                                                       ; +0x72, 0x140086002\nmovss   xmm0, cs:flt_140623010                                         ; +0x75, 0x140086005\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x7d, 0x14008600d\nmov     rcx, rax                                                       ; +0x83, 0x140086013\nxor     r8d, r8d                                                       ; +0x86, 0x140086016\nmov     rdx, rbx                                                       ; +0x89, 0x140086019\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x8c, 0x14008601c\nmov     rdx, rax                                                       ; +0x92, 0x140086022\nlea     rcx, [rsi-280h]                                                ; +0x95, 0x140086025\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x9c, 0x14008602c\nmov     rcx, [rsi+20h]                                                 ; +0xa2, 0x140086032\ntest    rcx, rcx                                                       ; +0xa6, 0x140086036\njz      short loc_14008604C                                            ; +0xa9, 0x140086039\ncmp     byte ptr [rsi+28h], 0                                          ; +0xab, 0x14008603b\njz      short loc_14008604C                                            ; +0xaf, 0x14008603f\nmov     rax, [rcx]                                                     ; +0xb1, 0x140086041\nxor     edx, edx                                                       ; +0xb4, 0x140086044\ncall    qword ptr [rax+140h]                                           ; +0xb6, 0x140086046\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbc, 0x14008604c\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc1, 0x140086051\nadd     rsp, 20h                                                       ; +0xc6, 0x140086056\npop     rdi                                                            ; +0xca, 0x14008605a\nretn                                                                   ; +0xcb, 0x14008605b", "xrefs": ["<???> @ 0x14053d700", "<???> @ 0x1406c6c24"], "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"}