{"type": "func", "start": 4297332448, "end": 4297332799, "name": "GJNotificationCell::onViewTarget", "pseudocode": "// \n// GJNotificationCell::onViewTarget from 0x1002416e0 to 0x10024183f (351 bytes)\n// \n// 1 xrefs:\n// > GJNotificationCell::loadFromNotification @ 0x100234ad2\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 12:27:18 +0000\n// \n\n__int64 __fastcall GJNotificationCell::onViewTarget(__int64 a1)\n{\n  __int64 result; // rax\n  int v2; // esi\n  __int64 v3; // rax\n  __int64 v5; // rax\n  const char *CString; // r14\n  size_t v7; // rax\n  size_t v8; // rbx\n  char *v9; // r15\n  size_t v10; // r12\n  void *v11; // rdi\n  __int64 v12; // rbx\n  __int64 v13; // r14\n  __int64 v14; // rax\n  char *v15; // rax\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  result = *(_QWORD *)(a1 + 560);\n  if ( !result )\n    return result;\n  v2 = *(_DWORD *)(result + 168);\n  if ( v2 <= 0 )\n    return result;\n  if ( *(_DWORD *)(result + 164) == 3 )\n  {\n    v3 = ProfilePage::create((unsigned int)v2, 0);\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  }\n  v5 = sub_10088E820(\"%i\", __dst[0]);\n  CString = (const char *)cocos2d::CCString::getCString(v5);\n  v7 = strlen(CString);\n  if ( v7 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v8 = v7;\n  if ( v7 >= 0x17 )\n  {\n    v10 = 26;\n    if ( (v7 | 7) != 0x17 )\n      v10 = (v7 | 7) + 1;\n    v9 = (char *)operator new(v10);\n    __p = v9;\n    __dst[0] = v10 + 1;\n    __dst[1] = v8;\n  }\n  else\n  {\n    LOBYTE(__dst[0]) = 2 * v7;\n    v9 = (char *)__dst + 1;\n    if ( !v7 )\n      goto LABEL_13;\n  }\n  memmove(v9, CString, v8);\nLABEL_13:\n  v9[v8] = 0;\n  v11 = nullptr;\n  v12 = GJSearchObject::create_1(0, __dst);\n  if ( (__dst[0] & 1) != 0 )\n  {\n    v11 = __p;\n    operator delete(__p);\n  }\n  if ( *(_DWORD *)(*(_QWORD *)(a1 + 560) + 164LL) == 2 )\n    *(_DWORD *)(v12 + 432) = 1;\n  v13 = cocos2d::CCDirector::sharedDirector(v11, __dst);\n  v14 = LevelBrowserLayer::scene(v12);\n  v15 = cocos2d::CCTransitionFade::create_1(v14, 0.5);\n  return cocos2d::CCDirector::pushScene(v13, v15);\n}", "assembly": "; \n; GJNotificationCell::onViewTarget from 0x1002416e0 to 0x10024183f (351 bytes)\n; \n; 1 xrefs:\n; > GJNotificationCell::loadFromNotification @ 0x100234ad2\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 12:27:18 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002416e0\nmov     rbp, rsp                                                       ; +0x1, 0x1002416e1\npush    r15                                                            ; +0x4, 0x1002416e4\npush    r14                                                            ; +0x6, 0x1002416e6\npush    r13                                                            ; +0x8, 0x1002416e8\npush    r12                                                            ; +0xa, 0x1002416ea\npush    rbx                                                            ; +0xc, 0x1002416ec\nsub     rsp, 18h                                                       ; +0xd, 0x1002416ed\nmov     rax, [rdi+230h]                                                ; +0x11, 0x1002416f1\ntest    rax, rax                                                       ; +0x18, 0x1002416f8\njz      loc_10024182B                                                  ; +0x1b, 0x1002416fb\nmov     esi, [rax+0A8h]                                                ; +0x21, 0x100241701\ntest    esi, esi                                                       ; +0x27, 0x100241707\njle     loc_10024182B                                                  ; +0x29, 0x100241709\ncmp     dword ptr [rax+0A4h], 3                                        ; +0x2f, 0x10024170f\njnz     short loc_10024173B                                            ; +0x36, 0x100241716\nmov     edi, esi                                                       ; +0x38, 0x100241718\nxor     esi, esi                                                       ; +0x3a, 0x10024171a\ncall    ProfilePage__create                                            ; +0x3c, 0x10024171c\nmov     rcx, [rax]                                                     ; +0x41, 0x100241721\nmov     rdi, rax                                                       ; +0x44, 0x100241724\nadd     rsp, 18h                                                       ; +0x47, 0x100241727\npop     rbx                                                            ; +0x4b, 0x10024172b\npop     r12                                                            ; +0x4c, 0x10024172c\npop     r13                                                            ; +0x4e, 0x10024172e\npop     r14                                                            ; +0x50, 0x100241730\npop     r15                                                            ; +0x52, 0x100241732\npop     rbp                                                            ; +0x54, 0x100241734\njmp     qword ptr [rcx+520h]                                           ; +0x55, 0x100241735\nmov     r13, rdi                                                       ; +0x5b, 0x10024173b\nlea     rdi, aI_14; \"%i\"                                               ; +0x5e, 0x10024173e\nxor     eax, eax                                                       ; +0x65, 0x100241745\ncall    sub_10088E820                                                  ; +0x67, 0x100241747\nmov     rdi, rax                                                       ; +0x6c, 0x10024174c\ncall    cocos2d__CCString__getCString                                  ; +0x6f, 0x10024174f\nmov     r14, rax                                                       ; +0x74, 0x100241754\nmov     rdi, rax; __s                                                  ; +0x77, 0x100241757\ncall    _strlen                                                        ; +0x7a, 0x10024175a\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x7f, 0x10024175f\njnb     loc_10024183A                                                  ; +0x83, 0x100241763\nmov     rbx, rax                                                       ; +0x89, 0x100241769\ncmp     rax, 17h                                                       ; +0x8c, 0x10024176c\njnb     short loc_100241783                                            ; +0x90, 0x100241770\nlea     eax, [rbx+rbx]                                                 ; +0x92, 0x100241772\nmov     byte ptr [rbp+__dst], al                                       ; +0x95, 0x100241775\nlea     r15, [rbp+__dst+1]                                             ; +0x98, 0x100241778\ntest    rbx, rbx                                                       ; +0x9c, 0x10024177c\njnz     short loc_1002417B6                                            ; +0x9f, 0x10024177f\njmp     short loc_1002417C4                                            ; +0xa1, 0x100241781\nmov     rax, rbx                                                       ; +0xa3, 0x100241783\nor      rax, 7                                                         ; +0xa6, 0x100241786\nlea     rcx, [rax+1]                                                   ; +0xaa, 0x10024178a\ncmp     rax, 17h                                                       ; +0xae, 0x10024178e\nmov     r12d, 1Ah                                                      ; +0xb2, 0x100241792\ncmovnz  r12, rcx                                                       ; +0xb8, 0x100241798\nmov     rdi, r12; __sz                                                 ; +0xbc, 0x10024179c\ncall    __Znwm; operator new(ulong)                                    ; +0xbf, 0x10024179f\nmov     r15, rax                                                       ; +0xc4, 0x1002417a4\nmov     [rbp+__p], rax                                                 ; +0xc7, 0x1002417a7\ninc     r12                                                            ; +0xcb, 0x1002417ab\nmov     [rbp+__dst], r12                                               ; +0xce, 0x1002417ae\nmov     [rbp+var_38], rbx                                              ; +0xd2, 0x1002417b2\nmov     rdi, r15; __dst                                                ; +0xd6, 0x1002417b6\nmov     rsi, r14; __src                                                ; +0xd9, 0x1002417b9\nmov     rdx, rbx; __len                                                ; +0xdc, 0x1002417bc\ncall    _memmove                                                       ; +0xdf, 0x1002417bf\nmov     byte ptr [r15+rbx], 0                                          ; +0xe4, 0x1002417c4\nlea     rsi, [rbp+__dst]                                               ; +0xe9, 0x1002417c9\nxor     edi, edi                                                       ; +0xed, 0x1002417cd\ncall    GJSearchObject__create_1                                       ; +0xef, 0x1002417cf\nmov     rbx, rax                                                       ; +0xf4, 0x1002417d4\ntest    byte ptr [rbp+__dst], 1                                        ; +0xf7, 0x1002417d7\njz      short loc_1002417E6                                            ; +0xfb, 0x1002417db\nmov     rdi, [rbp+__p]; __p                                            ; +0xfd, 0x1002417dd\ncall    __ZdlPv; operator delete(void *)                               ; +0x101, 0x1002417e1\nmov     rax, [r13+230h]                                                ; +0x106, 0x1002417e6\ncmp     dword ptr [rax+0A4h], 2                                        ; +0x10d, 0x1002417ed\njnz     short loc_100241800                                            ; +0x114, 0x1002417f4\nmov     dword ptr [rbx+1B0h], 1                                        ; +0x116, 0x1002417f6\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x120, 0x100241800\nmov     r14, rax                                                       ; +0x125, 0x100241805\nmov     rdi, rbx                                                       ; +0x128, 0x100241808\ncall    LevelBrowserLayer__scene                                       ; +0x12b, 0x10024180b\nmovss   xmm0, cs:dword_100A03578                                       ; +0x130, 0x100241810\nmov     rdi, rax                                                       ; +0x138, 0x100241818\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x13b, 0x10024181b\nmov     rdi, r14                                                       ; +0x140, 0x100241820\nmov     rsi, rax                                                       ; +0x143, 0x100241823\ncall    cocos2d__CCDirector__pushScene                                 ; +0x146, 0x100241826\nadd     rsp, 18h                                                       ; +0x14b, 0x10024182b\npop     rbx                                                            ; +0x14f, 0x10024182f\npop     r12                                                            ; +0x150, 0x100241830\npop     r13                                                            ; +0x152, 0x100241832\npop     r14                                                            ; +0x154, 0x100241834\npop     r15                                                            ; +0x156, 0x100241836\npop     rbp                                                            ; +0x158, 0x100241838\nretn                                                                   ; +0x159, 0x100241839\ncall    sub_100003630                                                  ; +0x15a, 0x10024183a", "xrefs": ["GJNotificationCell::loadFromNotification @ 0x100234ad2"], "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"}