{"type": "func", "start": 5369653552, "end": 5369653689, "name": "LevelBadgePopup::show", "pseudocode": "// \n// LevelBadgePopup::show from 0x1400e6930 to 0x1400e69b9 (137 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14072cb88\n// > <???> @ 0x140914ce4\n// \n// This function is hookable on this platform (idp: pc, 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 11:26:33 +0000\n// \n\n__int64 __fastcall LevelBadgePopup::show(__int64 a1)\n{\n  cocos2d::CCScene *v2; // rbx\n  int v3; // eax\n\n  v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 272);\n  if ( *(_QWORD *)(a1 + 568) )\n  {\n    v2 = *(cocos2d::CCScene **)(a1 + 568);\n  }\n  else\n  {\n    if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 120 )\n      v3 = cocos2d::CCScene::getHighestChildZ(v2) + 1;\n    else\n      v3 = 120;\n    *(_DWORD *)(a1 + 592) = v3;\n  }\n  if ( !*(_DWORD *)(a1 + 592) )\n    *(_DWORD *)(a1 + 592) = 120;\n  return (*(__int64 (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v2 + 456LL))(v2, a1);\n}", "assembly": "; \n; LevelBadgePopup::show from 0x1400e6930 to 0x1400e69b9 (137 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14072cb88\n; > <???> @ 0x140914ce4\n; \n; This function is hookable on this platform (idp: pc, 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 11:26:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400e6930\npush    rdi                                                            ; +0x5, 0x1400e6935\nsub     rsp, 20h                                                       ; +0x6, 0x1400e6936\nmov     rdi, rcx                                                       ; +0xa, 0x1400e693a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1400e693d\nmov     rbx, [rax+110h]                                                ; +0x13, 0x1400e6943\nmov     rax, [rdi+238h]                                                ; +0x1a, 0x1400e694a\ntest    rax, rax                                                       ; +0x21, 0x1400e6951\njz      short loc_1400E695B                                            ; +0x24, 0x1400e6954\nmov     rbx, rax                                                       ; +0x26, 0x1400e6956\njmp     short loc_1400E6983                                            ; +0x29, 0x1400e6959\nmov     rcx, rbx                                                       ; +0x2b, 0x1400e695b\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x2e, 0x1400e695e\ninc     eax                                                            ; +0x34, 0x1400e6964\ncmp     eax, 78h ; 'x'                                                 ; +0x36, 0x1400e6966\njge     short loc_1400E6972                                            ; +0x39, 0x1400e6969\nmov     eax, 78h ; 'x'                                                 ; +0x3b, 0x1400e696b\njmp     short loc_1400E697D                                            ; +0x40, 0x1400e6970\nmov     rcx, rbx                                                       ; +0x42, 0x1400e6972\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x45, 0x1400e6975\ninc     eax                                                            ; +0x4b, 0x1400e697b\nmov     [rdi+250h], eax                                                ; +0x4d, 0x1400e697d\nmov     r8d, [rdi+250h]                                                ; +0x53, 0x1400e6983\ntest    r8d, r8d                                                       ; +0x5a, 0x1400e698a\njnz     short loc_1400E699F                                            ; +0x5d, 0x1400e698d\nmov     dword ptr [rdi+250h], 78h ; 'x'                                ; +0x5f, 0x1400e698f\nmov     r8d, 78h ; 'x'                                                 ; +0x69, 0x1400e6999\nmov     rax, [rbx]                                                     ; +0x6f, 0x1400e699f\nmov     rdx, rdi                                                       ; +0x72, 0x1400e69a2\nmov     rcx, rbx                                                       ; +0x75, 0x1400e69a5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x78, 0x1400e69a8\nadd     rsp, 20h                                                       ; +0x7d, 0x1400e69ad\npop     rdi                                                            ; +0x81, 0x1400e69b1\njmp     qword ptr [rax+1C8h]                                           ; +0x82, 0x1400e69b2", "xrefs": ["<???> @ 0x14072cb88", "<???> @ 0x140914ce4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}