{"type": "func", "start": 10888148, "end": 10888552, "name": "ChallengesPage::show", "pseudocode": "// \n// ChallengesPage::show from 0xa623d4 to 0xa62568 (404 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x5dfd0\n// > <???> @ 0x148f550\n// \n// This function is hookable on this platform (idp: arm, 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 13:00:15 +0000\n// \n\n__int64 __fastcall ChallengesPage::show(GameToolbox **this)\n{\n  unsigned int v2; // w23\n  const cocos2d::CCPoint *v3; // x0\n  __int64 v4; // x24\n  void (__fastcall *v5)(__int64, _BYTE *); // x22\n  const cocos2d::CCPoint *v6; // x1\n  cocos2d::CCEaseElasticOut *v7; // x0\n  cocos2d::CCActionInterval *v8; // x1\n  cocos2d::CCAction *v9; // x0\n  cocos2d::CCDirector *v10; // x0\n  __int64 v11; // x0\n  cocos2d::CCScene *v12; // x21\n  cocos2d::CCScene *v13; // x1\n  unsigned __int8 v14; // w1\n  cocos2d::CCAction *v15; // x0\n  int HighestChildZ; // w0\n  int v18; // w2\n  _BYTE v19[4]; // [xsp+58h] [xbp+58h] BYREF\n  float v20; // [xsp+5Ch] [xbp+5Ch]\n  _BYTE v21[8]; // [xsp+60h] [xbp+60h] BYREF\n\n  if ( *((_BYTE *)this + 596) )\n  {\n    FLAlertLayer::show(this);\n    return _stack_chk_guard;\n  }\n  v2 = (*((__int64 (__fastcall **)(GameToolbox **))*this + 144))(this);\n  v3 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 73) + 192LL))(*(this + 73));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v3);\n  v4 = (__int64)*(this + 73);\n  v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 184LL);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -160.0, v20);\n  v5(v4, v21);\n  v7 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)v19, 0.5, v6);\n  v9 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v7, v8, 0.6);\n  v10 = (cocos2d::CCDirector *)cocos2d::CCNode::runAction(*(this + 73), v9);\n  v11 = cocos2d::CCDirector::sharedDirector(v10);\n  v12 = *(cocos2d::CCScene **)(v11 + 272);\n  v13 = *(this + 71);\n  if ( !v13 )\n  {\n    HighestChildZ = cocos2d::CCScene::getHighestChildZ(*(cocos2d::CCScene **)(v11 + 272));\n    v18 = 105;\n    if ( HighestChildZ > 104 )\n      v18 = cocos2d::CCScene::getHighestChildZ(v12) + 1;\n    *((_DWORD *)this + 148) = v18;\n    v13 = v12;\n    if ( v18 )\n      goto LABEL_4;\n    goto LABEL_6;\n  }\n  if ( !*((_DWORD *)this + 148) )\nLABEL_6:\n    *((_DWORD *)this + 148) = 105;\nLABEL_4:\n  (*(void (__fastcall **)(cocos2d::CCScene *, GameToolbox **))(*(_QWORD *)v13 + 464LL))(v13, this);\n  (*((void (__fastcall **)(GameToolbox **, _QWORD))*this + 146))(this, 0);\n  v15 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)v2, 0.14, v14);\n  cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v15);\n  (*((void (__fastcall **)(GameToolbox **, __int64))*this + 43))(this, 1);\n  return _stack_chk_guard;\n}", "assembly": "; \n; ChallengesPage::show from 0xa623d4 to 0xa62568 (404 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x5dfd0\n; > <???> @ 0x148f550\n; \n; This function is hookable on this platform (idp: arm, 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 13:00:15 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xa623d4\nMOV             X29, SP                                                ; +0x4, 0xa623d8\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0xa623dc\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa623e0\nMOV             X19, X0                                                ; +0x10, 0xa623e4\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0xa623e8\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x18, 0xa623ec\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xa623f0\nLDRB            W1, [X0,#0x254]                                        ; +0x20, 0xa623f4\nLDR             X2, [X2]                                               ; +0x24, 0xa623f8\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x28, 0xa623fc\nCBNZ            W1, loc_A62528                                         ; +0x2c, 0xa62400\nLDR             X1, [X0]                                               ; +0x30, 0xa62404\nADD             X21, X29, #0x70+var_18                                 ; +0x34, 0xa62408\nADD             X22, X29, #0x70+var_10                                 ; +0x38, 0xa6240c\nLDR             X1, [X1,#0x480]                                        ; +0x3c, 0xa62410\nBLR             X1                                                     ; +0x40, 0xa62414\nMOV             W23, W0                                                ; +0x44, 0xa62418\nLDR             X1, [X19,#0x248]                                       ; +0x48, 0xa6241c\nMOV             X0, X1                                                 ; +0x4c, 0xa62420\nLDR             X1, [X1]                                               ; +0x50, 0xa62424\nLDR             X1, [X1,#0xC0]                                         ; +0x54, 0xa62428\nBLR             X1                                                     ; +0x58, 0xa6242c\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x5c, 0xa62430\nMOV             X0, X21; this                                          ; +0x60, 0xa62434\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x64, 0xa62438\nLDR             X24, [X19,#0x248]                                      ; +0x68, 0xa6243c\nLDR             S1, [X29,#0x70+var_14]; float                          ; +0x6c, 0xa62440\nMOV             X0, X22; this                                          ; +0x70, 0xa62444\nLDR             S0, flt_A62568; float                                  ; +0x74, 0xa62448\nSTR             X22, [X29,#0x70+var_28]                                ; +0x78, 0xa6244c\nLDR             X2, [X24]                                              ; +0x7c, 0xa62450\nLDR             X22, [X2,#0xB8]                                        ; +0x80, 0xa62454\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x84, 0xa62458\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x88, 0xa6245c\nMOV             X0, X24                                                ; +0x8c, 0xa62460\nBLR             X22                                                    ; +0x90, 0xa62464\nFMOV            S0, #0.5; float                                        ; +0x94, 0xa62468\nMOV             X0, X21; this                                          ; +0x98, 0xa6246c\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x9c, 0xa62470\nLDR             S0, flt_A6256C; float                                  ; +0xa0, 0xa62474\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0xa4, 0xa62478\nMOV             X1, X0; cocos2d::CCAction *                            ; +0xa8, 0xa6247c\nLDR             X0, [X19,#0x248]; this                                 ; +0xac, 0xa62480\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xb0, 0xa62484\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xb4, 0xa62488\nLDR             X21, [X0,#0x110]                                       ; +0xb8, 0xa6248c\nLDR             X1, [X19,#0x238]                                       ; +0xbc, 0xa62490\nCBZ             X1, loc_A62530                                         ; +0xc0, 0xa62494\nLDR             W2, [X19,#0x250]                                       ; +0xc4, 0xa62498\nCBZ             W2, loc_A6251C                                         ; +0xc8, 0xa6249c\nLDR             X3, [X1]                                               ; +0xcc, 0xa624a0\nMOV             X0, X1                                                 ; +0xd0, 0xa624a4\nMOV             X1, X19                                                ; +0xd4, 0xa624a8\nLDR             X3, [X3,#0x1D0]                                        ; +0xd8, 0xa624ac\nBLR             X3                                                     ; +0xdc, 0xa624b0\nLDR             X2, [X19]                                              ; +0xe0, 0xa624b4\nMOV             W1, #0                                                 ; +0xe4, 0xa624b8\nMOV             X0, X19                                                ; +0xe8, 0xa624bc\nLDR             X2, [X2,#0x490]                                        ; +0xec, 0xa624c0\nBLR             X2                                                     ; +0xf0, 0xa624c4\nLDR             S0, flt_A62570; float                                  ; +0xf4, 0xa624c8\nMOV             W0, W23; this                                          ; +0xf8, 0xa624cc\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0xfc, 0xa624d0\nMOV             X1, X0; cocos2d::CCAction *                            ; +0x100, 0xa624d4\nMOV             X0, X19; this                                          ; +0x104, 0xa624d8\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x108, 0xa624dc\nLDR             X2, [X19]                                              ; +0x10c, 0xa624e0\nMOV             X0, X19                                                ; +0x110, 0xa624e4\nMOV             W1, #1                                                 ; +0x114, 0xa624e8\nLDR             X2, [X2,#0x158]                                        ; +0x118, 0xa624ec\nBLR             X2                                                     ; +0x11c, 0xa624f0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x120, 0xa624f4\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x124, 0xa624f8\nLDR             X0, [X20]; this                                        ; +0x128, 0xa624fc\nCMP             X1, X0                                                 ; +0x12c, 0xa62500\nB.NE            loc_A62564                                             ; +0x130, 0xa62504\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x134, 0xa62508\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x138, 0xa6250c\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x13c, 0xa62510\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x140, 0xa62514\nRET                                                                    ; +0x144, 0xa62518\nMOV             W2, #0x69 ; 'i'                                        ; +0x148, 0xa6251c\nSTR             W2, [X19,#0x250]                                       ; +0x14c, 0xa62520\nB               loc_A624A0                                             ; +0x150, 0xa62524\nBL              _ZN12FLAlertLayer4showEv; FLAlertLayer::show(void)     ; +0x154, 0xa62528\nB               loc_A624F4                                             ; +0x158, 0xa6252c\nMOV             X0, X21; this                                          ; +0x15c, 0xa62530\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x160, 0xa62534\nCMP             W0, #0x68 ; 'h'                                        ; +0x164, 0xa62538\nMOV             W2, #0x69 ; 'i'                                        ; +0x168, 0xa6253c\nB.GT            loc_A62554                                             ; +0x16c, 0xa62540\nSTR             W2, [X19,#0x250]                                       ; +0x170, 0xa62544\nMOV             X1, X21                                                ; +0x174, 0xa62548\nCBNZ            W2, loc_A624A0                                         ; +0x178, 0xa6254c\nB               loc_A6251C                                             ; +0x17c, 0xa62550\nMOV             X0, X21; this                                          ; +0x180, 0xa62554\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x184, 0xa62558\nADD             W2, W0, #1                                             ; +0x188, 0xa6255c\nB               loc_A62544                                             ; +0x18c, 0xa62560\nBL              .__stack_chk_fail                                      ; +0x190, 0xa62564", "xrefs": ["<???> @ 0x5dfd0", "<???> @ 0x148f550"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}