{"type": "func", "start": 4298755520, "end": 4298755787, "name": "ChallengesPage::dChallengesPage", "pseudocode": "// \n// ChallengesPage::dChallengesPage from 0x10039cdc0 to 0x10039cecb (267 bytes)\n// \n// 4 xrefs:\n// > sub_10039CEE0 @ 0x10039cee5\n// > sub_10039CEF0 @ 0x10039cefc\n// > sub_10039CF10 @ 0x10039cf19\n// > sub_10039CF30 @ 0x10039cf43\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__int64 __fastcall ChallengesPage::dChallengesPage(GJChallengeDelegate *a1)\n{\n  GJChallengeDelegate_vtbl *v2; // rax\n  cocos2d::CCObject *v3; // rdi\n  cocos2d::CCObject *v4; // rdi\n\n  a1->__vftable = (GJChallengeDelegate_vtbl *)off_100923B20;\n  a1[40].__vftable = (GJChallengeDelegate_vtbl *)off_100924060;\n  a1[41].__vftable = (GJChallengeDelegate_vtbl *)&off_1009240D0;\n  a1[42].__vftable = (GJChallengeDelegate_vtbl *)off_1009240E8;\n  a1[43].__vftable = (GJChallengeDelegate_vtbl *)off_100924108;\n  a1[44].__vftable = (GJChallengeDelegate_vtbl *)off_100924128;\n  a1[51].__vftable = (GJChallengeDelegate_vtbl *)off_100924150;\n  a1[54].__vftable = (GJChallengeDelegate_vtbl *)off_1009241D0;\n  a1[79].__vftable = (GJChallengeDelegate_vtbl *)&off_1009241F0;\n  a1[80].__vftable = (GJChallengeDelegate_vtbl *)off_100924208;\n  a1[81].__vftable = (GJChallengeDelegate_vtbl *)&off_100924228;\n  if ( GameLevelManager::sharedState()->m_GJChallengeDelegate == &a1[80] )\n    GameLevelManager::sharedState()->m_GJChallengeDelegate = nullptr;\n  v2 = a1[86].__vftable;\n  if ( v2 )\n    v2[25].challengeStatusFailed = nullptr;\n  v3 = (cocos2d::CCObject *)a1[87].__vftable;\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  v4 = (cocos2d::CCObject *)a1[82].__vftable;\n  if ( v4 )\n    cocos2d::CCObject::release(v4);\n  return FLAlertLayer::dFLAlertLayer(a1);\n}", "assembly": "; \n; ChallengesPage::dChallengesPage from 0x10039cdc0 to 0x10039cecb (267 bytes)\n; \n; 4 xrefs:\n; > sub_10039CEE0 @ 0x10039cee5\n; > sub_10039CEF0 @ 0x10039cefc\n; > sub_10039CF10 @ 0x10039cf19\n; > sub_10039CF30 @ 0x10039cf43\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, 0x10039cdc0\nmov     rbp, rsp                                                       ; +0x1, 0x10039cdc1\npush    rbx                                                            ; +0x4, 0x10039cdc4\npush    rax                                                            ; +0x5, 0x10039cdc5\nmov     rbx, rdi                                                       ; +0x6, 0x10039cdc6\nlea     rax, off_100923B20                                             ; +0x9, 0x10039cdc9\nmov     [rdi], rax                                                     ; +0x10, 0x10039cdd0\nlea     rax, off_100924060                                             ; +0x13, 0x10039cdd3\nmov     [rdi+140h], rax                                                ; +0x1a, 0x10039cdda\nlea     rax, off_1009240D0                                             ; +0x21, 0x10039cde1\nmov     [rdi+148h], rax                                                ; +0x28, 0x10039cde8\nlea     rax, off_1009240E8                                             ; +0x2f, 0x10039cdef\nmov     [rdi+150h], rax                                                ; +0x36, 0x10039cdf6\nlea     rax, off_100924108                                             ; +0x3d, 0x10039cdfd\nmov     [rdi+158h], rax                                                ; +0x44, 0x10039ce04\nlea     rax, off_100924128                                             ; +0x4b, 0x10039ce0b\nmov     [rdi+160h], rax                                                ; +0x52, 0x10039ce12\nlea     rax, off_100924150                                             ; +0x59, 0x10039ce19\nmov     [rdi+198h], rax                                                ; +0x60, 0x10039ce20\nlea     rax, off_1009241D0                                             ; +0x67, 0x10039ce27\nmov     [rdi+1B0h], rax                                                ; +0x6e, 0x10039ce2e\nlea     rax, off_1009241F0                                             ; +0x75, 0x10039ce35\nmov     [rdi+278h], rax                                                ; +0x7c, 0x10039ce3c\nlea     rax, off_100924208                                             ; +0x83, 0x10039ce43\nmov     [rdi+280h], rax                                                ; +0x8a, 0x10039ce4a\nlea     rax, off_100924228                                             ; +0x91, 0x10039ce51\nmov     [rdi+288h], rax                                                ; +0x98, 0x10039ce58\ncall    GameLevelManager__sharedState                                  ; +0x9f, 0x10039ce5f\nlea     rcx, [rbx+280h]                                                ; +0xa4, 0x10039ce64\ncmp     [rax+368h], rcx                                                ; +0xab, 0x10039ce6b\njnz     short loc_10039CE84                                            ; +0xb2, 0x10039ce72\ncall    GameLevelManager__sharedState                                  ; +0xb4, 0x10039ce74\nmov     qword ptr [rax+368h], 0                                        ; +0xb9, 0x10039ce79\nmov     rax, [rbx+2B0h]                                                ; +0xc4, 0x10039ce84\ntest    rax, rax                                                       ; +0xcb, 0x10039ce8b\njz      short loc_10039CE9B                                            ; +0xce, 0x10039ce8e\nmov     qword ptr [rax+198h], 0                                        ; +0xd0, 0x10039ce90\nmov     rdi, [rbx+2B8h]                                                ; +0xdb, 0x10039ce9b\ntest    rdi, rdi                                                       ; +0xe2, 0x10039cea2\njz      short loc_10039CEAC                                            ; +0xe5, 0x10039cea5\ncall    cocos2d__CCObject__release                                     ; +0xe7, 0x10039cea7\nmov     rdi, [rbx+290h]                                                ; +0xec, 0x10039ceac\ntest    rdi, rdi                                                       ; +0xf3, 0x10039ceb3\njz      short loc_10039CEBD                                            ; +0xf6, 0x10039ceb6\ncall    cocos2d__CCObject__release                                     ; +0xf8, 0x10039ceb8\nmov     rdi, rbx                                                       ; +0xfd, 0x10039cebd\nadd     rsp, 8                                                         ; +0x100, 0x10039cec0\npop     rbx                                                            ; +0x104, 0x10039cec4\npop     rbp                                                            ; +0x105, 0x10039cec5\njmp     FLAlertLayer__dFLAlertLayer                                    ; +0x106, 0x10039cec6", "xrefs": ["sub_10039CEE0 @ 0x10039cee5", "sub_10039CEF0 @ 0x10039cefc", "sub_10039CF10 @ 0x10039cf19", "sub_10039CF30 @ 0x10039cf43"], "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"}