{"type": "func", "start": 5369360064, "end": 5369360471, "name": "ChallengesPage::show", "pseudocode": "// \n// ChallengesPage::show from 0x14009eec0 to 0x14009f057 (407 bytes)\n// \n// 19 xrefs:\n// > CreatorLayer::onAdventureMap @ 0x14013829c\n// > GJGarageLayer::onShards @ 0x1403817a9\n// > GJGarageLayer::onPaint @ 0x140381910\n// > CreatorLayer::onAdventureMap @ 0x14013828d\n// > GJGarageLayer::onShards @ 0x14038178b\n// > GJGarageLayer::onPaint @ 0x140381901\n// > <???> @ 0x14071c300\n// > <???> @ 0x14071cde0\n// > <???> @ 0x140745a00\n// > <???> @ 0x140755cc8\n// > <???> @ 0x1407741f0\n// > <???> @ 0x140774a90\n// > <???> @ 0x14077d590\n// > <???> @ 0x14078d888\n// > <???> @ 0x14081bac8\n// > <???> @ 0x140833ad8\n// > <???> @ 0x14088da9c\n// > <???> @ 0x14088dab4\n// > <???> @ 0x140913028\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:26:05 +0000\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\n__int64 __fastcall ChallengesPage::show(__int64 a1)\n{\n  float v3; // xmm6_4\n  const struct cocos2d::CCPoint *v4; // rax\n  __int64 *v5; // rdi\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  struct cocos2d::CCActionInterval *v8; // rax\n  struct cocos2d::CCAction *v9; // rax\n  __int64 v10; // rcx\n  cocos2d::CCScene *v11; // rbx\n  int v12; // eax\n  struct cocos2d::CCAction *v13; // rax\n  __int64 v14; // rdx\n  char v15; // [rsp+50h] [rbp+8h] BYREF\n  float v16; // [rsp+54h] [rbp+Ch]\n  char v17; // [rsp+58h] [rbp+10h] BYREF\n\n  if ( *(_BYTE *)(a1 + 596) )\n    return FLAlertLayer::show(a1);\n  v3 = (float)(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 408) + 32LL))(a1 + 408);\n  v4 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 200LL))(*(_QWORD *)(a1 + 584));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v4);\n  v5 = *(__int64 **)(a1 + 584);\n  v6 = *v5;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, -160.0, v16);\n  (*(void (__fastcall **)(__int64 *, __int64))(v6 + 184))(v5, v7);\n  v8 = cocos2d::CCMoveTo::create(0.5, (const struct cocos2d::CCPoint *)&v15);\n  v9 = cocos2d::CCEaseElasticOut::create(v8, 0.60000002);\n  cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 584), v9);\n  v11 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v10) + 272);\n  if ( *(_QWORD *)(a1 + 568) )\n  {\n    v11 = *(cocos2d::CCScene **)(a1 + 568);\n  }\n  else\n  {\n    if ( cocos2d::CCScene::getHighestChildZ(v11) + 1 >= 105 )\n      v12 = cocos2d::CCScene::getHighestChildZ(v11) + 1;\n    else\n      v12 = 105;\n    *(_DWORD *)(a1 + 592) = v12;\n  }\n  if ( !*(_DWORD *)(a1 + 592) )\n    *(_DWORD *)(a1 + 592) = 105;\n  (*(void (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v11 + 456LL))(v11, a1);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, 0);\n  v13 = cocos2d::CCFadeTo::create(0.14, (int)v3);\n  cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v13);\n  LOBYTE(v14) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 336LL))(a1, v14);\n}", "assembly": "; \n; ChallengesPage::show from 0x14009eec0 to 0x14009f057 (407 bytes)\n; \n; 19 xrefs:\n; > CreatorLayer::onAdventureMap @ 0x14013829c\n; > GJGarageLayer::onShards @ 0x1403817a9\n; > GJGarageLayer::onPaint @ 0x140381910\n; > CreatorLayer::onAdventureMap @ 0x14013828d\n; > GJGarageLayer::onShards @ 0x14038178b\n; > GJGarageLayer::onPaint @ 0x140381901\n; > <???> @ 0x14071c300\n; > <???> @ 0x14071cde0\n; > <???> @ 0x140745a00\n; > <???> @ 0x140755cc8\n; > <???> @ 0x1407741f0\n; > <???> @ 0x140774a90\n; > <???> @ 0x14077d590\n; > <???> @ 0x14078d888\n; > <???> @ 0x14081bac8\n; > <???> @ 0x140833ad8\n; > <???> @ 0x14088da9c\n; > <???> @ 0x14088dab4\n; > <???> @ 0x140913028\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:26:05 +0000\n; \npush    rsi                                                            ; +0x0, 0x14009eec0\nsub     rsp, 40h                                                       ; +0x2, 0x14009eec2\ncmp     byte ptr [rcx+254h], 0                                         ; +0x6, 0x14009eec6\nmov     rsi, rcx                                                       ; +0xd, 0x14009eecd\njz      short loc_14009EEDD                                            ; +0x10, 0x14009eed0\ncall    FLAlertLayer__show                                             ; +0x12, 0x14009eed2\nadd     rsp, 40h                                                       ; +0x17, 0x14009eed7\npop     rsi                                                            ; +0x1b, 0x14009eedb\nretn                                                                   ; +0x1c, 0x14009eedc\nmov     rax, [rcx+198h]                                                ; +0x1d, 0x14009eedd\nadd     rcx, 198h                                                      ; +0x24, 0x14009eee4\nmov     [rsp+48h+arg_10], rbx                                          ; +0x2b, 0x14009eeeb\nmov     [rsp+48h+var_10], rdi                                          ; +0x30, 0x14009eef0\nmov     [rsp+48h+var_18], r14                                          ; +0x35, 0x14009eef5\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0x3a, 0x14009eefa\ncall    qword ptr [rax+20h]                                            ; +0x3f, 0x14009eeff\nmov     rcx, [rsi+248h]                                                ; +0x42, 0x14009ef02\nmovzx   eax, al                                                        ; +0x49, 0x14009ef09\nmovd    xmm6, eax                                                      ; +0x4c, 0x14009ef0c\nmov     rax, [rcx]                                                     ; +0x50, 0x14009ef10\ncvtdq2ps xmm6, xmm6                                                    ; +0x53, 0x14009ef13\ncall    qword ptr [rax+0C8h]                                           ; +0x56, 0x14009ef16\nmov     rdx, rax                                                       ; +0x5c, 0x14009ef1c\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x5f, 0x14009ef1f\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x64, 0x14009ef24\nmov     rdi, [rsi+248h]                                                ; +0x6a, 0x14009ef2a\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x71, 0x14009ef31\nmovss   xmm2, [rsp+48h+arg_4]                                          ; +0x76, 0x14009ef36\nmovss   xmm1, cs:dword_14083603C                                       ; +0x7c, 0x14009ef3c\nmov     rbx, [rdi]                                                     ; +0x84, 0x14009ef44\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x87, 0x14009ef47\nmov     rdx, rax                                                       ; +0x8d, 0x14009ef4d\nmov     rcx, rdi                                                       ; +0x90, 0x14009ef50\ncall    qword ptr [rbx+0B8h]                                           ; +0x93, 0x14009ef53\nmovss   xmm0, cs:dword_140834F20                                       ; +0x99, 0x14009ef59\nlea     rdx, [rsp+48h+arg_0]                                           ; +0xa1, 0x14009ef61\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0xa6, 0x14009ef66\nmovss   xmm1, cs:dword_140834F64                                       ; +0xac, 0x14009ef6c\nmov     rcx, rax                                                       ; +0xb4, 0x14009ef74\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0xb7, 0x14009ef77\nmov     rcx, [rsi+248h]                                                ; +0xbd, 0x14009ef7d\nmov     rdx, rax                                                       ; +0xc4, 0x14009ef84\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xc7, 0x14009ef87\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xcd, 0x14009ef8d\nmov     rdi, [rsp+48h+var_10]                                          ; +0xd3, 0x14009ef93\nmov     rbx, [rax+110h]                                                ; +0xd8, 0x14009ef98\nmov     rax, [rsi+238h]                                                ; +0xdf, 0x14009ef9f\ntest    rax, rax                                                       ; +0xe6, 0x14009efa6\njz      short loc_14009EFB0                                            ; +0xe9, 0x14009efa9\nmov     rbx, rax                                                       ; +0xeb, 0x14009efab\njmp     short loc_14009EFD8                                            ; +0xee, 0x14009efae\nmov     rcx, rbx                                                       ; +0xf0, 0x14009efb0\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0xf3, 0x14009efb3\ninc     eax                                                            ; +0xf9, 0x14009efb9\ncmp     eax, 69h ; 'i'                                                 ; +0xfb, 0x14009efbb\njge     short loc_14009EFC7                                            ; +0xfe, 0x14009efbe\nmov     eax, 69h ; 'i'                                                 ; +0x100, 0x14009efc0\njmp     short loc_14009EFD2                                            ; +0x105, 0x14009efc5\nmov     rcx, rbx                                                       ; +0x107, 0x14009efc7\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x10a, 0x14009efca\ninc     eax                                                            ; +0x110, 0x14009efd0\nmov     [rsi+250h], eax                                                ; +0x112, 0x14009efd2\nmov     r8d, [rsi+250h]                                                ; +0x118, 0x14009efd8\ntest    r8d, r8d                                                       ; +0x11f, 0x14009efdf\njnz     short loc_14009EFF4                                            ; +0x122, 0x14009efe2\nmov     dword ptr [rsi+250h], 69h ; 'i'                                ; +0x124, 0x14009efe4\nmov     r8d, 69h ; 'i'                                                 ; +0x12e, 0x14009efee\nmov     rax, [rbx]                                                     ; +0x134, 0x14009eff4\nmov     rdx, rsi                                                       ; +0x137, 0x14009eff7\nmov     rcx, rbx                                                       ; +0x13a, 0x14009effa\ncall    qword ptr [rax+1C8h]                                           ; +0x13d, 0x14009effd\nmov     rax, [rsi+198h]                                                ; +0x143, 0x14009f003\nlea     rcx, [rsi+198h]                                                ; +0x14a, 0x14009f00a\nxor     edx, edx                                                       ; +0x151, 0x14009f011\ncall    qword ptr [rax+28h]                                            ; +0x153, 0x14009f013\nmovss   xmm0, cs:dword_140834E28                                       ; +0x156, 0x14009f016\ncvttss2si edx, xmm6                                                    ; +0x15e, 0x14009f01e\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x162, 0x14009f022\nmov     rdx, rax                                                       ; +0x168, 0x14009f028\nmov     rcx, rsi                                                       ; +0x16b, 0x14009f02b\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x16e, 0x14009f02e\nmov     rax, [rsi]                                                     ; +0x174, 0x14009f034\nmov     dl, 1                                                          ; +0x177, 0x14009f037\nmov     rcx, rsi                                                       ; +0x179, 0x14009f039\ncall    qword ptr [rax+150h]                                           ; +0x17c, 0x14009f03c\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x182, 0x14009f042\nmov     r14, [rsp+48h+var_18]                                          ; +0x187, 0x14009f047\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x18c, 0x14009f04c\nadd     rsp, 40h                                                       ; +0x191, 0x14009f051\npop     rsi                                                            ; +0x195, 0x14009f055\nretn                                                                   ; +0x196, 0x14009f056", "xrefs": ["CreatorLayer::onAdventureMap @ 0x14013829c", "GJGarageLayer::onShards @ 0x1403817a9", "GJGarageLayer::onPaint @ 0x140381910", "CreatorLayer::onAdventureMap @ 0x14013828d", "GJGarageLayer::onShards @ 0x14038178b", "GJGarageLayer::onPaint @ 0x140381901", "<???> @ 0x14071c300", "<???> @ 0x14071cde0", "<???> @ 0x140745a00", "<???> @ 0x140755cc8", "<???> @ 0x1407741f0", "<???> @ 0x140774a90", "<???> @ 0x14077d590", "<???> @ 0x14078d888", "<???> @ 0x14081bac8", "<???> @ 0x140833ad8", "<???> @ 0x14088da9c", "<???> @ 0x14088dab4", "<???> @ 0x140913028"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}