{"type": "func", "start": 11866808, "end": 11867212, "name": "CharacterColorPage::show", "pseudocode": "// \n// CharacterColorPage::show from 0xb512b8 to 0xb5144c (404 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x48778\n// > <???> @ 0x14c1170\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:01:59 +0000\n// \n\n__int64 __fastcall CharacterColorPage::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; CharacterColorPage::show from 0xb512b8 to 0xb5144c (404 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x48778\n; > <???> @ 0x14c1170\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:01:59 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xb512b8\nMOV             X29, SP                                                ; +0x4, 0xb512bc\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0xb512c0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb512c4\nMOV             X19, X0                                                ; +0x10, 0xb512c8\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0xb512cc\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x18, 0xb512d0\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xb512d4\nLDRB            W1, [X0,#0x254]                                        ; +0x20, 0xb512d8\nLDR             X2, [X2]                                               ; +0x24, 0xb512dc\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x28, 0xb512e0\nCBNZ            W1, loc_B5140C                                         ; +0x2c, 0xb512e4\nLDR             X1, [X0]                                               ; +0x30, 0xb512e8\nADD             X21, X29, #0x70+var_18                                 ; +0x34, 0xb512ec\nADD             X22, X29, #0x70+var_10                                 ; +0x38, 0xb512f0\nLDR             X1, [X1,#0x480]                                        ; +0x3c, 0xb512f4\nBLR             X1                                                     ; +0x40, 0xb512f8\nMOV             W23, W0                                                ; +0x44, 0xb512fc\nLDR             X1, [X19,#0x248]                                       ; +0x48, 0xb51300\nMOV             X0, X1                                                 ; +0x4c, 0xb51304\nLDR             X1, [X1]                                               ; +0x50, 0xb51308\nLDR             X1, [X1,#0xC0]                                         ; +0x54, 0xb5130c\nBLR             X1                                                     ; +0x58, 0xb51310\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x5c, 0xb51314\nMOV             X0, X21; this                                          ; +0x60, 0xb51318\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x64, 0xb5131c\nLDR             X24, [X19,#0x248]                                      ; +0x68, 0xb51320\nLDR             S1, [X29,#0x70+var_14]; float                          ; +0x6c, 0xb51324\nMOV             X0, X22; this                                          ; +0x70, 0xb51328\nLDR             S0, flt_B5144C; float                                  ; +0x74, 0xb5132c\nSTR             X22, [X29,#0x70+var_28]                                ; +0x78, 0xb51330\nLDR             X2, [X24]                                              ; +0x7c, 0xb51334\nLDR             X22, [X2,#0xB8]                                        ; +0x80, 0xb51338\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x84, 0xb5133c\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x88, 0xb51340\nMOV             X0, X24                                                ; +0x8c, 0xb51344\nBLR             X22                                                    ; +0x90, 0xb51348\nFMOV            S0, #0.5; float                                        ; +0x94, 0xb5134c\nMOV             X0, X21; this                                          ; +0x98, 0xb51350\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x9c, 0xb51354\nLDR             S0, flt_B51450; float                                  ; +0xa0, 0xb51358\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0xa4, 0xb5135c\nMOV             X1, X0; cocos2d::CCAction *                            ; +0xa8, 0xb51360\nLDR             X0, [X19,#0x248]; this                                 ; +0xac, 0xb51364\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xb0, 0xb51368\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xb4, 0xb5136c\nLDR             X21, [X0,#0x110]                                       ; +0xb8, 0xb51370\nLDR             X1, [X19,#0x238]                                       ; +0xbc, 0xb51374\nCBZ             X1, loc_B51414                                         ; +0xc0, 0xb51378\nLDR             W2, [X19,#0x250]                                       ; +0xc4, 0xb5137c\nCBZ             W2, loc_B51400                                         ; +0xc8, 0xb51380\nLDR             X3, [X1]                                               ; +0xcc, 0xb51384\nMOV             X0, X1                                                 ; +0xd0, 0xb51388\nMOV             X1, X19                                                ; +0xd4, 0xb5138c\nLDR             X3, [X3,#0x1D0]                                        ; +0xd8, 0xb51390\nBLR             X3                                                     ; +0xdc, 0xb51394\nLDR             X2, [X19]                                              ; +0xe0, 0xb51398\nMOV             W1, #0                                                 ; +0xe4, 0xb5139c\nMOV             X0, X19                                                ; +0xe8, 0xb513a0\nLDR             X2, [X2,#0x490]                                        ; +0xec, 0xb513a4\nBLR             X2                                                     ; +0xf0, 0xb513a8\nLDR             S0, flt_B51454; float                                  ; +0xf4, 0xb513ac\nMOV             W0, W23; this                                          ; +0xf8, 0xb513b0\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0xfc, 0xb513b4\nMOV             X1, X0; cocos2d::CCAction *                            ; +0x100, 0xb513b8\nMOV             X0, X19; this                                          ; +0x104, 0xb513bc\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x108, 0xb513c0\nLDR             X2, [X19]                                              ; +0x10c, 0xb513c4\nMOV             X0, X19                                                ; +0x110, 0xb513c8\nMOV             W1, #1                                                 ; +0x114, 0xb513cc\nLDR             X2, [X2,#0x158]                                        ; +0x118, 0xb513d0\nBLR             X2                                                     ; +0x11c, 0xb513d4\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x120, 0xb513d8\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x124, 0xb513dc\nLDR             X0, [X20]; this                                        ; +0x128, 0xb513e0\nCMP             X1, X0                                                 ; +0x12c, 0xb513e4\nB.NE            loc_B51448                                             ; +0x130, 0xb513e8\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x134, 0xb513ec\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x138, 0xb513f0\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x13c, 0xb513f4\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x140, 0xb513f8\nRET                                                                    ; +0x144, 0xb513fc\nMOV             W2, #0x69 ; 'i'                                        ; +0x148, 0xb51400\nSTR             W2, [X19,#0x250]                                       ; +0x14c, 0xb51404\nB               loc_B51384                                             ; +0x150, 0xb51408\nBL              _ZN12FLAlertLayer4showEv; FLAlertLayer::show(void)     ; +0x154, 0xb5140c\nB               loc_B513D8                                             ; +0x158, 0xb51410\nMOV             X0, X21; this                                          ; +0x15c, 0xb51414\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x160, 0xb51418\nCMP             W0, #0x68 ; 'h'                                        ; +0x164, 0xb5141c\nMOV             W2, #0x69 ; 'i'                                        ; +0x168, 0xb51420\nB.GT            loc_B51438                                             ; +0x16c, 0xb51424\nSTR             W2, [X19,#0x250]                                       ; +0x170, 0xb51428\nMOV             X1, X21                                                ; +0x174, 0xb5142c\nCBNZ            W2, loc_B51384                                         ; +0x178, 0xb51430\nB               loc_B51400                                             ; +0x17c, 0xb51434\nMOV             X0, X21; this                                          ; +0x180, 0xb51438\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x184, 0xb5143c\nADD             W2, W0, #1                                             ; +0x188, 0xb51440\nB               loc_B51428                                             ; +0x18c, 0xb51444\nBL              .__stack_chk_fail                                      ; +0x190, 0xb51448", "xrefs": ["<???> @ 0x48778", "<???> @ 0x14c1170"], "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"}