{"type": "func", "start": 5369650544, "end": 5369650889, "name": "LevelBadgePopup::create", "pseudocode": "// \n// LevelBadgePopup::create from 0x1400e5d70 to 0x1400e5ec9 (345 bytes)\n// \n// 3 xrefs:\n// > ThreadViewPopup::ccTouchEnded @ 0x1400e4150\n// > ThreadRequestPopup::ccTouchEnded @ 0x1400fffc9\n// > <???> @ 0x140914c9c\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:32 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar *__fastcall LevelBadgePopup::create(unsigned int a1, unsigned __int8 a2)\n{\n  char *v4; // rsi\n\n  v4 = (char *)operator new(0x2E0u);\n  FLAlertLayer::FLAlertLayer((__int64)v4);\n  *(_QWORD *)v4 = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 40) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 41) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 42) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 43) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 44) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 51) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 54) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 68) = &LevelBadgePopup::`vftable';\n  *((_QWORD *)v4 + 83) = &LevelBadgePopup::`vftable';\n  *((_DWORD *)v4 + 168) = 0;\n  v4[676] = 0;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v4 + 680));\n  *(_OWORD *)(v4 + 696) = 0;\n  *((_QWORD *)v4 + 89) = 0;\n  *((_QWORD *)v4 + 90) = 15;\n  v4[696] = 0;\n  *((_QWORD *)v4 + 91) = 0;\n  if ( (unsigned __int8)LevelBadgePopup::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    return v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; LevelBadgePopup::create from 0x1400e5d70 to 0x1400e5ec9 (345 bytes)\n; \n; 3 xrefs:\n; > ThreadViewPopup::ccTouchEnded @ 0x1400e4150\n; > ThreadRequestPopup::ccTouchEnded @ 0x1400fffc9\n; > <???> @ 0x140914c9c\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:32 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400e5d70\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400e5d75\npush    rdi                                                            ; +0xa, 0x1400e5d7a\nsub     rsp, 20h                                                       ; +0xb, 0x1400e5d7b\nmovzx   ebx, dl                                                        ; +0xf, 0x1400e5d7f\nmov     edi, ecx                                                       ; +0x12, 0x1400e5d82\nmov     ecx, 2E0h; Size                                                ; +0x14, 0x1400e5d84\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x1400e5d89\nmov     rsi, rax                                                       ; +0x1e, 0x1400e5d8e\nmov     [rsp+28h+arg_10], rax                                          ; +0x21, 0x1400e5d91\nmov     rcx, rax                                                       ; +0x26, 0x1400e5d96\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x29, 0x1400e5d99\nnop                                                                    ; +0x2e, 0x1400e5d9e\nlea     rax, ??_7LevelBadgePopup@@6B@; const LevelBadgePopup::`vftable' ; +0x2f, 0x1400e5d9f\nmov     [rsi], rax                                                     ; +0x36, 0x1400e5da6\nlea     rax, ??_7LevelBadgePopup@@6B@_0; const LevelBadgePopup::`vftable' ; +0x39, 0x1400e5da9\nmov     [rsi+140h], rax                                                ; +0x40, 0x1400e5db0\nlea     rax, ??_7LevelBadgePopup@@6B@_1; const LevelBadgePopup::`vftable' ; +0x47, 0x1400e5db7\nmov     [rsi+148h], rax                                                ; +0x4e, 0x1400e5dbe\nlea     rax, ??_7LevelBadgePopup@@6B@_2; const LevelBadgePopup::`vftable' ; +0x55, 0x1400e5dc5\nmov     [rsi+150h], rax                                                ; +0x5c, 0x1400e5dcc\nlea     rax, ??_7LevelBadgePopup@@6B@_3; const LevelBadgePopup::`vftable' ; +0x63, 0x1400e5dd3\nmov     [rsi+158h], rax                                                ; +0x6a, 0x1400e5dda\nlea     rax, ??_7LevelBadgePopup@@6B@_4; const LevelBadgePopup::`vftable' ; +0x71, 0x1400e5de1\nmov     [rsi+160h], rax                                                ; +0x78, 0x1400e5de8\nlea     rax, ??_7LevelBadgePopup@@6B@_5; const LevelBadgePopup::`vftable' ; +0x7f, 0x1400e5def\nmov     [rsi+198h], rax                                                ; +0x86, 0x1400e5df6\nlea     rax, ??_7LevelBadgePopup@@6B@_6; const LevelBadgePopup::`vftable' ; +0x8d, 0x1400e5dfd\nmov     [rsi+1B0h], rax                                                ; +0x94, 0x1400e5e04\nlea     rax, ??_7LevelBadgePopup@@6B@_7; const LevelBadgePopup::`vftable' ; +0x9b, 0x1400e5e0b\nmov     [rsi+220h], rax                                                ; +0xa2, 0x1400e5e12\nlea     rax, ??_7LevelBadgePopup@@6B@_8; const LevelBadgePopup::`vftable' ; +0xa9, 0x1400e5e19\nmov     [rsi+298h], rax                                                ; +0xb0, 0x1400e5e20\nmov     dword ptr [rsi+2A0h], 0                                        ; +0xb7, 0x1400e5e27\nmov     byte ptr [rsi+2A4h], 0                                         ; +0xc1, 0x1400e5e31\nlea     rcx, [rsi+2A8h]                                                ; +0xc8, 0x1400e5e38\ncall    cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)   ; +0xcf, 0x1400e5e3f\nxorps   xmm0, xmm0                                                     ; +0xd5, 0x1400e5e45\nmovups  xmmword ptr [rsi+2B8h], xmm0                                   ; +0xd8, 0x1400e5e48\nmov     qword ptr [rsi+2C8h], 0                                        ; +0xdf, 0x1400e5e4f\nmov     qword ptr [rsi+2D0h], 0Fh                                      ; +0xea, 0x1400e5e5a\nmov     byte ptr [rsi+2B8h], 0                                         ; +0xf5, 0x1400e5e65\nmov     qword ptr [rsi+2D8h], 0                                        ; +0xfc, 0x1400e5e6c\nmovzx   r8d, bl                                                        ; +0x107, 0x1400e5e77\nmov     edx, edi                                                       ; +0x10b, 0x1400e5e7b\nmov     rcx, rsi                                                       ; +0x10d, 0x1400e5e7d\ncall    LevelBadgePopup__init                                          ; +0x110, 0x1400e5e80\ntest    al, al                                                         ; +0x115, 0x1400e5e85\njz      short loc_1400E5EA5                                            ; +0x117, 0x1400e5e87\nmov     rcx, rsi                                                       ; +0x119, 0x1400e5e89\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x11c, 0x1400e5e8c\nmov     rax, rsi                                                       ; +0x122, 0x1400e5e92\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x125, 0x1400e5e95\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x12a, 0x1400e5e9a\nadd     rsp, 20h                                                       ; +0x12f, 0x1400e5e9f\npop     rdi                                                            ; +0x133, 0x1400e5ea3\nretn                                                                   ; +0x134, 0x1400e5ea4\nmov     rcx, [rsi]                                                     ; +0x135, 0x1400e5ea5\nmov     r8, [rcx+8]                                                    ; +0x138, 0x1400e5ea8\nmov     edx, 1                                                         ; +0x13c, 0x1400e5eac\nmov     rcx, rsi                                                       ; +0x141, 0x1400e5eb1\ncall    r8                                                             ; +0x144, 0x1400e5eb4\nxor     eax, eax                                                       ; +0x147, 0x1400e5eb7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x149, 0x1400e5eb9\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x14e, 0x1400e5ebe\nadd     rsp, 20h                                                       ; +0x153, 0x1400e5ec3\npop     rdi                                                            ; +0x157, 0x1400e5ec7\nretn                                                                   ; +0x158, 0x1400e5ec8", "xrefs": ["ThreadViewPopup::ccTouchEnded @ 0x1400e4150", "ThreadRequestPopup::ccTouchEnded @ 0x1400fffc9", "<???> @ 0x140914c9c"], "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"}