{"type": "func", "start": 4301645888, "end": 4301646267, "name": "CharacterColorPage::show", "pseudocode": "// \n// CharacterColorPage::show from 0x10065e840 to 0x10065e9bb (379 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100987100\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 __fastcall CharacterColorPage::show(CharacterColorPage *a1)\n{\n  unsigned __int8 v1; // r14\n  double *v2; // rax\n  cocos2d::CCLayer *m_mainLayer; // r12\n  cocos2d::CCMoveTo *v4; // rax\n  cocos2d::CCEaseElasticOut *v5; // rax\n  cocos2d::CCDirector *v6; // rax\n  cocos2d::CCScene *m_scene; // r15\n  cocos2d::CCFadeTo *v8; // rax\n  int HighestChildZ; // eax\n  int v10; // edx\n  float v11; // [rsp+8h] [rbp-38h] BYREF\n  cocos2d::CCPoint v12[6]; // [rsp+10h] [rbp-30h] BYREF\n\n  if ( a1->m_noElasticity )\n  {\n    FLAlertLayer::show(a1);\n    return;\n  }\n  v1 = ((__int64 (__fastcall *)(CharacterColorPage *))a1->getOpacity)(a1);\n  v2 = (double *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->getPosition)(a1->m_mainLayer);\n  sub_10028CC60(v12, v2);\n  m_mainLayer = a1->m_mainLayer;\n  sub_10028CBE0(&v11, -160.0, v12[0].y);\n  ((void (__fastcall *)(cocos2d::CCLayer *, float *))m_mainLayer->setPosition)(m_mainLayer, &v11);\n  v4 = cocos2d::CCMoveTo::create(0.5, v12);\n  v5 = cocos2d::CCEaseElasticOut::create(v4, 0.60000002);\n  cocos2d::CCNode::runAction(a1->m_mainLayer, v5);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  m_scene = (cocos2d::CCScene *)a1->m_scene;\n  if ( !m_scene )\n  {\n    m_scene = v6->m_pRunningScene;\n    HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_scene);\n    v10 = 105;\n    if ( HighestChildZ >= 105 )\n      v10 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;\n    a1->m_ZOrder = v10;\n    if ( v10 )\n      goto LABEL_6;\n    goto LABEL_5;\n  }\n  if ( !a1->m_ZOrder )\nLABEL_5:\n    a1->m_ZOrder = 105;\nLABEL_6:\n  ((void (__fastcall *)(cocos2d::CCScene *, CharacterColorPage *))m_scene->addChild_0)(m_scene, a1);\n  ((void (__fastcall *)(CharacterColorPage *, _QWORD))a1->setOpacity)(a1, 0);\n  v8 = cocos2d::CCFadeTo::create(0.14, v1);\n  cocos2d::CCNode::runAction(a1, v8);\n  ((void (__fastcall *)(CharacterColorPage *, __int64))a1->setVisible)(a1, 1);\n}", "assembly": "; \n; CharacterColorPage::show from 0x10065e840 to 0x10065e9bb (379 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100987100\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\npush    rbp                                                            ; +0x0, 0x10065e840\nmov     rbp, rsp                                                       ; +0x1, 0x10065e841\npush    r15                                                            ; +0x4, 0x10065e844\npush    r14                                                            ; +0x6, 0x10065e846\npush    r13                                                            ; +0x8, 0x10065e848\npush    r12                                                            ; +0xa, 0x10065e84a\npush    rbx                                                            ; +0xc, 0x10065e84c\nsub     rsp, 18h                                                       ; +0xd, 0x10065e84d\nmov     rbx, rdi                                                       ; +0x11, 0x10065e851\ncmp     byte ptr [rdi+24Ch], 1                                         ; +0x14, 0x10065e854\njnz     short loc_10065E873                                            ; +0x1b, 0x10065e85b\nmov     rdi, rbx                                                       ; +0x1d, 0x10065e85d\nadd     rsp, 18h                                                       ; +0x20, 0x10065e860\npop     rbx                                                            ; +0x24, 0x10065e864\npop     r12                                                            ; +0x25, 0x10065e865\npop     r13                                                            ; +0x27, 0x10065e867\npop     r14                                                            ; +0x29, 0x10065e869\npop     r15                                                            ; +0x2b, 0x10065e86b\npop     rbp                                                            ; +0x2d, 0x10065e86d\njmp     FLAlertLayer__show                                             ; +0x2e, 0x10065e86e\nmov     rax, [rbx]                                                     ; +0x33, 0x10065e873\nmov     rdi, rbx                                                       ; +0x36, 0x10065e876\ncall    qword ptr [rax+470h]                                           ; +0x39, 0x10065e879\nmov     r14d, eax                                                      ; +0x3f, 0x10065e87f\nmov     rdi, [rbx+240h]                                                ; +0x42, 0x10065e882\nmov     rax, [rdi]                                                     ; +0x49, 0x10065e889\ncall    qword ptr [rax+0C0h]                                           ; +0x4c, 0x10065e88c\nlea     r15, [rbp+var_30]                                              ; +0x52, 0x10065e892\nmov     rdi, r15                                                       ; +0x56, 0x10065e896\nmov     rsi, rax                                                       ; +0x59, 0x10065e899\ncall    sub_10028CC60                                                  ; +0x5c, 0x10065e89c\nmov     r12, [rbx+240h]                                                ; +0x61, 0x10065e8a1\nmovss   xmm1, [rbp+var_2C]                                             ; +0x68, 0x10065e8a8\nlea     r13, [rbp+var_38]                                              ; +0x6d, 0x10065e8ad\nmovss   xmm0, cs:dword_10081687C                                       ; +0x71, 0x10065e8b1\nmov     rdi, r13                                                       ; +0x79, 0x10065e8b9\ncall    sub_10028CBE0                                                  ; +0x7c, 0x10065e8bc\nmov     rax, [r12]                                                     ; +0x81, 0x10065e8c1\nmov     rdi, r12                                                       ; +0x85, 0x10065e8c5\nmov     rsi, r13                                                       ; +0x88, 0x10065e8c8\ncall    qword ptr [rax+0B8h]                                           ; +0x8b, 0x10065e8cb\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x91, 0x10065e8d1\nmov     rdi, r15                                                       ; +0x99, 0x10065e8d9\ncall    cocos2d__CCMoveTo__create                                      ; +0x9c, 0x10065e8dc\nmovss   xmm0, cs:dword_100814FB0                                       ; +0xa1, 0x10065e8e1\nmov     rdi, rax                                                       ; +0xa9, 0x10065e8e9\ncall    cocos2d__CCEaseElasticOut__create                              ; +0xac, 0x10065e8ec\nmov     rdi, [rbx+240h]                                                ; +0xb1, 0x10065e8f1\nmov     rsi, rax                                                       ; +0xb8, 0x10065e8f8\ncall    cocos2d__CCNode__runAction                                     ; +0xbb, 0x10065e8fb\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xc0, 0x10065e900\nmov     r15, [rbx+230h]                                                ; +0xc5, 0x10065e905\ntest    r15, r15                                                       ; +0xcc, 0x10065e90c\njz      short loc_10065E983                                            ; +0xcf, 0x10065e90f\nmov     edx, [rbx+248h]                                                ; +0xd1, 0x10065e911\ntest    edx, edx                                                       ; +0xd7, 0x10065e917\njnz     short loc_10065E92A                                            ; +0xd9, 0x10065e919\nmov     dword ptr [rbx+248h], 69h ; 'i'                                ; +0xdb, 0x10065e91b\nmov     edx, 69h ; 'i'                                                 ; +0xe5, 0x10065e925\nmov     rax, [r15]                                                     ; +0xea, 0x10065e92a\nmov     rdi, r15                                                       ; +0xed, 0x10065e92d\nmov     rsi, rbx                                                       ; +0xf0, 0x10065e930\ncall    qword ptr [rax+1C0h]                                           ; +0xf3, 0x10065e933\nmov     rax, [rbx]                                                     ; +0xf9, 0x10065e939\nmov     rdi, rbx                                                       ; +0xfc, 0x10065e93c\nxor     esi, esi                                                       ; +0xff, 0x10065e93f\ncall    qword ptr [rax+480h]                                           ; +0x101, 0x10065e941\nmovzx   edi, r14b                                                      ; +0x107, 0x10065e947\nmovss   xmm0, cs:dword_100817A50                                       ; +0x10b, 0x10065e94b\ncall    cocos2d__CCFadeTo__create                                      ; +0x113, 0x10065e953\nmov     rdi, rbx                                                       ; +0x118, 0x10065e958\nmov     rsi, rax                                                       ; +0x11b, 0x10065e95b\ncall    cocos2d__CCNode__runAction                                     ; +0x11e, 0x10065e95e\nmov     rax, [rbx]                                                     ; +0x123, 0x10065e963\nmov     rdi, rbx                                                       ; +0x126, 0x10065e966\nmov     esi, 1                                                         ; +0x129, 0x10065e969\ncall    qword ptr [rax+148h]                                           ; +0x12e, 0x10065e96e\nadd     rsp, 18h                                                       ; +0x134, 0x10065e974\npop     rbx                                                            ; +0x138, 0x10065e978\npop     r12                                                            ; +0x139, 0x10065e979\npop     r13                                                            ; +0x13b, 0x10065e97b\npop     r14                                                            ; +0x13d, 0x10065e97d\npop     r15                                                            ; +0x13f, 0x10065e97f\npop     rbp                                                            ; +0x141, 0x10065e981\nretn                                                                   ; +0x142, 0x10065e982\nmov     r15, [rax+108h]                                                ; +0x143, 0x10065e983\nmov     rdi, r15                                                       ; +0x14a, 0x10065e98a\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x14d, 0x10065e98d\nmov     edx, 69h ; 'i'                                                 ; +0x152, 0x10065e992\ncmp     eax, 69h ; 'i'                                                 ; +0x157, 0x10065e997\njl      short loc_10065E9A8                                            ; +0x15a, 0x10065e99a\nmov     rdi, r15                                                       ; +0x15c, 0x10065e99c\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x15f, 0x10065e99f\nmov     edx, eax                                                       ; +0x164, 0x10065e9a4\ninc     edx                                                            ; +0x166, 0x10065e9a6\nmov     [rbx+248h], edx                                                ; +0x168, 0x10065e9a8\ntest    edx, edx                                                       ; +0x16e, 0x10065e9ae\njnz     loc_10065E92A                                                  ; +0x170, 0x10065e9b0\njmp     loc_10065E91B                                                  ; +0x176, 0x10065e9b6", "xrefs": ["<???> @ 0x100987100"], "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"}