{"type": "func", "start": 4297753216, "end": 4297753622, "name": "GJWriteMessagePopup::create", "pseudocode": "// \n// GJWriteMessagePopup::create from 0x1002a8280 to 0x1002a8416 (406 bytes)\n// \n// 3 xrefs:\n// > GJUserCell::onSendMessage @ 0x1002567fc\n// > GJMessagePopup::onReply @ 0x1002a7e53\n// > ProfilePage::onSendMessage @ 0x1007bda47\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\nGJWriteMessagePopup *__fastcall GJWriteMessagePopup::create(int a1, int a2)\n{\n  char *v2; // rbx\n\n  v2 = (char *)operator new(0x308u);\n  cocos2d::CCLayerColor::CCLayerColor(v2);\n  *((_QWORD *)v2 + 72) = 0;\n  *((_DWORD *)v2 + 146) = 0;\n  v2[588] = 0;\n  *((_OWORD *)v2 + 34) = 0;\n  *(_OWORD *)(v2 + 553) = 0;\n  *((_OWORD *)v2 + 37) = 0;\n  *((_QWORD *)v2 + 76) = 0;\n  *((_DWORD *)v2 + 154) = -1;\n  *((_WORD *)v2 + 310) = 0;\n  *((_DWORD *)v2 + 156) = -1;\n  v2[628] = 0;\n  *(_QWORD *)v2 = off_1008FB140;\n  *((_QWORD *)v2 + 40) = off_1008FB6A8;\n  *((_QWORD *)v2 + 41) = &off_1008FB718;\n  *((_QWORD *)v2 + 42) = off_1008FB730;\n  *((_QWORD *)v2 + 43) = off_1008FB750;\n  *((_QWORD *)v2 + 44) = off_1008FB770;\n  *((_QWORD *)v2 + 51) = off_1008FB798;\n  *((_QWORD *)v2 + 54) = off_1008FB818;\n  *((_QWORD *)v2 + 79) = off_1008FB838;\n  *((_QWORD *)v2 + 80) = off_1008FB880;\n  *((_QWORD *)v2 + 81) = &off_1008FB8A0;\n  *((_QWORD *)v2 + 82) = &off_1008FB8B8;\n  *(_QWORD *)(v2 + 668) = 0;\n  *(_OWORD *)(v2 + 753) = 0;\n  *(_OWORD *)(v2 + 744) = 0;\n  *(_OWORD *)(v2 + 728) = 0;\n  *(_OWORD *)(v2 + 712) = 0;\n  *(_OWORD *)(v2 + 696) = 0;\n  *(_OWORD *)(v2 + 680) = 0;\n  if ( GJWriteMessagePopup::init((GJWriteMessagePopup *)v2, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (GJWriteMessagePopup *)v2;\n}", "assembly": "; \n; GJWriteMessagePopup::create from 0x1002a8280 to 0x1002a8416 (406 bytes)\n; \n; 3 xrefs:\n; > GJUserCell::onSendMessage @ 0x1002567fc\n; > GJMessagePopup::onReply @ 0x1002a7e53\n; > ProfilePage::onSendMessage @ 0x1007bda47\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, 0x1002a8280\nmov     rbp, rsp                                                       ; +0x1, 0x1002a8281\npush    r15                                                            ; +0x4, 0x1002a8284\npush    r14                                                            ; +0x6, 0x1002a8286\npush    rbx                                                            ; +0x8, 0x1002a8288\npush    rax                                                            ; +0x9, 0x1002a8289\nmov     r14d, esi                                                      ; +0xa, 0x1002a828a\nmov     r15d, edi                                                      ; +0xd, 0x1002a828d\nmov     edi, 308h; __sz                                                ; +0x10, 0x1002a8290\ncall    __Znwm; operator new(ulong)                                    ; +0x15, 0x1002a8295\nmov     rbx, rax                                                       ; +0x1a, 0x1002a829a\nmov     rdi, rax                                                       ; +0x1d, 0x1002a829d\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x20, 0x1002a82a0\nmov     qword ptr [rbx+240h], 0                                        ; +0x25, 0x1002a82a5\nmov     dword ptr [rbx+248h], 0                                        ; +0x30, 0x1002a82b0\nmov     byte ptr [rbx+24Ch], 0                                         ; +0x3a, 0x1002a82ba\nxorps   xmm0, xmm0                                                     ; +0x41, 0x1002a82c1\nmovups  xmmword ptr [rbx+220h], xmm0                                   ; +0x44, 0x1002a82c4\nmovups  xmmword ptr [rbx+229h], xmm0                                   ; +0x4b, 0x1002a82cb\nmovups  xmmword ptr [rbx+250h], xmm0                                   ; +0x52, 0x1002a82d2\nmov     qword ptr [rbx+260h], 0                                        ; +0x59, 0x1002a82d9\nmov     dword ptr [rbx+268h], 0FFFFFFFFh                               ; +0x64, 0x1002a82e4\nmov     word ptr [rbx+26Ch], 0                                         ; +0x6e, 0x1002a82ee\nmov     dword ptr [rbx+270h], 0FFFFFFFFh                               ; +0x77, 0x1002a82f7\nmov     byte ptr [rbx+274h], 0                                         ; +0x81, 0x1002a8301\nlea     rax, off_1008FB140                                             ; +0x88, 0x1002a8308\nmov     [rbx], rax                                                     ; +0x8f, 0x1002a830f\nlea     rax, off_1008FB6A8                                             ; +0x92, 0x1002a8312\nmov     [rbx+140h], rax                                                ; +0x99, 0x1002a8319\nlea     rax, off_1008FB718                                             ; +0xa0, 0x1002a8320\nmov     [rbx+148h], rax                                                ; +0xa7, 0x1002a8327\nlea     rax, off_1008FB730                                             ; +0xae, 0x1002a832e\nmov     [rbx+150h], rax                                                ; +0xb5, 0x1002a8335\nlea     rax, off_1008FB750                                             ; +0xbc, 0x1002a833c\nmov     [rbx+158h], rax                                                ; +0xc3, 0x1002a8343\nlea     rax, off_1008FB770                                             ; +0xca, 0x1002a834a\nmov     [rbx+160h], rax                                                ; +0xd1, 0x1002a8351\nlea     rax, off_1008FB798                                             ; +0xd8, 0x1002a8358\nmov     [rbx+198h], rax                                                ; +0xdf, 0x1002a835f\nlea     rax, off_1008FB818                                             ; +0xe6, 0x1002a8366\nmov     [rbx+1B0h], rax                                                ; +0xed, 0x1002a836d\nlea     rax, off_1008FB838                                             ; +0xf4, 0x1002a8374\nmov     [rbx+278h], rax                                                ; +0xfb, 0x1002a837b\nlea     rax, off_1008FB880                                             ; +0x102, 0x1002a8382\nmov     [rbx+280h], rax                                                ; +0x109, 0x1002a8389\nlea     rax, off_1008FB8A0                                             ; +0x110, 0x1002a8390\nmov     [rbx+288h], rax                                                ; +0x117, 0x1002a8397\nlea     rax, off_1008FB8B8                                             ; +0x11e, 0x1002a839e\nmov     [rbx+290h], rax                                                ; +0x125, 0x1002a83a5\nmov     qword ptr [rbx+29Ch], 0                                        ; +0x12c, 0x1002a83ac\nmovups  xmmword ptr [rbx+2F1h], xmm0                                   ; +0x137, 0x1002a83b7\nmovups  xmmword ptr [rbx+2E8h], xmm0                                   ; +0x13e, 0x1002a83be\nmovups  xmmword ptr [rbx+2D8h], xmm0                                   ; +0x145, 0x1002a83c5\nmovups  xmmword ptr [rbx+2C8h], xmm0                                   ; +0x14c, 0x1002a83cc\nmovups  xmmword ptr [rbx+2B8h], xmm0                                   ; +0x153, 0x1002a83d3\nmovups  xmmword ptr [rbx+2A8h], xmm0                                   ; +0x15a, 0x1002a83da\nmov     rdi, rbx                                                       ; +0x161, 0x1002a83e1\nmov     esi, r15d                                                      ; +0x164, 0x1002a83e4\nmov     edx, r14d                                                      ; +0x167, 0x1002a83e7\ncall    GJWriteMessagePopup__init                                      ; +0x16a, 0x1002a83ea\ntest    al, al                                                         ; +0x16f, 0x1002a83ef\njz      short loc_1002A83FD                                            ; +0x171, 0x1002a83f1\nmov     rdi, rbx                                                       ; +0x173, 0x1002a83f3\ncall    cocos2d__CCObject__autorelease                                 ; +0x176, 0x1002a83f6\njmp     short loc_1002A8408                                            ; +0x17b, 0x1002a83fb\nmov     rax, [rbx]                                                     ; +0x17d, 0x1002a83fd\nmov     rdi, rbx                                                       ; +0x180, 0x1002a8400\ncall    qword ptr [rax+10h]                                            ; +0x183, 0x1002a8403\nxor     ebx, ebx                                                       ; +0x186, 0x1002a8406\nmov     rax, rbx                                                       ; +0x188, 0x1002a8408\nadd     rsp, 8                                                         ; +0x18b, 0x1002a840b\npop     rbx                                                            ; +0x18f, 0x1002a840f\npop     r14                                                            ; +0x190, 0x1002a8410\npop     r15                                                            ; +0x192, 0x1002a8412\npop     rbp                                                            ; +0x194, 0x1002a8414\nretn                                                                   ; +0x195, 0x1002a8415", "xrefs": ["GJUserCell::onSendMessage @ 0x1002567fc", "GJMessagePopup::onReply @ 0x1002a7e53", "ProfilePage::onSendMessage @ 0x1007bda47"], "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"}