{"type": "func", "start": 4298108688, "end": 4298109067, "name": "GJPathsLayer::show", "pseudocode": "// \n// GJPathsLayer::show from 0x1002fef10 to 0x1002ff08b (379 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10090a6b0\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 GJPathsLayer::show(GJPathsLayer *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 *)(GJPathsLayer *))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 *, GJPathsLayer *))m_scene->addChild_0)(m_scene, a1);\n  ((void (__fastcall *)(GJPathsLayer *, _QWORD))a1->setOpacity)(a1, 0);\n  v8 = cocos2d::CCFadeTo::create(0.14, v1);\n  cocos2d::CCNode::runAction(a1, v8);\n  ((void (__fastcall *)(GJPathsLayer *, __int64))a1->setVisible)(a1, 1);\n}", "assembly": "; \n; GJPathsLayer::show from 0x1002fef10 to 0x1002ff08b (379 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10090a6b0\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, 0x1002fef10\nmov     rbp, rsp                                                       ; +0x1, 0x1002fef11\npush    r15                                                            ; +0x4, 0x1002fef14\npush    r14                                                            ; +0x6, 0x1002fef16\npush    r13                                                            ; +0x8, 0x1002fef18\npush    r12                                                            ; +0xa, 0x1002fef1a\npush    rbx                                                            ; +0xc, 0x1002fef1c\nsub     rsp, 18h                                                       ; +0xd, 0x1002fef1d\nmov     rbx, rdi                                                       ; +0x11, 0x1002fef21\ncmp     byte ptr [rdi+24Ch], 1                                         ; +0x14, 0x1002fef24\njnz     short loc_1002FEF43                                            ; +0x1b, 0x1002fef2b\nmov     rdi, rbx                                                       ; +0x1d, 0x1002fef2d\nadd     rsp, 18h                                                       ; +0x20, 0x1002fef30\npop     rbx                                                            ; +0x24, 0x1002fef34\npop     r12                                                            ; +0x25, 0x1002fef35\npop     r13                                                            ; +0x27, 0x1002fef37\npop     r14                                                            ; +0x29, 0x1002fef39\npop     r15                                                            ; +0x2b, 0x1002fef3b\npop     rbp                                                            ; +0x2d, 0x1002fef3d\njmp     FLAlertLayer__show                                             ; +0x2e, 0x1002fef3e\nmov     rax, [rbx]                                                     ; +0x33, 0x1002fef43\nmov     rdi, rbx                                                       ; +0x36, 0x1002fef46\ncall    qword ptr [rax+470h]                                           ; +0x39, 0x1002fef49\nmov     r14d, eax                                                      ; +0x3f, 0x1002fef4f\nmov     rdi, [rbx+240h]                                                ; +0x42, 0x1002fef52\nmov     rax, [rdi]                                                     ; +0x49, 0x1002fef59\ncall    qword ptr [rax+0C0h]                                           ; +0x4c, 0x1002fef5c\nlea     r15, [rbp+var_30]                                              ; +0x52, 0x1002fef62\nmov     rdi, r15                                                       ; +0x56, 0x1002fef66\nmov     rsi, rax                                                       ; +0x59, 0x1002fef69\ncall    sub_10028CC60                                                  ; +0x5c, 0x1002fef6c\nmov     r12, [rbx+240h]                                                ; +0x61, 0x1002fef71\nmovss   xmm1, [rbp+var_2C]                                             ; +0x68, 0x1002fef78\nlea     r13, [rbp+var_38]                                              ; +0x6d, 0x1002fef7d\nmovss   xmm0, cs:dword_10081687C                                       ; +0x71, 0x1002fef81\nmov     rdi, r13                                                       ; +0x79, 0x1002fef89\ncall    sub_10028CBE0                                                  ; +0x7c, 0x1002fef8c\nmov     rax, [r12]                                                     ; +0x81, 0x1002fef91\nmov     rdi, r12                                                       ; +0x85, 0x1002fef95\nmov     rsi, r13                                                       ; +0x88, 0x1002fef98\ncall    qword ptr [rax+0B8h]                                           ; +0x8b, 0x1002fef9b\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x91, 0x1002fefa1\nmov     rdi, r15                                                       ; +0x99, 0x1002fefa9\ncall    cocos2d__CCMoveTo__create                                      ; +0x9c, 0x1002fefac\nmovss   xmm0, cs:dword_100814FB0                                       ; +0xa1, 0x1002fefb1\nmov     rdi, rax                                                       ; +0xa9, 0x1002fefb9\ncall    cocos2d__CCEaseElasticOut__create                              ; +0xac, 0x1002fefbc\nmov     rdi, [rbx+240h]                                                ; +0xb1, 0x1002fefc1\nmov     rsi, rax                                                       ; +0xb8, 0x1002fefc8\ncall    cocos2d__CCNode__runAction                                     ; +0xbb, 0x1002fefcb\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xc0, 0x1002fefd0\nmov     r15, [rbx+230h]                                                ; +0xc5, 0x1002fefd5\ntest    r15, r15                                                       ; +0xcc, 0x1002fefdc\njz      short loc_1002FF053                                            ; +0xcf, 0x1002fefdf\nmov     edx, [rbx+248h]                                                ; +0xd1, 0x1002fefe1\ntest    edx, edx                                                       ; +0xd7, 0x1002fefe7\njnz     short loc_1002FEFFA                                            ; +0xd9, 0x1002fefe9\nmov     dword ptr [rbx+248h], 69h ; 'i'                                ; +0xdb, 0x1002fefeb\nmov     edx, 69h ; 'i'                                                 ; +0xe5, 0x1002feff5\nmov     rax, [r15]                                                     ; +0xea, 0x1002feffa\nmov     rdi, r15                                                       ; +0xed, 0x1002feffd\nmov     rsi, rbx                                                       ; +0xf0, 0x1002ff000\ncall    qword ptr [rax+1C0h]                                           ; +0xf3, 0x1002ff003\nmov     rax, [rbx]                                                     ; +0xf9, 0x1002ff009\nmov     rdi, rbx                                                       ; +0xfc, 0x1002ff00c\nxor     esi, esi                                                       ; +0xff, 0x1002ff00f\ncall    qword ptr [rax+480h]                                           ; +0x101, 0x1002ff011\nmovzx   edi, r14b                                                      ; +0x107, 0x1002ff017\nmovss   xmm0, cs:dword_100817A50                                       ; +0x10b, 0x1002ff01b\ncall    cocos2d__CCFadeTo__create                                      ; +0x113, 0x1002ff023\nmov     rdi, rbx                                                       ; +0x118, 0x1002ff028\nmov     rsi, rax                                                       ; +0x11b, 0x1002ff02b\ncall    cocos2d__CCNode__runAction                                     ; +0x11e, 0x1002ff02e\nmov     rax, [rbx]                                                     ; +0x123, 0x1002ff033\nmov     rdi, rbx                                                       ; +0x126, 0x1002ff036\nmov     esi, 1                                                         ; +0x129, 0x1002ff039\ncall    qword ptr [rax+148h]                                           ; +0x12e, 0x1002ff03e\nadd     rsp, 18h                                                       ; +0x134, 0x1002ff044\npop     rbx                                                            ; +0x138, 0x1002ff048\npop     r12                                                            ; +0x139, 0x1002ff049\npop     r13                                                            ; +0x13b, 0x1002ff04b\npop     r14                                                            ; +0x13d, 0x1002ff04d\npop     r15                                                            ; +0x13f, 0x1002ff04f\npop     rbp                                                            ; +0x141, 0x1002ff051\nretn                                                                   ; +0x142, 0x1002ff052\nmov     r15, [rax+108h]                                                ; +0x143, 0x1002ff053\nmov     rdi, r15                                                       ; +0x14a, 0x1002ff05a\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x14d, 0x1002ff05d\nmov     edx, 69h ; 'i'                                                 ; +0x152, 0x1002ff062\ncmp     eax, 69h ; 'i'                                                 ; +0x157, 0x1002ff067\njl      short loc_1002FF078                                            ; +0x15a, 0x1002ff06a\nmov     rdi, r15                                                       ; +0x15c, 0x1002ff06c\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x15f, 0x1002ff06f\nmov     edx, eax                                                       ; +0x164, 0x1002ff074\ninc     edx                                                            ; +0x166, 0x1002ff076\nmov     [rbx+248h], edx                                                ; +0x168, 0x1002ff078\ntest    edx, edx                                                       ; +0x16e, 0x1002ff07e\njnz     loc_1002FEFFA                                                  ; +0x170, 0x1002ff080\njmp     loc_1002FEFEB                                                  ; +0x176, 0x1002ff086", "xrefs": ["<???> @ 0x10090a6b0"], "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"}