{"type": "func", "start": 4297812144, "end": 4297812523, "name": "GJPromoPopup::show", "pseudocode": "// \n// GJPromoPopup::show from 0x1002b68b0 to 0x1002b6a2b (379 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100903d50\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 GJPromoPopup::show(GJPromoPopup *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 *)(GJPromoPopup *))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 *, GJPromoPopup *))m_scene->addChild_0)(m_scene, a1);\n  ((void (__fastcall *)(GJPromoPopup *, _QWORD))a1->setOpacity)(a1, 0);\n  v8 = cocos2d::CCFadeTo::create(0.14, v1);\n  cocos2d::CCNode::runAction(a1, v8);\n  ((void (__fastcall *)(GJPromoPopup *, __int64))a1->setVisible)(a1, 1);\n}", "assembly": "; \n; GJPromoPopup::show from 0x1002b68b0 to 0x1002b6a2b (379 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100903d50\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, 0x1002b68b0\nmov     rbp, rsp                                                       ; +0x1, 0x1002b68b1\npush    r15                                                            ; +0x4, 0x1002b68b4\npush    r14                                                            ; +0x6, 0x1002b68b6\npush    r13                                                            ; +0x8, 0x1002b68b8\npush    r12                                                            ; +0xa, 0x1002b68ba\npush    rbx                                                            ; +0xc, 0x1002b68bc\nsub     rsp, 18h                                                       ; +0xd, 0x1002b68bd\nmov     rbx, rdi                                                       ; +0x11, 0x1002b68c1\ncmp     byte ptr [rdi+24Ch], 1                                         ; +0x14, 0x1002b68c4\njnz     short loc_1002B68E3                                            ; +0x1b, 0x1002b68cb\nmov     rdi, rbx                                                       ; +0x1d, 0x1002b68cd\nadd     rsp, 18h                                                       ; +0x20, 0x1002b68d0\npop     rbx                                                            ; +0x24, 0x1002b68d4\npop     r12                                                            ; +0x25, 0x1002b68d5\npop     r13                                                            ; +0x27, 0x1002b68d7\npop     r14                                                            ; +0x29, 0x1002b68d9\npop     r15                                                            ; +0x2b, 0x1002b68db\npop     rbp                                                            ; +0x2d, 0x1002b68dd\njmp     FLAlertLayer__show                                             ; +0x2e, 0x1002b68de\nmov     rax, [rbx]                                                     ; +0x33, 0x1002b68e3\nmov     rdi, rbx                                                       ; +0x36, 0x1002b68e6\ncall    qword ptr [rax+470h]                                           ; +0x39, 0x1002b68e9\nmov     r14d, eax                                                      ; +0x3f, 0x1002b68ef\nmov     rdi, [rbx+240h]                                                ; +0x42, 0x1002b68f2\nmov     rax, [rdi]                                                     ; +0x49, 0x1002b68f9\ncall    qword ptr [rax+0C0h]                                           ; +0x4c, 0x1002b68fc\nlea     r15, [rbp+var_30]                                              ; +0x52, 0x1002b6902\nmov     rdi, r15                                                       ; +0x56, 0x1002b6906\nmov     rsi, rax                                                       ; +0x59, 0x1002b6909\ncall    sub_10028CC60                                                  ; +0x5c, 0x1002b690c\nmov     r12, [rbx+240h]                                                ; +0x61, 0x1002b6911\nmovss   xmm1, [rbp+var_2C]                                             ; +0x68, 0x1002b6918\nlea     r13, [rbp+var_38]                                              ; +0x6d, 0x1002b691d\nmovss   xmm0, cs:dword_10081687C                                       ; +0x71, 0x1002b6921\nmov     rdi, r13                                                       ; +0x79, 0x1002b6929\ncall    sub_10028CBE0                                                  ; +0x7c, 0x1002b692c\nmov     rax, [r12]                                                     ; +0x81, 0x1002b6931\nmov     rdi, r12                                                       ; +0x85, 0x1002b6935\nmov     rsi, r13                                                       ; +0x88, 0x1002b6938\ncall    qword ptr [rax+0B8h]                                           ; +0x8b, 0x1002b693b\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x91, 0x1002b6941\nmov     rdi, r15                                                       ; +0x99, 0x1002b6949\ncall    cocos2d__CCMoveTo__create                                      ; +0x9c, 0x1002b694c\nmovss   xmm0, cs:dword_100814FB0                                       ; +0xa1, 0x1002b6951\nmov     rdi, rax                                                       ; +0xa9, 0x1002b6959\ncall    cocos2d__CCEaseElasticOut__create                              ; +0xac, 0x1002b695c\nmov     rdi, [rbx+240h]                                                ; +0xb1, 0x1002b6961\nmov     rsi, rax                                                       ; +0xb8, 0x1002b6968\ncall    cocos2d__CCNode__runAction                                     ; +0xbb, 0x1002b696b\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xc0, 0x1002b6970\nmov     r15, [rbx+230h]                                                ; +0xc5, 0x1002b6975\ntest    r15, r15                                                       ; +0xcc, 0x1002b697c\njz      short loc_1002B69F3                                            ; +0xcf, 0x1002b697f\nmov     edx, [rbx+248h]                                                ; +0xd1, 0x1002b6981\ntest    edx, edx                                                       ; +0xd7, 0x1002b6987\njnz     short loc_1002B699A                                            ; +0xd9, 0x1002b6989\nmov     dword ptr [rbx+248h], 69h ; 'i'                                ; +0xdb, 0x1002b698b\nmov     edx, 69h ; 'i'                                                 ; +0xe5, 0x1002b6995\nmov     rax, [r15]                                                     ; +0xea, 0x1002b699a\nmov     rdi, r15                                                       ; +0xed, 0x1002b699d\nmov     rsi, rbx                                                       ; +0xf0, 0x1002b69a0\ncall    qword ptr [rax+1C0h]                                           ; +0xf3, 0x1002b69a3\nmov     rax, [rbx]                                                     ; +0xf9, 0x1002b69a9\nmov     rdi, rbx                                                       ; +0xfc, 0x1002b69ac\nxor     esi, esi                                                       ; +0xff, 0x1002b69af\ncall    qword ptr [rax+480h]                                           ; +0x101, 0x1002b69b1\nmovzx   edi, r14b                                                      ; +0x107, 0x1002b69b7\nmovss   xmm0, cs:dword_100817A50                                       ; +0x10b, 0x1002b69bb\ncall    cocos2d__CCFadeTo__create                                      ; +0x113, 0x1002b69c3\nmov     rdi, rbx                                                       ; +0x118, 0x1002b69c8\nmov     rsi, rax                                                       ; +0x11b, 0x1002b69cb\ncall    cocos2d__CCNode__runAction                                     ; +0x11e, 0x1002b69ce\nmov     rax, [rbx]                                                     ; +0x123, 0x1002b69d3\nmov     rdi, rbx                                                       ; +0x126, 0x1002b69d6\nmov     esi, 1                                                         ; +0x129, 0x1002b69d9\ncall    qword ptr [rax+148h]                                           ; +0x12e, 0x1002b69de\nadd     rsp, 18h                                                       ; +0x134, 0x1002b69e4\npop     rbx                                                            ; +0x138, 0x1002b69e8\npop     r12                                                            ; +0x139, 0x1002b69e9\npop     r13                                                            ; +0x13b, 0x1002b69eb\npop     r14                                                            ; +0x13d, 0x1002b69ed\npop     r15                                                            ; +0x13f, 0x1002b69ef\npop     rbp                                                            ; +0x141, 0x1002b69f1\nretn                                                                   ; +0x142, 0x1002b69f2\nmov     r15, [rax+108h]                                                ; +0x143, 0x1002b69f3\nmov     rdi, r15                                                       ; +0x14a, 0x1002b69fa\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x14d, 0x1002b69fd\nmov     edx, 69h ; 'i'                                                 ; +0x152, 0x1002b6a02\ncmp     eax, 69h ; 'i'                                                 ; +0x157, 0x1002b6a07\njl      short loc_1002B6A18                                            ; +0x15a, 0x1002b6a0a\nmov     rdi, r15                                                       ; +0x15c, 0x1002b6a0c\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x15f, 0x1002b6a0f\nmov     edx, eax                                                       ; +0x164, 0x1002b6a14\ninc     edx                                                            ; +0x166, 0x1002b6a16\nmov     [rbx+248h], edx                                                ; +0x168, 0x1002b6a18\ntest    edx, edx                                                       ; +0x16e, 0x1002b6a1e\njnz     loc_1002B699A                                                  ; +0x170, 0x1002b6a20\njmp     loc_1002B698B                                                  ; +0x176, 0x1002b6a26", "xrefs": ["<???> @ 0x100903d50"], "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"}