{"type": "func", "start": 5369574272, "end": 5369574599, "name": "LevelBadgePopup::dLevelBadgePopup", "pseudocode": "// \n// LevelBadgePopup::dLevelBadgePopup from 0x1400d3380 to 0x1400d34c7 (327 bytes)\n// \n// 3 xrefs:\n// > sub_140101B98 @ 0x140101b9f\n// > <???> @ 0x14072c768\n// > <???> @ 0x140914528\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:25 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *__fastcall LevelBadgePopup::dLevelBadgePopup(char *Block, char a2)\n{\n  char *v4; // rdi\n  __int64 v5; // rax\n  void *v6; // rax\n  __int64 v7; // rax\n  cocos2d::CCTouchDispatcher *v8; // rax\n\n  *(_QWORD *)Block = &LevelBadgePopup::`vftable';\n  *((_QWORD *)Block + 40) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)Block + 41) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)Block + 42) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)Block + 43) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)Block + 44) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)Block + 51) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)Block + 54) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)Block + 68) = &LevelBadgePopup::`vftable';\n  v4 = Block + 664;\n  *((_QWORD *)Block + 83) = &LevelBadgePopup::`vftable';\n  v5 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v6 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v6);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v5 = *(_QWORD *)&qword_14090BFB0;\n  }\n  if ( *(char **)(v5 + 1352) == v4 )\n    *(_QWORD *)(v5 + 1352) = 0;\n  v7 = cocos2d::CCDirector::sharedDirector(Block);\n  v8 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 144LL))(v7);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, (struct cocos2d::CCObject *)Block);\n  sub_14003D310((__int64)(Block + 696));\n  FLAlertLayer::dFLAlertLayer((__int64)Block);\n  if ( (a2 & 1) != 0 )\n    j_j_free(Block);\n  return Block;\n}", "assembly": "; \n; LevelBadgePopup::dLevelBadgePopup from 0x1400d3380 to 0x1400d34c7 (327 bytes)\n; \n; 3 xrefs:\n; > sub_140101B98 @ 0x140101b9f\n; > <???> @ 0x14072c768\n; > <???> @ 0x140914528\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:25 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400d3380\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400d3385\npush    rdi                                                            ; +0xa, 0x1400d338a\nsub     rsp, 20h                                                       ; +0xb, 0x1400d338b\nmov     esi, edx                                                       ; +0xf, 0x1400d338f\nmov     rbx, rcx                                                       ; +0x11, 0x1400d3391\nlea     rax, ??_7LevelBadgePopup@@6B@; const LevelBadgePopup::`vftable' ; +0x14, 0x1400d3394\nmov     [rcx], rax                                                     ; +0x1b, 0x1400d339b\nlea     rax, ??_7LevelBadgePopup@@6B@_0; const LevelBadgePopup::`vftable' ; +0x1e, 0x1400d339e\nmov     [rcx+140h], rax                                                ; +0x25, 0x1400d33a5\nlea     rax, ??_7LevelBadgePopup@@6B@_1; const LevelBadgePopup::`vftable' ; +0x2c, 0x1400d33ac\nmov     [rcx+148h], rax                                                ; +0x33, 0x1400d33b3\nlea     rax, ??_7LevelBadgePopup@@6B@_2; const LevelBadgePopup::`vftable' ; +0x3a, 0x1400d33ba\nmov     [rcx+150h], rax                                                ; +0x41, 0x1400d33c1\nlea     rax, ??_7LevelBadgePopup@@6B@_3; const LevelBadgePopup::`vftable' ; +0x48, 0x1400d33c8\nmov     [rcx+158h], rax                                                ; +0x4f, 0x1400d33cf\nlea     rax, ??_7LevelBadgePopup@@6B@_4; const LevelBadgePopup::`vftable' ; +0x56, 0x1400d33d6\nmov     [rcx+160h], rax                                                ; +0x5d, 0x1400d33dd\nlea     rax, ??_7LevelBadgePopup@@6B@_5; const LevelBadgePopup::`vftable' ; +0x64, 0x1400d33e4\nmov     [rcx+198h], rax                                                ; +0x6b, 0x1400d33eb\nlea     rax, ??_7LevelBadgePopup@@6B@_6; const LevelBadgePopup::`vftable' ; +0x72, 0x1400d33f2\nmov     [rcx+1B0h], rax                                                ; +0x79, 0x1400d33f9\nlea     rax, ??_7LevelBadgePopup@@6B@_7; const LevelBadgePopup::`vftable' ; +0x80, 0x1400d3400\nmov     [rcx+220h], rax                                                ; +0x87, 0x1400d3407\nlea     rdi, [rcx+298h]                                                ; +0x8e, 0x1400d340e\nlea     rax, ??_7LevelBadgePopup@@6B@_8; const LevelBadgePopup::`vftable' ; +0x95, 0x1400d3415\nmov     [rdi], rax                                                     ; +0x9c, 0x1400d341c\nmov     rax, cs:qword_14090BFB0                                        ; +0x9f, 0x1400d341f\ntest    rax, rax                                                       ; +0xa6, 0x1400d3426\njnz     short loc_1400D3457                                            ; +0xa9, 0x1400d3429\nmov     ecx, 690h; Size                                                ; +0xab, 0x1400d342b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb0, 0x1400d3430\nmov     rcx, rax                                                       ; +0xb5, 0x1400d3435\ncall    GameLevelManager__GameLevelManager                             ; +0xb8, 0x1400d3438\nmov     cs:qword_14090BFB0, rax                                        ; +0xbd, 0x1400d343d\nmov     rcx, [rax]                                                     ; +0xc4, 0x1400d3444\nmov     rdx, [rcx+48h]                                                 ; +0xc7, 0x1400d3447\nmov     rcx, rax                                                       ; +0xcb, 0x1400d344b\ncall    rdx                                                            ; +0xce, 0x1400d344e\nmov     rax, cs:qword_14090BFB0                                        ; +0xd0, 0x1400d3450\ncmp     [rax+548h], rdi                                                ; +0xd7, 0x1400d3457\njnz     short loc_1400D346B                                            ; +0xde, 0x1400d345e\nmov     qword ptr [rax+548h], 0                                        ; +0xe0, 0x1400d3460\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xeb, 0x1400d346b\nmov     rcx, [rax]                                                     ; +0xf1, 0x1400d3471\nmov     rdx, [rcx+90h]                                                 ; +0xf4, 0x1400d3474\nmov     rcx, rax                                                       ; +0xfb, 0x1400d347b\ncall    rdx                                                            ; +0xfe, 0x1400d347e\nmov     rcx, rax                                                       ; +0x100, 0x1400d3480\nmov     rdx, rbx                                                       ; +0x103, 0x1400d3483\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x106, 0x1400d3486\nlea     rcx, [rbx+2B8h]                                                ; +0x10c, 0x1400d348c\ncall    sub_14003D310                                                  ; +0x113, 0x1400d3493\nmov     rcx, rbx                                                       ; +0x118, 0x1400d3498\ncall    FLAlertLayer__dFLAlertLayer; Merged with: FLAlertLayer::~FLAlertLayer, DailyRecallUnlockPopup::~DailyRecallUnlockPopup, DemonInfoPopup::~DemonInfoPopup, EditorSoundsSettingsPopup::~EditorSoundsSettingsPopup, GJPathRewardPopup::~GJPathRewardPopup, GJPromoPopup::~GJPromoPopup, LevelStatsInfoPopup::~LevelStatsInfoPopup, NCSInfoLayer::~NCSInfoLayer, NewgroundsInfoLayer::~NewgroundsInfoLayer, SelectSFXSortLayer::~SelectSFXSortLayer, StarInfoPopup::~StarInfoPopup ; +0x11b, 0x1400d349b\nnop                                                                    ; +0x120, 0x1400d34a0\ntest    sil, 1                                                         ; +0x121, 0x1400d34a1\njz      short loc_1400D34B4                                            ; +0x125, 0x1400d34a5\nmov     edx, 2E0h                                                      ; +0x127, 0x1400d34a7\nmov     rcx, rbx; Block                                                ; +0x12c, 0x1400d34ac\ncall    j_j_free                                                       ; +0x12f, 0x1400d34af\nmov     rax, rbx                                                       ; +0x134, 0x1400d34b4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x137, 0x1400d34b7\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x13c, 0x1400d34bc\nadd     rsp, 20h                                                       ; +0x141, 0x1400d34c1\npop     rdi                                                            ; +0x145, 0x1400d34c5\nretn                                                                   ; +0x146, 0x1400d34c6", "xrefs": ["sub_140101B98 @ 0x140101b9f", "<???> @ 0x14072c768", "<???> @ 0x140914528"], "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"}