{"type": "func", "start": 5370139584, "end": 5370139754, "name": "GJMessageCell::onViewMessage", "pseudocode": "// \n// GJMessageCell::onViewMessage from 0x14015d3c0 to 0x14015d46a (170 bytes)\n// \n// 2 xrefs:\n// > GJMessageCell::loadFromMessage @ 0x14015cc82\n// > <???> @ 0x140917ba0\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:27:23 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GJMessageCell::onViewMessage(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rcx\n  struct cocos2d::CCObject *v4; // rax\n  __int64 v5; // rax\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( *(_QWORD *)(a1 + 584) )\n  {\n    GJMessageCell::markAsRead();\n    v2 = *(int *)(*(_QWORD *)(a1 + 584) + 320LL);\n    v3 = *(_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      v3 = *(_QWORD *)&qword_14090BFB0;\n    }\n    v4 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v3 + 1248), v2);\n    if ( !v4 )\n      v4 = *(struct cocos2d::CCObject **)(a1 + 584);\n    v5 = GJMessagePopup::create(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1064LL))(v5);\n  }\n}", "assembly": "; \n; GJMessageCell::onViewMessage from 0x14015d3c0 to 0x14015d46a (170 bytes)\n; \n; 2 xrefs:\n; > GJMessageCell::loadFromMessage @ 0x14015cc82\n; > <???> @ 0x140917ba0\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:27:23 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14015d3c0\npush    rdi                                                            ; +0x5, 0x14015d3c5\nsub     rsp, 20h                                                       ; +0x6, 0x14015d3c6\nmov     rbx, rcx                                                       ; +0xa, 0x14015d3ca\ncmp     qword ptr [rcx+248h], 0                                        ; +0xd, 0x14015d3cd\njz      loc_14015D45F                                                  ; +0x15, 0x14015d3d5\ncall    GJMessageCell__markAsRead                                      ; +0x1b, 0x14015d3db\nmov     rax, [rbx+248h]                                                ; +0x20, 0x14015d3e0\nmovsxd  rdi, dword ptr [rax+140h]                                      ; +0x27, 0x14015d3e7\nmov     rcx, cs:qword_14090BFB0                                        ; +0x2e, 0x14015d3ee\ntest    rcx, rcx                                                       ; +0x35, 0x14015d3f5\njnz     short loc_14015D42C                                            ; +0x38, 0x14015d3f8\nmov     ecx, 690h; Size                                                ; +0x3a, 0x14015d3fa\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3f, 0x14015d3ff\nmov     [rsp+28h+arg_0], rax                                           ; +0x44, 0x14015d404\nmov     rcx, rax                                                       ; +0x49, 0x14015d409\ncall    GameLevelManager__GameLevelManager                             ; +0x4c, 0x14015d40c\nnop                                                                    ; +0x51, 0x14015d411\nmov     cs:qword_14090BFB0, rax                                        ; +0x52, 0x14015d412\nmov     rcx, [rax]                                                     ; +0x59, 0x14015d419\nmov     rdx, [rcx+48h]                                                 ; +0x5c, 0x14015d41c\nmov     rcx, rax                                                       ; +0x60, 0x14015d420\ncall    rdx                                                            ; +0x63, 0x14015d423\nmov     rcx, cs:qword_14090BFB0                                        ; +0x65, 0x14015d425\nmov     rdx, rdi                                                       ; +0x6c, 0x14015d42c\nmov     rcx, [rcx+4E0h]                                                ; +0x6f, 0x14015d42f\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x76, 0x14015d436\ntest    rax, rax                                                       ; +0x7c, 0x14015d43c\njnz     short loc_14015D448                                            ; +0x7f, 0x14015d43f\nmov     rax, [rbx+248h]                                                ; +0x81, 0x14015d441\nmov     rcx, rax                                                       ; +0x88, 0x14015d448\ncall    GJMessagePopup__create                                         ; +0x8b, 0x14015d44b\nmov     rcx, [rax]                                                     ; +0x90, 0x14015d450\nmov     rdx, [rcx+428h]                                                ; +0x93, 0x14015d453\nmov     rcx, rax                                                       ; +0x9a, 0x14015d45a\ncall    rdx                                                            ; +0x9d, 0x14015d45d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9f, 0x14015d45f\nadd     rsp, 20h                                                       ; +0xa4, 0x14015d464\npop     rdi                                                            ; +0xa8, 0x14015d468\nretn                                                                   ; +0xa9, 0x14015d469", "xrefs": ["GJMessageCell::loadFromMessage @ 0x14015cc82", "<???> @ 0x140917ba0"], "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"}