{"type": "func", "start": 5028680, "end": 5028924, "name": "ChallengesPage::show", "pseudocode": "// \n// ChallengesPage::show from 0x4cbb48 to 0x4cbc3c (244 bytes)\n// \n// 0 xrefs:\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\nvoid ChallengesPage::show(ChallengesPage *a1)\n{\n  unsigned __int8 v2; // r8\n  const cocos2d::CCPoint *v3; // r0\n  cocos2d::CCLayer *m_mainLayer; // r9\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10\n  cocos2d::CCEaseElasticOut *v6; // r0\n  float v7; // r2\n  cocos2d::CCAction *v8; // r0\n  cocos2d::CCScene *m_pRunningScene; // r6\n  cocos2d::CCNode *m_scene; // r0\n  int v11; // r0\n  cocos2d::CCFadeTo *v12; // r0\n  cocos2d::CCPoint v13; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v14; // [sp+Ch] [bp-Ch] BYREF\n\n  if ( a1->m_noElasticity )\n  {\n    FLAlertLayer::show(a1);\n  }\n  else\n  {\n    v2 = a1->getOpacity(a1);\n    v3 = a1->m_mainLayer->getPosition(a1->m_mainLayer);\n    cocos2d::CCPoint::CCPoint(&v13, v3);\n    m_mainLayer = a1->m_mainLayer;\n    setPosition = m_mainLayer->setPosition;\n    cocos2d::CCPoint::CCPoint(&v14, -160.0, v13.y);\n    setPosition(m_mainLayer, &v14);\n    v6 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(0.5, &v13);\n    v8 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v6, (cocos2d::CCActionInterval *)0x3F19999A, v7);\n    cocos2d::CCNode::runAction(a1->m_mainLayer, v8);\n    m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n    m_scene = a1->m_scene;\n    if ( !m_scene )\n    {\n      if ( cocos2d::CCScene::getHighestChildZ(m_pRunningScene) <= 104 )\n        v11 = 105;\n      else\n        v11 = cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1;\n      a1->m_ZOrder = v11;\n      m_scene = m_pRunningScene;\n    }\n    if ( !a1->m_ZOrder )\n      a1->m_ZOrder = 105;\n    m_scene->addChild_0(m_scene, a1, a1->m_ZOrder);\n    a1->setOpacity(a1, 0);\n    v12 = cocos2d::CCFadeTo::create(0.14, v2);\n    cocos2d::CCNode::runAction(a1, v12);\n    a1->setVisible(a1, 1);\n  }\n}", "assembly": "; \n; ChallengesPage::show from 0x4cbb48 to 0x4cbc3c (244 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x4CBB52)                ; +0x0, 0x4cbb48\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x4cbb4a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4cbb4e\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4cbb50\nSUB             SP, SP, #0x18                                          ; +0xa, 0x4cbb52\nMOV             R4, R0                                                 ; +0xc, 0x4cbb54\nLDR             R2, [R3]                                               ; +0xe, 0x4cbb56\nMOV             R5, R3                                                 ; +0x10, 0x4cbb58\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x12, 0x4cbb5a\nLDRB.W          R2, [R0,#0x1D0]                                        ; +0x14, 0x4cbb5c\nCBZ             R2, loc_4CBB68                                         ; +0x18, 0x4cbb60\nBL              _ZN12FLAlertLayer4showEv; FLAlertLayer::show(void)     ; +0x1a, 0x4cbb62\nB               loc_4CBC2A                                             ; +0x1e, 0x4cbb66\nLDR             R3, [R0]                                               ; +0x20, 0x4cbb68\nADD             R6, SP, #0x18+var_14                                   ; +0x22, 0x4cbb6a\nADD             R7, SP, #0x18+var_C                                    ; +0x24, 0x4cbb6c\nLDR.W           R3, [R3,#0x238]                                        ; +0x26, 0x4cbb6e\nBLX             R3                                                     ; +0x2a, 0x4cbb72\nMOV             R8, R0                                                 ; +0x2c, 0x4cbb74\nLDR.W           R0, [R4,#0x1C8]                                        ; +0x2e, 0x4cbb76\nLDR             R3, [R0]                                               ; +0x32, 0x4cbb7a\nLDR             R3, [R3,#0x60]                                         ; +0x34, 0x4cbb7c\nBLX             R3                                                     ; +0x36, 0x4cbb7e\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x38, 0x4cbb80\nMOV             R0, R6; this                                           ; +0x3a, 0x4cbb82\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x3c, 0x4cbb84\nLDR.W           R9, [R4,#0x1C8]                                        ; +0x40, 0x4cbb88\nLDR             R2, [SP,#0x18+var_10]; float                           ; +0x44, 0x4cbb8c\nMOV             R0, R7; this                                           ; +0x46, 0x4cbb8e\nLDR             R1, flt_4CBC3C; float                                  ; +0x48, 0x4cbb90\nLDR.W           R3, [R9]                                               ; +0x4a, 0x4cbb92\nLDR.W           R10, [R3,#0x5C]                                        ; +0x4e, 0x4cbb96\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x52, 0x4cbb9a\nMOV             R0, R9                                                 ; +0x56, 0x4cbb9e\nMOV             R1, R7                                                 ; +0x58, 0x4cbba0\nBLX             R10                                                    ; +0x5a, 0x4cbba2\nMOV             R1, R6; float                                          ; +0x5c, 0x4cbba4\nMOV.W           R0, #0x3F000000; this                                  ; +0x5e, 0x4cbba6\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x62, 0x4cbbaa\nLDR             R1, =0x3F19999A; cocos2d::CCActionInterval *           ; +0x66, 0x4cbbae\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x68, 0x4cbbb0\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x6c, 0x4cbbb4\nLDR.W           R0, [R4,#0x1C8]; this                                  ; +0x6e, 0x4cbbb6\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x72, 0x4cbbba\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x76, 0x4cbbbe\nLDR.W           R6, [R0,#0xCC]                                         ; +0x7a, 0x4cbbc2\nLDR.W           R0, [R4,#0x1C0]                                        ; +0x7e, 0x4cbbc6\nCBNZ            R0, loc_4CBBE8                                         ; +0x82, 0x4cbbca\nMOV             R0, R6; this                                           ; +0x84, 0x4cbbcc\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x86, 0x4cbbce\nCMP             R0, #0x68 ; 'h'                                        ; +0x8a, 0x4cbbd2\nBLE             loc_4CBBE0                                             ; +0x8c, 0x4cbbd4\nMOV             R0, R6; this                                           ; +0x8e, 0x4cbbd6\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x90, 0x4cbbd8\nADDS            R0, #1                                                 ; +0x94, 0x4cbbdc\nB               loc_4CBBE2                                             ; +0x96, 0x4cbbde\nMOVS            R0, #0x69 ; 'i'                                        ; +0x98, 0x4cbbe0\nSTR.W           R0, [R4,#0x1CC]                                        ; +0x9a, 0x4cbbe2\nMOV             R0, R6                                                 ; +0x9e, 0x4cbbe6\nLDR.W           R3, [R4,#0x1CC]                                        ; +0xa0, 0x4cbbe8\nCBNZ            R3, loc_4CBBF4                                         ; +0xa4, 0x4cbbec\nMOVS            R3, #0x69 ; 'i'                                        ; +0xa6, 0x4cbbee\nSTR.W           R3, [R4,#0x1CC]                                        ; +0xa8, 0x4cbbf0\nLDR             R3, [R0]                                               ; +0xac, 0x4cbbf4\nMOV             R1, R4                                                 ; +0xae, 0x4cbbf6\nLDR.W           R2, [R4,#0x1CC]                                        ; +0xb0, 0x4cbbf8\nLDR.W           R3, [R3,#0xE0]                                         ; +0xb4, 0x4cbbfc\nBLX             R3                                                     ; +0xb8, 0x4cbc00\nLDR             R3, [R4]                                               ; +0xba, 0x4cbc02\nMOV             R0, R4                                                 ; +0xbc, 0x4cbc04\nMOVS            R1, #0                                                 ; +0xbe, 0x4cbc06\nLDR.W           R3, [R3,#0x240]                                        ; +0xc0, 0x4cbc08\nBLX             R3                                                     ; +0xc4, 0x4cbc0c\nMOV             R1, R8; float                                          ; +0xc6, 0x4cbc0e\nLDR             R0, =0x3E0F5C29; this                                  ; +0xc8, 0x4cbc10\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0xca, 0x4cbc12\nMOV             R1, R0; cocos2d::CCAction *                            ; +0xce, 0x4cbc16\nMOV             R0, R4; this                                           ; +0xd0, 0x4cbc18\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xd2, 0x4cbc1a\nLDR             R3, [R4]                                               ; +0xd6, 0x4cbc1e\nMOV             R0, R4                                                 ; +0xd8, 0x4cbc20\nMOVS            R1, #1                                                 ; +0xda, 0x4cbc22\nLDR.W           R3, [R3,#0xA4]                                         ; +0xdc, 0x4cbc24\nBLX             R3                                                     ; +0xe0, 0x4cbc28\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xe2, 0x4cbc2a\nLDR             R3, [R5]                                               ; +0xe4, 0x4cbc2c\nCMP             R2, R3                                                 ; +0xe6, 0x4cbc2e\nBEQ             loc_4CBC36                                             ; +0xe8, 0x4cbc30\nBLX             __stack_chk_fail                                       ; +0xea, 0x4cbc32\nADD             SP, SP, #0x18                                          ; +0xee, 0x4cbc36\nPOP.W           {R4-R10,PC}                                            ; +0xf0, 0x4cbc38", "xrefs": [], "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"}