{"type": "func", "start": 4299796912, "end": 4299797333, "name": "FLAlertLayer::create", "pseudocode": "// \n// FLAlertLayer::create from 0x10049b1b0 to 0x10049b355 (421 bytes)\n// \n// 22 xrefs:\n// > MessagesProfilePage::onDeleteSelected @ 0x10022e716\n// > GJUserCell::onCancelFriendRequest @ 0x10025677b\n// > GJUserCell::onRemoveFriend @ 0x1002569ef\n// > GJRequestCell::onDeleteRequest @ 0x10025791b\n// > GJMessageCell::onDeleteMessage @ 0x10025868e\n// > FriendRequestPopup::onBlock @ 0x1002a61c5\n// > GJMessagePopup::onBlock @ 0x1002a809c\n// > GJMessagePopup::onRemove @ 0x1002a8211\n// > GJWriteMessagePopup::onSend @ 0x1002a9dac\n// > GJWriteMessagePopup::onSend @ 0x1002a9e4d\n// > GJWriteMessagePopup::onClearBody @ 0x1002aa107\n// > LevelBrowserLayer::onDeleteSelected @ 0x10048d00d\n// > MPLobbyLayer::onBtn1 @ 0x100493de2\n// > sub_10049B0F0 @ 0x10049b161\n// > FLAlertLayer::create_1 @ 0x10049b3f3\n// > InfoAlertButton::activate @ 0x100575ed6\n// > MusicDownloadManager::showTOS @ 0x1005905d5\n// > FRequestProfilePage::onDeleteSelected @ 0x100790bc6\n// > AudioAssetsBrowser::onInfo @ 0x1007b496f\n// > ProfilePage::onFriend @ 0x1007bdd67\n// > ProfilePage::onFriend @ 0x1007bde14\n// > ProfilePage::onBlockUser @ 0x1007be163\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\nchar *__fastcall FLAlertLayer::create(\n        int a1,\n        int a2,\n        __int128 *a3,\n        int a4,\n        int a5,\n        char a6,\n        float a7,\n        double a8,\n        float a9)\n{\n  char *v11; // rbx\n  double v12; // xmm0_8\n  double v13; // xmm2_8\n  char v14; // r14\n  __int128 v18; // [rsp+20h] [rbp-50h] BYREF\n  void *__p; // [rsp+30h] [rbp-40h]\n  float v20; // [rsp+40h] [rbp-30h]\n  float v21; // [rsp+44h] [rbp-2Ch]\n\n  v20 = a9;\n  v21 = a7;\n  v11 = (char *)operator new(0x278u);\n  cocos2d::CCLayerColor::CCLayerColor(v11);\n  *(_QWORD *)v11 = off_100944EB8;\n  *((_QWORD *)v11 + 40) = off_1009453D8;\n  *((_QWORD *)v11 + 41) = &off_100945448;\n  *((_QWORD *)v11 + 42) = off_100945460;\n  *((_QWORD *)v11 + 43) = off_100945480;\n  *((_QWORD *)v11 + 44) = off_1009454A0;\n  *((_QWORD *)v11 + 51) = off_1009454C8;\n  *((_QWORD *)v11 + 54) = off_100945548;\n  *((_QWORD *)v11 + 72) = 0;\n  *((_DWORD *)v11 + 146) = 0;\n  v11[588] = 0;\n  *((_OWORD *)v11 + 34) = 0;\n  *(_OWORD *)(v11 + 553) = 0;\n  *((_OWORD *)v11 + 37) = 0;\n  *((_QWORD *)v11 + 76) = 0;\n  *((_DWORD *)v11 + 154) = -1;\n  *((_WORD *)v11 + 310) = 0;\n  *((_DWORD *)v11 + 156) = -1;\n  v11[628] = 0;\n  if ( (*(_BYTE *)a3 & 1) != 0 )\n  {\n    sub_100006B70(&v18, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), 0.0);\n  }\n  else\n  {\n    __p = *((void **)a3 + 2);\n    v18 = *a3;\n  }\n  *(_QWORD *)&v12 = LODWORD(v21);\n  *(_QWORD *)&v13 = LODWORD(v20);\n  v14 = FLAlertLayer::init((_DWORD)v11, a1, a2, (unsigned int)&v18, a4, a5, a6);\n  if ( (v18 & 1) != 0 )\n    operator delete(__p);\n  if ( v14 )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, double, double, double))(*(_QWORD *)v11 + 16LL))(v11, v12, a8, v13);\n    return nullptr;\n  }\n  return v11;\n}", "assembly": "; \n; FLAlertLayer::create from 0x10049b1b0 to 0x10049b355 (421 bytes)\n; \n; 22 xrefs:\n; > MessagesProfilePage::onDeleteSelected @ 0x10022e716\n; > GJUserCell::onCancelFriendRequest @ 0x10025677b\n; > GJUserCell::onRemoveFriend @ 0x1002569ef\n; > GJRequestCell::onDeleteRequest @ 0x10025791b\n; > GJMessageCell::onDeleteMessage @ 0x10025868e\n; > FriendRequestPopup::onBlock @ 0x1002a61c5\n; > GJMessagePopup::onBlock @ 0x1002a809c\n; > GJMessagePopup::onRemove @ 0x1002a8211\n; > GJWriteMessagePopup::onSend @ 0x1002a9dac\n; > GJWriteMessagePopup::onSend @ 0x1002a9e4d\n; > GJWriteMessagePopup::onClearBody @ 0x1002aa107\n; > LevelBrowserLayer::onDeleteSelected @ 0x10048d00d\n; > MPLobbyLayer::onBtn1 @ 0x100493de2\n; > sub_10049B0F0 @ 0x10049b161\n; > FLAlertLayer::create_1 @ 0x10049b3f3\n; > InfoAlertButton::activate @ 0x100575ed6\n; > MusicDownloadManager::showTOS @ 0x1005905d5\n; > FRequestProfilePage::onDeleteSelected @ 0x100790bc6\n; > AudioAssetsBrowser::onInfo @ 0x1007b496f\n; > ProfilePage::onFriend @ 0x1007bdd67\n; > ProfilePage::onFriend @ 0x1007bde14\n; > ProfilePage::onBlockUser @ 0x1007be163\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, 0x10049b1b0\nmov     rbp, rsp                                                       ; +0x1, 0x10049b1b1\npush    r15                                                            ; +0x4, 0x10049b1b4\npush    r14                                                            ; +0x6, 0x10049b1b6\npush    r13                                                            ; +0x8, 0x10049b1b8\npush    r12                                                            ; +0xa, 0x10049b1ba\npush    rbx                                                            ; +0xc, 0x10049b1bc\nsub     rsp, 48h                                                       ; +0xd, 0x10049b1bd\nmovss   [rbp+var_30], xmm2                                             ; +0x11, 0x10049b1c1\nmov     r13d, r9d                                                      ; +0x16, 0x10049b1c6\nmovss   [rbp+var_2C], xmm0                                             ; +0x19, 0x10049b1c9\nmov     [rbp+var_60], r8                                               ; +0x1e, 0x10049b1ce\nmov     [rbp+var_58], rcx                                              ; +0x22, 0x10049b1d2\nmov     r15, rdx                                                       ; +0x26, 0x10049b1d6\nmov     r12, rsi                                                       ; +0x29, 0x10049b1d9\nmov     r14, rdi                                                       ; +0x2c, 0x10049b1dc\nmov     edi, 278h; __sz                                                ; +0x2f, 0x10049b1df\ncall    __Znwm; operator new(ulong)                                    ; +0x34, 0x10049b1e4\nmov     rbx, rax                                                       ; +0x39, 0x10049b1e9\nmov     rdi, rax                                                       ; +0x3c, 0x10049b1ec\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x3f, 0x10049b1ef\nlea     rax, off_100944EB8                                             ; +0x44, 0x10049b1f4\nmov     [rbx], rax                                                     ; +0x4b, 0x10049b1fb\nlea     rax, off_1009453D8                                             ; +0x4e, 0x10049b1fe\nmov     [rbx+140h], rax                                                ; +0x55, 0x10049b205\nlea     rax, off_100945448                                             ; +0x5c, 0x10049b20c\nmov     [rbx+148h], rax                                                ; +0x63, 0x10049b213\nlea     rax, off_100945460                                             ; +0x6a, 0x10049b21a\nmov     [rbx+150h], rax                                                ; +0x71, 0x10049b221\nlea     rax, off_100945480                                             ; +0x78, 0x10049b228\nmov     [rbx+158h], rax                                                ; +0x7f, 0x10049b22f\nlea     rax, off_1009454A0                                             ; +0x86, 0x10049b236\nmov     [rbx+160h], rax                                                ; +0x8d, 0x10049b23d\nlea     rax, off_1009454C8                                             ; +0x94, 0x10049b244\nmov     [rbx+198h], rax                                                ; +0x9b, 0x10049b24b\nlea     rax, off_100945548                                             ; +0xa2, 0x10049b252\nmov     [rbx+1B0h], rax                                                ; +0xa9, 0x10049b259\nmov     qword ptr [rbx+240h], 0                                        ; +0xb0, 0x10049b260\nmov     dword ptr [rbx+248h], 0                                        ; +0xbb, 0x10049b26b\nmov     byte ptr [rbx+24Ch], 0                                         ; +0xc5, 0x10049b275\nxorps   xmm0, xmm0                                                     ; +0xcc, 0x10049b27c\nmovups  xmmword ptr [rbx+220h], xmm0                                   ; +0xcf, 0x10049b27f\nmovups  xmmword ptr [rbx+229h], xmm0                                   ; +0xd6, 0x10049b286\nmovups  xmmword ptr [rbx+250h], xmm0                                   ; +0xdd, 0x10049b28d\nmov     qword ptr [rbx+260h], 0                                        ; +0xe4, 0x10049b294\nmov     dword ptr [rbx+268h], 0FFFFFFFFh                               ; +0xef, 0x10049b29f\nmov     word ptr [rbx+26Ch], 0                                         ; +0xf9, 0x10049b2a9\nmov     dword ptr [rbx+270h], 0FFFFFFFFh                               ; +0x102, 0x10049b2b2\nmov     byte ptr [rbx+274h], 0                                         ; +0x10c, 0x10049b2bc\ntest    byte ptr [r15], 1                                              ; +0x113, 0x10049b2c3\njnz     short loc_10049B2DB                                            ; +0x117, 0x10049b2c7\nmov     rax, [r15+10h]                                                 ; +0x119, 0x10049b2c9\nmov     [rbp+__p], rax                                                 ; +0x11d, 0x10049b2cd\nmovups  xmm0, xmmword ptr [r15]                                        ; +0x121, 0x10049b2d1\nmovaps  [rbp+var_50], xmm0                                             ; +0x125, 0x10049b2d5\njmp     short loc_10049B2EC                                            ; +0x129, 0x10049b2d9\nmov     rdx, [r15+8]                                                   ; +0x12b, 0x10049b2db\nmov     rsi, [r15+10h]                                                 ; +0x12f, 0x10049b2df\nlea     rdi, [rbp+var_50]                                              ; +0x133, 0x10049b2e3\ncall    sub_100006B70                                                  ; +0x137, 0x10049b2e7\nmovzx   eax, r13b                                                      ; +0x13c, 0x10049b2ec\nmov     [rsp+70h+var_70], eax                                          ; +0x140, 0x10049b2f0\nlea     rcx, [rbp+var_50]                                              ; +0x143, 0x10049b2f3\nmov     rdi, rbx                                                       ; +0x147, 0x10049b2f7\nmov     rsi, r14                                                       ; +0x14a, 0x10049b2fa\nmov     rdx, r12                                                       ; +0x14d, 0x10049b2fd\nmov     r8, [rbp+var_58]                                               ; +0x150, 0x10049b300\nmov     r9, [rbp+var_60]                                               ; +0x154, 0x10049b304\nmovss   xmm0, [rbp+var_2C]                                             ; +0x158, 0x10049b308\nmovss   xmm2, [rbp+var_30]                                             ; +0x15d, 0x10049b30d\ncall    FLAlertLayer__init                                             ; +0x162, 0x10049b312\nmov     r14d, eax                                                      ; +0x167, 0x10049b317\ntest    byte ptr [rbp+var_50], 1                                       ; +0x16a, 0x10049b31a\njz      short loc_10049B329                                            ; +0x16e, 0x10049b31e\nmov     rdi, [rbp+__p]; __p                                            ; +0x170, 0x10049b320\ncall    __ZdlPv; operator delete(void *)                               ; +0x174, 0x10049b324\ntest    r14b, r14b                                                     ; +0x179, 0x10049b329\njz      short loc_10049B338                                            ; +0x17c, 0x10049b32c\nmov     rdi, rbx                                                       ; +0x17e, 0x10049b32e\ncall    cocos2d__CCObject__autorelease                                 ; +0x181, 0x10049b331\njmp     short loc_10049B343                                            ; +0x186, 0x10049b336\nmov     rax, [rbx]                                                     ; +0x188, 0x10049b338\nmov     rdi, rbx                                                       ; +0x18b, 0x10049b33b\ncall    qword ptr [rax+10h]                                            ; +0x18e, 0x10049b33e\nxor     ebx, ebx                                                       ; +0x191, 0x10049b341\nmov     rax, rbx                                                       ; +0x193, 0x10049b343\nadd     rsp, 48h                                                       ; +0x196, 0x10049b346\npop     rbx                                                            ; +0x19a, 0x10049b34a\npop     r12                                                            ; +0x19b, 0x10049b34b\npop     r13                                                            ; +0x19d, 0x10049b34d\npop     r14                                                            ; +0x19f, 0x10049b34f\npop     r15                                                            ; +0x1a1, 0x10049b351\npop     rbp                                                            ; +0x1a3, 0x10049b353\nretn                                                                   ; +0x1a4, 0x10049b354", "xrefs": ["MessagesProfilePage::onDeleteSelected @ 0x10022e716", "GJUserCell::onCancelFriendRequest @ 0x10025677b", "GJUserCell::onRemoveFriend @ 0x1002569ef", "GJRequestCell::onDeleteRequest @ 0x10025791b", "GJMessageCell::onDeleteMessage @ 0x10025868e", "FriendRequestPopup::onBlock @ 0x1002a61c5", "GJMessagePopup::onBlock @ 0x1002a809c", "GJMessagePopup::onRemove @ 0x1002a8211", "GJWriteMessagePopup::onSend @ 0x1002a9dac", "GJWriteMessagePopup::onSend @ 0x1002a9e4d", "GJWriteMessagePopup::onClearBody @ 0x1002aa107", "LevelBrowserLayer::onDeleteSelected @ 0x10048d00d", "MPLobbyLayer::onBtn1 @ 0x100493de2", "sub_10049B0F0 @ 0x10049b161", "FLAlertLayer::create_1 @ 0x10049b3f3", "InfoAlertButton::activate @ 0x100575ed6", "MusicDownloadManager::showTOS @ 0x1005905d5", "FRequestProfilePage::onDeleteSelected @ 0x100790bc6", "AudioAssetsBrowser::onInfo @ 0x1007b496f", "ProfilePage::onFriend @ 0x1007bdd67", "ProfilePage::onFriend @ 0x1007bde14", "ProfilePage::onBlockUser @ 0x1007be163"], "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"}