{"type": "func", "start": 5372515728, "end": 5372516058, "name": "FriendRequestPopup::create", "pseudocode": "// \n// FriendRequestPopup::create from 0x1403a1590 to 0x1403a16da (330 bytes)\n// \n// 3 xrefs:\n// > GJRequestCell::onViewFriendRequest @ 0x140159274\n// > ProfilePage::onFriend @ 0x1405571e4\n// > <???> @ 0x140923600\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:31:17 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall FriendRequestPopup::create(__int64 a1, unsigned __int8 a2)\n{\n  _QWORD *v4; // rsi\n\n  v4 = operator new(0x2D8u);\n  FLAlertLayer::FLAlertLayer((__int64)v4);\n  *v4 = &FriendRequestPopup::`vftable';\n  v4[40] = &FriendRequestPopup::`vftable';\n  v4[41] = &FriendRequestPopup::`vftable';\n  v4[42] = &FriendRequestPopup::`vftable';\n  v4[43] = &FriendRequestPopup::`vftable';\n  v4[44] = &FriendRequestPopup::`vftable';\n  v4[51] = &FriendRequestPopup::`vftable';\n  v4[54] = &FriendRequestPopup::`vftable';\n  v4[68] = &FriendRequestPopup::`vftable';\n  v4[83] = &FriendRequestPopup::`vftable';\n  v4[84] = &FriendRequestPopup::`vftable';\n  v4[85] = &FriendRequestPopup::`vftable';\n  *((_WORD *)v4 + 344) = 0;\n  v4[87] = 0;\n  v4[88] = 0;\n  v4[89] = 0;\n  v4[90] = 0;\n  if ( (unsigned __int8)FriendRequestPopup::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    return v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; FriendRequestPopup::create from 0x1403a1590 to 0x1403a16da (330 bytes)\n; \n; 3 xrefs:\n; > GJRequestCell::onViewFriendRequest @ 0x140159274\n; > ProfilePage::onFriend @ 0x1405571e4\n; > <???> @ 0x140923600\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:31:17 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403a1590\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403a1595\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1403a159a\npush    rdi                                                            ; +0xf, 0x1403a159f\nsub     rsp, 20h                                                       ; +0x10, 0x1403a15a0\nmovzx   ebx, dl                                                        ; +0x14, 0x1403a15a4\nmov     rdi, rcx                                                       ; +0x17, 0x1403a15a7\nmov     ecx, 2D8h; Size                                                ; +0x1a, 0x1403a15aa\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x1403a15af\nmov     rsi, rax                                                       ; +0x24, 0x1403a15b4\nmov     [rsp+28h+arg_10], rax                                          ; +0x27, 0x1403a15b7\nmov     rcx, rax                                                       ; +0x2c, 0x1403a15bc\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x2f, 0x1403a15bf\nlea     rax, ??_7FriendRequestPopup@@6B@; const FriendRequestPopup::`vftable' ; +0x34, 0x1403a15c4\nmov     [rsi], rax                                                     ; +0x3b, 0x1403a15cb\nlea     rax, ??_7FriendRequestPopup@@6B@_0; const FriendRequestPopup::`vftable' ; +0x3e, 0x1403a15ce\nmov     [rsi+140h], rax                                                ; +0x45, 0x1403a15d5\nlea     rax, ??_7FriendRequestPopup@@6B@_1; const FriendRequestPopup::`vftable' ; +0x4c, 0x1403a15dc\nmov     [rsi+148h], rax                                                ; +0x53, 0x1403a15e3\nlea     rax, ??_7FriendRequestPopup@@6B@_2; const FriendRequestPopup::`vftable' ; +0x5a, 0x1403a15ea\nmov     [rsi+150h], rax                                                ; +0x61, 0x1403a15f1\nlea     rax, ??_7FriendRequestPopup@@6B@_3; const FriendRequestPopup::`vftable' ; +0x68, 0x1403a15f8\nmov     [rsi+158h], rax                                                ; +0x6f, 0x1403a15ff\nlea     rax, ??_7FriendRequestPopup@@6B@_4; const FriendRequestPopup::`vftable' ; +0x76, 0x1403a1606\nmov     [rsi+160h], rax                                                ; +0x7d, 0x1403a160d\nlea     rax, ??_7FriendRequestPopup@@6B@_5; const FriendRequestPopup::`vftable' ; +0x84, 0x1403a1614\nmov     [rsi+198h], rax                                                ; +0x8b, 0x1403a161b\nlea     rax, ??_7FriendRequestPopup@@6B@_6; const FriendRequestPopup::`vftable' ; +0x92, 0x1403a1622\nmov     [rsi+1B0h], rax                                                ; +0x99, 0x1403a1629\nlea     rax, ??_7FriendRequestPopup@@6B@_7; const FriendRequestPopup::`vftable' ; +0xa0, 0x1403a1630\nmov     [rsi+220h], rax                                                ; +0xa7, 0x1403a1637\nlea     rax, ??_7FriendRequestPopup@@6B@_8; const FriendRequestPopup::`vftable' ; +0xae, 0x1403a163e\nmov     [rsi+298h], rax                                                ; +0xb5, 0x1403a1645\nlea     rax, ??_7FriendRequestPopup@@6B@_9; const FriendRequestPopup::`vftable' ; +0xbc, 0x1403a164c\nmov     [rsi+2A0h], rax                                                ; +0xc3, 0x1403a1653\nlea     rax, ??_7FriendRequestPopup@@6B@_10; const FriendRequestPopup::`vftable' ; +0xca, 0x1403a165a\nmov     [rsi+2A8h], rax                                                ; +0xd1, 0x1403a1661\nmov     word ptr [rsi+2B0h], 0                                         ; +0xd8, 0x1403a1668\nxor     ebp, ebp                                                       ; +0xe1, 0x1403a1671\nmov     [rsi+2B8h], rbp                                                ; +0xe3, 0x1403a1673\nmov     [rsi+2C0h], rbp                                                ; +0xea, 0x1403a167a\nmov     [rsi+2C8h], rbp                                                ; +0xf1, 0x1403a1681\nmov     [rsi+2D0h], rbp                                                ; +0xf8, 0x1403a1688\nmovzx   r8d, bl                                                        ; +0xff, 0x1403a168f\nmov     rdx, rdi                                                       ; +0x103, 0x1403a1693\nmov     rcx, rsi                                                       ; +0x106, 0x1403a1696\ncall    FriendRequestPopup__init                                       ; +0x109, 0x1403a1699\ntest    al, al                                                         ; +0x10e, 0x1403a169e\njz      short loc_1403A16B0                                            ; +0x110, 0x1403a16a0\nmov     rcx, rsi                                                       ; +0x112, 0x1403a16a2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x115, 0x1403a16a5\nmov     rax, rsi                                                       ; +0x11b, 0x1403a16ab\njmp     short loc_1403A16C5                                            ; +0x11e, 0x1403a16ae\nmov     rcx, [rsi]                                                     ; +0x120, 0x1403a16b0\nmov     r8, [rcx+8]                                                    ; +0x123, 0x1403a16b3\nmov     edx, 1                                                         ; +0x127, 0x1403a16b7\nmov     rcx, rsi                                                       ; +0x12c, 0x1403a16bc\ncall    r8                                                             ; +0x12f, 0x1403a16bf\nmov     rax, rbp                                                       ; +0x132, 0x1403a16c2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x135, 0x1403a16c5\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x13a, 0x1403a16ca\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x13f, 0x1403a16cf\nadd     rsp, 20h                                                       ; +0x144, 0x1403a16d4\npop     rdi                                                            ; +0x148, 0x1403a16d8\nretn                                                                   ; +0x149, 0x1403a16d9", "xrefs": ["GJRequestCell::onViewFriendRequest @ 0x140159274", "ProfilePage::onFriend @ 0x1405571e4", "<???> @ 0x140923600"], "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"}