{"type": "func", "start": 6288436, "end": 6288680, "name": "ChallengesPage::show", "pseudocode": "// \n// ChallengesPage::show from 0x5ff434 to 0x5ff528 (244 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:54:39 +0000\n// \n\nint __fastcall ChallengesPage::show(GameToolbox **this)\n{\n  float v3; // r8\n  const cocos2d::CCPoint *v4; // r0\n  int v5; // r9\n  void (__fastcall *v6)(int, _BYTE *); // r10\n  const cocos2d::CCPoint *v7; // r2\n  cocos2d::CCEaseElasticOut *v8; // r0\n  float v9; // r2\n  cocos2d::CCAction *v10; // r0\n  cocos2d::CCDirector *v11; // r0\n  cocos2d::CCScene *v12; // r6\n  cocos2d::CCScene *v13; // r0\n  int v14; // r0\n  unsigned __int8 v15; // r2\n  cocos2d::CCAction *v16; // r0\n  _BYTE v17[4]; // [sp+4h] [bp-14h] BYREF\n  float v18; // [sp+8h] [bp-10h]\n  _BYTE v19[8]; // [sp+Ch] [bp-Ch] BYREF\n\n  if ( *((_BYTE *)this + 468) )\n    return FLAlertLayer::show(this);\n  v3 = COERCE_FLOAT((*((int (__fastcall **)(GameToolbox **))*this + 144))(this));\n  v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 115) + 96))(*(this + 115));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v4);\n  v5 = (int)*(this + 115);\n  v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -160.0, v18);\n  v6(v5, v19);\n  v8 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)0x3F000000, COERCE_FLOAT(v17), v7);\n  v10 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v8, (cocos2d::CCActionInterval *)0x3F19999A, v9);\n  v11 = (cocos2d::CCDirector *)cocos2d::CCNode::runAction(*(this + 115), v10);\n  v12 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v11) + 220);\n  v13 = *(this + 113);\n  if ( !v13 )\n  {\n    if ( (int)cocos2d::CCScene::getHighestChildZ(v12) <= 104 )\n      v14 = 105;\n    else\n      v14 = cocos2d::CCScene::getHighestChildZ(v12) + 1;\n    *(this + 116) = (GameToolbox *)v14;\n    v13 = v12;\n  }\n  if ( !*(this + 116) )\n    *(this + 116) = (GameToolbox *)(&dword_68 + 1);\n  (*(void (__fastcall **)(cocos2d::CCScene *, GameToolbox **, _DWORD))(*(_DWORD *)v13 + 232))(v13, this, *(this + 116));\n  (*((void (__fastcall **)(GameToolbox **, _DWORD))*this + 146))(this, 0);\n  v16 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E0F5C29, v3, v15);\n  cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v16);\n  return (*((int (__fastcall **)(GameToolbox **, int))*this + 43))(this, 1);\n}", "assembly": "; \n; ChallengesPage::show from 0x5ff434 to 0x5ff528 (244 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:54:39 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x5FF43E)                ; +0x0, 0x5ff434\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x5ff436\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x5ff43a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x5ff43c\nSUB             SP, SP, #0x18                                          ; +0xa, 0x5ff43e\nMOV             R4, R0                                                 ; +0xc, 0x5ff440\nLDR             R2, [R3]                                               ; +0xe, 0x5ff442\nMOV             R5, R3                                                 ; +0x10, 0x5ff444\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x12, 0x5ff446\nLDRB.W          R2, [R0,#0x1D4]                                        ; +0x14, 0x5ff448\nCBZ             R2, loc_5FF454                                         ; +0x18, 0x5ff44c\nBL              _ZN12FLAlertLayer4showEv; FLAlertLayer::show(void)     ; +0x1a, 0x5ff44e\nB               loc_5FF516                                             ; +0x1e, 0x5ff452\nLDR             R3, [R0]                                               ; +0x20, 0x5ff454\nADD             R6, SP, #0x18+var_14                                   ; +0x22, 0x5ff456\nADD             R7, SP, #0x18+var_C                                    ; +0x24, 0x5ff458\nLDR.W           R3, [R3,#0x240]                                        ; +0x26, 0x5ff45a\nBLX             R3                                                     ; +0x2a, 0x5ff45e\nMOV             R8, R0                                                 ; +0x2c, 0x5ff460\nLDR.W           R0, [R4,#0x1CC]                                        ; +0x2e, 0x5ff462\nLDR             R3, [R0]                                               ; +0x32, 0x5ff466\nLDR             R3, [R3,#0x60]                                         ; +0x34, 0x5ff468\nBLX             R3                                                     ; +0x36, 0x5ff46a\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x38, 0x5ff46c\nMOV             R0, R6; this                                           ; +0x3a, 0x5ff46e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x3c, 0x5ff470\nLDR.W           R9, [R4,#0x1CC]                                        ; +0x40, 0x5ff474\nLDR             R2, [SP,#0x18+var_10]; float                           ; +0x44, 0x5ff478\nMOV             R0, R7; this                                           ; +0x46, 0x5ff47a\nLDR             R1, flt_5FF528; float                                  ; +0x48, 0x5ff47c\nLDR.W           R3, [R9]                                               ; +0x4a, 0x5ff47e\nLDR.W           R10, [R3,#0x5C]                                        ; +0x4e, 0x5ff482\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x52, 0x5ff486\nMOV             R0, R9                                                 ; +0x56, 0x5ff48a\nMOV             R1, R7                                                 ; +0x58, 0x5ff48c\nBLX             R10                                                    ; +0x5a, 0x5ff48e\nMOV             R1, R6; float                                          ; +0x5c, 0x5ff490\nMOV.W           R0, #0x3F000000; this                                  ; +0x5e, 0x5ff492\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x62, 0x5ff496\nLDR             R1, =0x3F19999A; cocos2d::CCActionInterval *           ; +0x66, 0x5ff49a\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x68, 0x5ff49c\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x6c, 0x5ff4a0\nLDR.W           R0, [R4,#0x1CC]; this                                  ; +0x6e, 0x5ff4a2\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x72, 0x5ff4a6\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x76, 0x5ff4aa\nLDR.W           R6, [R0,#0xDC]                                         ; +0x7a, 0x5ff4ae\nLDR.W           R0, [R4,#0x1C4]                                        ; +0x7e, 0x5ff4b2\nCBNZ            R0, loc_5FF4D4                                         ; +0x82, 0x5ff4b6\nMOV             R0, R6; this                                           ; +0x84, 0x5ff4b8\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x86, 0x5ff4ba\nCMP             R0, #0x68 ; 'h'                                        ; +0x8a, 0x5ff4be\nBLE             loc_5FF4CC                                             ; +0x8c, 0x5ff4c0\nMOV             R0, R6; this                                           ; +0x8e, 0x5ff4c2\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x90, 0x5ff4c4\nADDS            R0, #1                                                 ; +0x94, 0x5ff4c8\nB               loc_5FF4CE                                             ; +0x96, 0x5ff4ca\nMOVS            R0, #0x69 ; 'i'                                        ; +0x98, 0x5ff4cc\nSTR.W           R0, [R4,#0x1D0]                                        ; +0x9a, 0x5ff4ce\nMOV             R0, R6                                                 ; +0x9e, 0x5ff4d2\nLDR.W           R3, [R4,#0x1D0]                                        ; +0xa0, 0x5ff4d4\nCBNZ            R3, loc_5FF4E0                                         ; +0xa4, 0x5ff4d8\nMOVS            R3, #0x69 ; 'i'                                        ; +0xa6, 0x5ff4da\nSTR.W           R3, [R4,#0x1D0]                                        ; +0xa8, 0x5ff4dc\nLDR             R3, [R0]                                               ; +0xac, 0x5ff4e0\nMOV             R1, R4                                                 ; +0xae, 0x5ff4e2\nLDR.W           R2, [R4,#0x1D0]                                        ; +0xb0, 0x5ff4e4\nLDR.W           R3, [R3,#0xE8]                                         ; +0xb4, 0x5ff4e8\nBLX             R3                                                     ; +0xb8, 0x5ff4ec\nLDR             R3, [R4]                                               ; +0xba, 0x5ff4ee\nMOV             R0, R4                                                 ; +0xbc, 0x5ff4f0\nMOVS            R1, #0                                                 ; +0xbe, 0x5ff4f2\nLDR.W           R3, [R3,#0x248]                                        ; +0xc0, 0x5ff4f4\nBLX             R3                                                     ; +0xc4, 0x5ff4f8\nMOV             R1, R8; float                                          ; +0xc6, 0x5ff4fa\nLDR             R0, =0x3E0F5C29; this                                  ; +0xc8, 0x5ff4fc\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0xca, 0x5ff4fe\nMOV             R1, R0; cocos2d::CCAction *                            ; +0xce, 0x5ff502\nMOV             R0, R4; this                                           ; +0xd0, 0x5ff504\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xd2, 0x5ff506\nLDR             R3, [R4]                                               ; +0xd6, 0x5ff50a\nMOV             R0, R4                                                 ; +0xd8, 0x5ff50c\nMOVS            R1, #1                                                 ; +0xda, 0x5ff50e\nLDR.W           R3, [R3,#0xAC]                                         ; +0xdc, 0x5ff510\nBLX             R3                                                     ; +0xe0, 0x5ff514\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xe2, 0x5ff516\nLDR             R3, [R5]                                               ; +0xe4, 0x5ff518\nCMP             R2, R3                                                 ; +0xe6, 0x5ff51a\nBEQ             loc_5FF522                                             ; +0xe8, 0x5ff51c\nBLX             __stack_chk_fail                                       ; +0xea, 0x5ff51e\nADD             SP, SP, #0x18                                          ; +0xee, 0x5ff522\nPOP.W           {R4-R10,PC}                                            ; +0xf0, 0x5ff524", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}