{"type": "func", "start": 5369260016, "end": 5369260417, "name": "ChallengesPage::show", "pseudocode": "// \n// ChallengesPage::show from 0x1400867f0 to 0x140086981 (401 bytes)\n// \n// 19 xrefs:\n// > CreatorLayer::onAdventureMap @ 0x14009e39e\n// > CreatorLayer::onChallenge @ 0x14009e57d\n// > GJGarageLayer::onShards @ 0x140278e2b\n// > GJGarageLayer::onPaint @ 0x140278f92\n// > CreatorLayer::onAdventureMap @ 0x14009e38f\n// > CreatorLayer::onChallenge @ 0x14009e564\n// > GJGarageLayer::onShards @ 0x140278e0d\n// > GJGarageLayer::onPaint @ 0x140278f83\n// > <???> @ 0x14053d648\n// > <???> @ 0x14053e330\n// > <???> @ 0x14054fda8\n// > <???> @ 0x140557648\n// > <???> @ 0x14056e370\n// > <???> @ 0x14056e7b8\n// > <???> @ 0x140579f60\n// > <???> @ 0x140588550\n// > <???> @ 0x14060aa28\n// > <???> @ 0x140621888\n// > <???> @ 0x1406c6c78\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// Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show\nvoid __fastcall ChallengesPage::show(__int64 a1, __int64 a2, __int64 a3, float a4)\n{\n  float v5; // xmm6_4\n  const struct cocos2d::CCPoint *v6; // rax\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  struct cocos2d::CCMoveTo *v9; // rax\n  struct cocos2d::CCEaseElasticOut *v10; // rax\n  cocos2d::ccColor3B *v11; // r8\n  __int64 v12; // rcx\n  cocos2d::CCScene *v13; // rbx\n  int v14; // eax\n  struct cocos2d::CCFadeTo *v15; // rax\n  cocos2d::ccColor3B *v16; // r8\n  __int64 v17; // rdx\n  float v18; // [rsp+20h] [rbp-18h]\n  float v19; // [rsp+20h] [rbp-18h]\n  cocos2d::CCPoint v20; // [rsp+40h] [rbp+8h] BYREF\n  cocos2d::CCPoint v21; // [rsp+48h] [rbp+10h] BYREF\n\n  if ( *(_BYTE *)(a1 + 588) )\n  {\n    FLAlertLayer::show((FLAlertLayer *)a1);\n  }\n  else\n  {\n    v5 = (float)(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 408) + 32LL))(a1 + 408);\n    v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 576) + 200LL))(*(_QWORD *)(a1 + 576));\n    cocos2d::CCPoint::CCPoint(&v20, v6);\n    v7 = **(_QWORD **)(a1 + 576);\n    cocos2d::CCPoint::CCPoint(&v21, -160.0, v20.y);\n    (*(void (__fastcall **)(_QWORD, __int64))(v7 + 184))(*(_QWORD *)(a1 + 576), v8);\n    v9 = cocos2d::CCMoveTo::create(0.5, &v20);\n    v10 = cocos2d::CCEaseElasticOut::create(v9, 0.60000002);\n    cocos2d::CCNode::runAction(*(CCLightFlash **)(a1 + 576), (cocos2d::CCPoint)v10, v11, a4, v18);\n    v13 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v12) + 264);\n    if ( *(_QWORD *)(a1 + 560) )\n    {\n      v13 = *(cocos2d::CCScene **)(a1 + 560);\n    }\n    else\n    {\n      if ( cocos2d::CCScene::getHighestChildZ(v13) + 1 >= 105 )\n        v14 = cocos2d::CCScene::getHighestChildZ(v13) + 1;\n      else\n        v14 = 105;\n      *(_DWORD *)(a1 + 584) = v14;\n    }\n    if ( !*(_DWORD *)(a1 + 584) )\n      *(_DWORD *)(a1 + 584) = 105;\n    ((void (__fastcall *)(cocos2d::CCScene *, __int64))v13->addChild_0)(v13, a1);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, 0);\n    v15 = cocos2d::CCFadeTo::create(0.14, (int)v5);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v15, v16, a4, v19);\n    LOBYTE(v17) = 1;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v17);\n  }\n}", "assembly": "; \n; ChallengesPage::show from 0x1400867f0 to 0x140086981 (401 bytes)\n; \n; 19 xrefs:\n; > CreatorLayer::onAdventureMap @ 0x14009e39e\n; > CreatorLayer::onChallenge @ 0x14009e57d\n; > GJGarageLayer::onShards @ 0x140278e2b\n; > GJGarageLayer::onPaint @ 0x140278f92\n; > CreatorLayer::onAdventureMap @ 0x14009e38f\n; > CreatorLayer::onChallenge @ 0x14009e564\n; > GJGarageLayer::onShards @ 0x140278e0d\n; > GJGarageLayer::onPaint @ 0x140278f83\n; > <???> @ 0x14053d648\n; > <???> @ 0x14053e330\n; > <???> @ 0x14054fda8\n; > <???> @ 0x140557648\n; > <???> @ 0x14056e370\n; > <???> @ 0x14056e7b8\n; > <???> @ 0x140579f60\n; > <???> @ 0x140588550\n; > <???> @ 0x14060aa28\n; > <???> @ 0x140621888\n; > <???> @ 0x1406c6c78\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    rdi                                                            ; +0x0, 0x1400867f0\nsub     rsp, 30h                                                       ; +0x2, 0x1400867f2\ncmp     byte ptr [rcx+24Ch], 0                                         ; +0x6, 0x1400867f6\nmov     rdi, rcx                                                       ; +0xd, 0x1400867fd\njz      short loc_14008680D                                            ; +0x10, 0x140086800\ncall    FLAlertLayer__show                                             ; +0x12, 0x140086802\nadd     rsp, 30h                                                       ; +0x17, 0x140086807\npop     rdi                                                            ; +0x1b, 0x14008680b\nretn                                                                   ; +0x1c, 0x14008680c\nmov     rax, [rcx+198h]                                                ; +0x1d, 0x14008680d\nadd     rcx, 198h                                                      ; +0x24, 0x140086814\nmov     [rsp+38h+arg_10], rbx                                          ; +0x2b, 0x14008681b\nmov     [rsp+38h+arg_18], rsi                                          ; +0x30, 0x140086820\nmovaps  xmmword ptr [rsp+38h+var_18], xmm6                             ; +0x35, 0x140086825\ncall    qword ptr [rax+20h]                                            ; +0x3a, 0x14008682a\nmov     rcx, [rdi+240h]                                                ; +0x3d, 0x14008682d\nmovzx   eax, al                                                        ; +0x44, 0x140086834\nmovd    xmm6, eax                                                      ; +0x47, 0x140086837\nmov     rax, [rcx]                                                     ; +0x4b, 0x14008683b\ncvtdq2ps xmm6, xmm6                                                    ; +0x4e, 0x14008683e\ncall    qword ptr [rax+0C8h]                                           ; +0x51, 0x140086841\nmov     rdx, rax                                                       ; +0x57, 0x140086847\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x5a, 0x14008684a\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x5f, 0x14008684f\nmov     rax, [rdi+240h]                                                ; +0x65, 0x140086855\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x6c, 0x14008685c\nmovss   xmm2, [rsp+38h+arg_4]                                          ; +0x71, 0x140086861\nmovss   xmm1, cs:dword_140623A70                                       ; +0x77, 0x140086867\nmov     rbx, [rax]                                                     ; +0x7f, 0x14008686f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x82, 0x140086872\nmov     rcx, [rdi+240h]                                                ; +0x88, 0x140086878\nmov     rdx, rax                                                       ; +0x8f, 0x14008687f\ncall    qword ptr [rbx+0B8h]                                           ; +0x92, 0x140086882\nmovss   xmm0, cs:dword_140622B08                                       ; +0x98, 0x140086888\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xa0, 0x140086890\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0xa5, 0x140086895\nmovss   xmm1, cs:dword_140622B38                                       ; +0xab, 0x14008689b\nmov     rcx, rax                                                       ; +0xb3, 0x1400868a3\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0xb6, 0x1400868a6\nmov     rcx, [rdi+240h]                                                ; +0xbc, 0x1400868ac\nmov     rdx, rax                                                       ; +0xc3, 0x1400868b3\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xc6, 0x1400868b6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xcc, 0x1400868bc\nmov     rbx, [rax+108h]                                                ; +0xd2, 0x1400868c2\nmov     rax, [rdi+230h]                                                ; +0xd9, 0x1400868c9\ntest    rax, rax                                                       ; +0xe0, 0x1400868d0\njz      short loc_1400868DA                                            ; +0xe3, 0x1400868d3\nmov     rbx, rax                                                       ; +0xe5, 0x1400868d5\njmp     short loc_140086902                                            ; +0xe8, 0x1400868d8\nmov     rcx, rbx                                                       ; +0xea, 0x1400868da\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0xed, 0x1400868dd\ninc     eax                                                            ; +0xf3, 0x1400868e3\ncmp     eax, 69h ; 'i'                                                 ; +0xf5, 0x1400868e5\njge     short loc_1400868F1                                            ; +0xf8, 0x1400868e8\nmov     eax, 69h ; 'i'                                                 ; +0xfa, 0x1400868ea\njmp     short loc_1400868FC                                            ; +0xff, 0x1400868ef\nmov     rcx, rbx                                                       ; +0x101, 0x1400868f1\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x104, 0x1400868f4\ninc     eax                                                            ; +0x10a, 0x1400868fa\nmov     [rdi+248h], eax                                                ; +0x10c, 0x1400868fc\nmov     r8d, [rdi+248h]                                                ; +0x112, 0x140086902\ntest    r8d, r8d                                                       ; +0x119, 0x140086909\njnz     short loc_14008691E                                            ; +0x11c, 0x14008690c\nmov     dword ptr [rdi+248h], 69h ; 'i'                                ; +0x11e, 0x14008690e\nmov     r8d, 69h ; 'i'                                                 ; +0x128, 0x140086918\nmov     rax, [rbx]                                                     ; +0x12e, 0x14008691e\nmov     rdx, rdi                                                       ; +0x131, 0x140086921\nmov     rcx, rbx                                                       ; +0x134, 0x140086924\ncall    qword ptr [rax+1B8h]                                           ; +0x137, 0x140086927\nmov     rax, [rdi+198h]                                                ; +0x13d, 0x14008692d\nlea     rcx, [rdi+198h]                                                ; +0x144, 0x140086934\nxor     edx, edx                                                       ; +0x14b, 0x14008693b\ncall    qword ptr [rax+28h]                                            ; +0x14d, 0x14008693d\nmovss   xmm0, cs:dword_140622A38                                       ; +0x150, 0x140086940\ncvttss2si edx, xmm6                                                    ; +0x158, 0x140086948\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x15c, 0x14008694c\nmov     rdx, rax                                                       ; +0x162, 0x140086952\nmov     rcx, rdi                                                       ; +0x165, 0x140086955\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x168, 0x140086958\nmov     rax, [rdi]                                                     ; +0x16e, 0x14008695e\nmov     dl, 1                                                          ; +0x171, 0x140086961\nmov     rcx, rdi                                                       ; +0x173, 0x140086963\ncall    qword ptr [rax+140h]                                           ; +0x176, 0x140086966\nmovaps  xmm6, xmmword ptr [rsp+38h+var_18]                             ; +0x17c, 0x14008696c\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x181, 0x140086971\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x186, 0x140086976\nadd     rsp, 30h                                                       ; +0x18b, 0x14008697b\npop     rdi                                                            ; +0x18f, 0x14008697f\nretn                                                                   ; +0x190, 0x140086980", "xrefs": ["CreatorLayer::onAdventureMap @ 0x14009e39e", "CreatorLayer::onChallenge @ 0x14009e57d", "GJGarageLayer::onShards @ 0x140278e2b", "GJGarageLayer::onPaint @ 0x140278f92", "CreatorLayer::onAdventureMap @ 0x14009e38f", "CreatorLayer::onChallenge @ 0x14009e564", "GJGarageLayer::onShards @ 0x140278e0d", "GJGarageLayer::onPaint @ 0x140278f83", "<???> @ 0x14053d648", "<???> @ 0x14053e330", "<???> @ 0x14054fda8", "<???> @ 0x140557648", "<???> @ 0x14056e370", "<???> @ 0x14056e7b8", "<???> @ 0x140579f60", "<???> @ 0x140588550", "<???> @ 0x14060aa28", "<???> @ 0x140621888", "<???> @ 0x1406c6c78"], "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"}