{"type": "func", "start": 5369357344, "end": 5369357711, "name": "CreatorLayer::onChallenge", "pseudocode": "// \n// CreatorLayer::onChallenge from 0x14009e420 to 0x14009e58f (367 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::init @ 0x14009c664\n// > <???> @ 0x1406c7620\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 CreatorLayer::onChallenge(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  float v2; // xmm3_4\n  __int64 v3; // rax\n  ChallengesPage *v4; // rbx\n  __int64 v5; // r8\n  void (__fastcall *show)(__int64, __int64, __int64, float); // rdx\n\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 552LL))(v3);\n  v4 = (ChallengesPage *)operator new(0x2C0u);\n  FLAlertLayer::FLAlertLayer(v4);\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ChallengesPage_vtbl *)&ChallengesPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&ChallengesPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&ChallengesPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&ChallengesPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&ChallengesPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&ChallengesPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&ChallengesPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&ChallengesPage::`vftable';\n  v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&ChallengesPage::`vftable';\n  v4->GJChallengeDelegate::__vftable = (GJChallengeDelegate_vtbl *)&ChallengesPage::`vftable';\n  v4->CurrencyRewardDelegate::__vftable = (CurrencyRewardDelegate_vtbl *)&ChallengesPage::`vftable';\n  v4->m_dots = nullptr;\n  v4->m_countdownLabel = nullptr;\n  v4->m_circle = nullptr;\n  *(_WORD *)&v4->m_triedToLoad = 0;\n  v4->m_currencyRewardLayer = nullptr;\n  v4->m_challengeNodes = nullptr;\n  if ( ChallengesPage::init(v4) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(ChallengesPage *, __int64))v4->~ChallengesPage)(v4, 1);\n    v4 = nullptr;\n  }\n  show = (void (__fastcall *)(__int64, __int64, __int64, float))v4->show;\n  if ( show == ChallengesPage::show )\n    ChallengesPage::show((__int64)v4, (__int64)show, v5, v2);\n  else\n    ((void (__fastcall *)(ChallengesPage *))show)(v4);\n}", "assembly": "; \n; CreatorLayer::onChallenge from 0x14009e420 to 0x14009e58f (367 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::init @ 0x14009c664\n; > <???> @ 0x1406c7620\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, 0x14009e420\npush    rdi                                                            ; +0x5, 0x14009e425\nsub     rsp, 20h                                                       ; +0x6, 0x14009e426\nmov     rax, [rdx]                                                     ; +0xa, 0x14009e42a\nmov     rcx, rdx                                                       ; +0xd, 0x14009e42d\ncall    qword ptr [rax+3A8h]                                           ; +0x10, 0x14009e430\nmov     rdx, [rax]                                                     ; +0x16, 0x14009e436\nmov     rcx, rax                                                       ; +0x19, 0x14009e439\ncall    qword ptr [rdx+228h]                                           ; +0x1c, 0x14009e43c\nmov     ecx, 2C0h; Size                                                ; +0x22, 0x14009e442\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x14009e447\nmov     rbx, rax                                                       ; +0x2c, 0x14009e44c\nmov     [rsp+28h+arg_8], rax                                           ; +0x2f, 0x14009e44f\nmov     rcx, rax                                                       ; +0x34, 0x14009e454\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x37, 0x14009e457\nlea     rax, ??_7ChallengesPage@@6B@; const ChallengesPage::`vftable'  ; +0x3c, 0x14009e45c\nmov     [rbx], rax                                                     ; +0x43, 0x14009e463\nlea     rax, ??_7ChallengesPage@@6B@_0; const ChallengesPage::`vftable' ; +0x46, 0x14009e466\nmov     [rbx+140h], rax                                                ; +0x4d, 0x14009e46d\nlea     rax, ??_7ChallengesPage@@6B@_1; const ChallengesPage::`vftable' ; +0x54, 0x14009e474\nmov     [rbx+148h], rax                                                ; +0x5b, 0x14009e47b\nlea     rax, ??_7ChallengesPage@@6B@_2; const ChallengesPage::`vftable' ; +0x62, 0x14009e482\nmov     [rbx+150h], rax                                                ; +0x69, 0x14009e489\nlea     rax, ??_7ChallengesPage@@6B@_3; const ChallengesPage::`vftable' ; +0x70, 0x14009e490\nmov     [rbx+158h], rax                                                ; +0x77, 0x14009e497\nlea     rax, ??_7ChallengesPage@@6B@_4; const ChallengesPage::`vftable' ; +0x7e, 0x14009e49e\nmov     [rbx+160h], rax                                                ; +0x85, 0x14009e4a5\nlea     rax, ??_7ChallengesPage@@6B@_5; const ChallengesPage::`vftable' ; +0x8c, 0x14009e4ac\nmov     [rbx+198h], rax                                                ; +0x93, 0x14009e4b3\nlea     rax, ??_7ChallengesPage@@6B@_6; const ChallengesPage::`vftable' ; +0x9a, 0x14009e4ba\nmov     [rbx+1B0h], rax                                                ; +0xa1, 0x14009e4c1\nlea     rax, ??_7ChallengesPage@@6B@_7; const ChallengesPage::`vftable' ; +0xa8, 0x14009e4c8\nmov     [rbx+278h], rax                                                ; +0xaf, 0x14009e4cf\nlea     rax, ??_7ChallengesPage@@6B@_8; const ChallengesPage::`vftable' ; +0xb6, 0x14009e4d6\nmov     [rbx+280h], rax                                                ; +0xbd, 0x14009e4dd\nlea     rax, ??_7ChallengesPage@@6B@_9; const ChallengesPage::`vftable' ; +0xc4, 0x14009e4e4\nmov     [rbx+288h], rax                                                ; +0xcb, 0x14009e4eb\nxor     edi, edi                                                       ; +0xd2, 0x14009e4f2\nmov     [rbx+290h], rdi                                                ; +0xd4, 0x14009e4f4\nmov     [rbx+298h], rdi                                                ; +0xdb, 0x14009e4fb\nmov     [rbx+2A0h], rdi                                                ; +0xe2, 0x14009e502\nmov     [rbx+2A8h], di                                                 ; +0xe9, 0x14009e509\nmov     [rbx+2B0h], rdi                                                ; +0xf0, 0x14009e510\nmov     [rbx+2B8h], rdi                                                ; +0xf7, 0x14009e517\nmov     rax, cs:off_14053D280                                          ; +0xfe, 0x14009e51e\nlea     rcx, ChallengesPage__init                                      ; +0x105, 0x14009e525\ncmp     rax, rcx                                                       ; +0x10c, 0x14009e52c\nmov     rcx, rbx                                                       ; +0x10f, 0x14009e52f\njnz     short loc_14009E53B                                            ; +0x112, 0x14009e532\ncall    ChallengesPage__init                                           ; +0x114, 0x14009e534\njmp     short loc_14009E53D                                            ; +0x119, 0x14009e539\ncall    rax ; ChallengesPage__init                                     ; +0x11b, 0x14009e53b\nmov     rcx, rbx                                                       ; +0x11d, 0x14009e53d\ntest    al, al                                                         ; +0x120, 0x14009e540\njz      short loc_14009E54C                                            ; +0x122, 0x14009e542\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x124, 0x14009e544\njmp     short loc_14009E55A                                            ; +0x12a, 0x14009e54a\nmov     rax, [rbx]                                                     ; +0x12c, 0x14009e54c\nmov     edx, 1                                                         ; +0x12f, 0x14009e54f\ncall    qword ptr [rax+8]                                              ; +0x134, 0x14009e554\nmov     rbx, rdi                                                       ; +0x137, 0x14009e557\nmov     rax, [rbx]                                                     ; +0x13a, 0x14009e55a\nmov     rdx, [rax+410h]                                                ; +0x13d, 0x14009e55d\nlea     rax, ChallengesPage__show; Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show ; +0x144, 0x14009e564\nmov     rcx, rbx                                                       ; +0x14b, 0x14009e56b\ncmp     rdx, rax                                                       ; +0x14e, 0x14009e56e\njnz     short loc_14009E582                                            ; +0x151, 0x14009e571\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x153, 0x14009e573\nadd     rsp, 20h                                                       ; +0x158, 0x14009e578\npop     rdi                                                            ; +0x15c, 0x14009e57c\njmp     ChallengesPage__show; Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show ; +0x15d, 0x14009e57d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x162, 0x14009e582\nadd     rsp, 20h                                                       ; +0x167, 0x14009e587\npop     rdi                                                            ; +0x16b, 0x14009e58b\njmp     rdx                                                            ; +0x16c, 0x14009e58c", "xrefs": ["CreatorLayer::init @ 0x14009c664", "<???> @ 0x1406c7620"], "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"}