{"type": "func", "start": 6443230496, "end": 6443230712, "name": "cocos2d::CCDirector::getClassTypeInfo", "pseudocode": "// \n// cocos2d::CCDirector::getClassTypeInfo from 0x1800be520 to 0x1800be5f8 (216 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x180107370\n// > <???> @ 0x180107480\n// > <???> @ 0x180141de8\n// > <???> @ 0x180141e04\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b9198\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\n__int64 __fastcall cocos2d::CCDirector::getClassTypeInfo(cocos2d::CCDirector *this)\n{\n  __int64 v2; // rax\n  char *v3; // rbx\n  int v4; // edi\n  char *i; // rsi\n  unsigned __int8 v6; // al\n\n  if ( __TSS0__1__getClassTypeInfo_CCDirector_cocos2d__UEAAJXZ_4HA <= *(_DWORD *)(*((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer\n                                                                                  + (unsigned int)TlsIndex)\n                                                                                + 4LL) )\n    return (unsigned int)`cocos2d::CCDirector::getClassTypeInfo'::`2'::id;\n  Init_thread_header(&__TSS0__1__getClassTypeInfo_CCDirector_cocos2d__UEAAJXZ_4HA);\n  if ( __TSS0__1__getClassTypeInfo_CCDirector_cocos2d__UEAAJXZ_4HA != -1 )\n    return (unsigned int)`cocos2d::CCDirector::getClassTypeInfo'::`2'::id;\n  v3 = (char *)_std_type_info_name(&qword_1801A46B8, &unk_1801AC6A0);\n  v2 = -1;\n  do\n    ++v2;\n  while ( v3[v2] );\n  v4 = 0;\n  for ( i = &v3[(unsigned int)v2]; v3 < i; v4 = v6 ^ (16777619 * v4) )\n    v6 = toupper(*v3++);\n  `cocos2d::CCDirector::getClassTypeInfo'::`2'::id = v4;\n  Init_thread_footer(&__TSS0__1__getClassTypeInfo_CCDirector_cocos2d__UEAAJXZ_4HA);\n  return (unsigned int)`cocos2d::CCDirector::getClassTypeInfo'::`2'::id;\n}", "assembly": "; \n; cocos2d::CCDirector::getClassTypeInfo from 0x1800be520 to 0x1800be5f8 (216 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x180107370\n; > <???> @ 0x180107480\n; > <???> @ 0x180141de8\n; > <???> @ 0x180141e04\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b9198\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\nsub     rsp, 28h                                                       ; +0x0, 0x1800be520\nmov     ecx, cs:TlsIndex                                               ; +0x4, 0x1800be524\nmov     rax, gs:58h                                                    ; +0xa, 0x1800be52a\nmov     edx, 4                                                         ; +0x13, 0x1800be533\nmov     rax, [rax+rcx*8]                                               ; +0x18, 0x1800be538\nmov     eax, [rdx+rax]                                                 ; +0x1c, 0x1800be53c\ncmp     cs:?$TSS0@?1??getClassTypeInfo@CCDirector@cocos2d@@UEAAJXZ@4HA, eax ; +0x1f, 0x1800be53f\njg      short loc_1800BE55D                                            ; +0x25, 0x1800be545\nmov     eax, cs:?id@?1??getClassTypeInfo@CCDirector@cocos2d@@UEAAJXZ@4JB; long const `cocos2d::CCDirector::getClassTypeInfo(void)'::`2'::id ; +0x27, 0x1800be547\nadd     rsp, 28h                                                       ; +0x2d, 0x1800be54d\nretn                                                                   ; +0x31, 0x1800be551\ninc     rax                                                            ; +0x32, 0x1800be552\ncmp     byte ptr [rbx+rax], 0                                          ; +0x35, 0x1800be555\njz      short loc_1800BE5A0                                            ; +0x39, 0x1800be559\njmp     short loc_1800BE552                                            ; +0x3b, 0x1800be55b\nlea     rcx, ?$TSS0@?1??getClassTypeInfo@CCDirector@cocos2d@@UEAAJXZ@4HA ; +0x3d, 0x1800be55d\ncall    _Init_thread_header                                            ; +0x44, 0x1800be564\ncmp     cs:?$TSS0@?1??getClassTypeInfo@CCDirector@cocos2d@@UEAAJXZ@4HA, 0FFFFFFFFh ; +0x49, 0x1800be569\njnz     short loc_1800BE547                                            ; +0x50, 0x1800be570\nmov     [rsp+28h+arg_0], rbx                                           ; +0x52, 0x1800be572\nlea     rdx, unk_1801AC6A0                                             ; +0x57, 0x1800be577\nmov     [rsp+28h+arg_8], rsi                                           ; +0x5e, 0x1800be57e\nlea     rcx, qword_1801A46B8                                           ; +0x63, 0x1800be583\nmov     [rsp+28h+var_8], rdi                                           ; +0x6a, 0x1800be58a\ncall    __std_type_info_name                                           ; +0x6f, 0x1800be58f\nmov     rbx, rax                                                       ; +0x74, 0x1800be594\nmov     rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x77, 0x1800be597\njmp     short loc_1800BE552                                            ; +0x7e, 0x1800be59e\nmov     esi, eax                                                       ; +0x80, 0x1800be5a0\nxor     edi, edi                                                       ; +0x82, 0x1800be5a2\nadd     rsi, rbx                                                       ; +0x84, 0x1800be5a4\ncmp     rbx, rsi                                                       ; +0x87, 0x1800be5a7\njnb     short loc_1800BE5CC                                            ; +0x8a, 0x1800be5aa\nnop     dword ptr [rax+00h]                                            ; +0x8c, 0x1800be5ac\nmovsx   ecx, byte ptr [rbx]; C                                         ; +0x90, 0x1800be5b0\ncall    cs:toupper                                                     ; +0x93, 0x1800be5b3\nimul    edi, 1000193h                                                  ; +0x99, 0x1800be5b9\ninc     rbx                                                            ; +0x9f, 0x1800be5bf\nmovzx   edx, al                                                        ; +0xa2, 0x1800be5c2\nxor     edi, edx                                                       ; +0xa5, 0x1800be5c5\ncmp     rbx, rsi                                                       ; +0xa7, 0x1800be5c7\njb      short loc_1800BE5B0                                            ; +0xaa, 0x1800be5ca\nlea     rcx, ?$TSS0@?1??getClassTypeInfo@CCDirector@cocos2d@@UEAAJXZ@4HA ; +0xac, 0x1800be5cc\nmov     cs:?id@?1??getClassTypeInfo@CCDirector@cocos2d@@UEAAJXZ@4JB, edi; long const `cocos2d::CCDirector::getClassTypeInfo(void)'::`2'::id ; +0xb3, 0x1800be5d3\ncall    _Init_thread_footer                                            ; +0xb9, 0x1800be5d9\nmov     rdi, [rsp+28h+var_8]                                           ; +0xbe, 0x1800be5de\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xc3, 0x1800be5e3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc8, 0x1800be5e8\nmov     eax, cs:?id@?1??getClassTypeInfo@CCDirector@cocos2d@@UEAAJXZ@4JB; long const `cocos2d::CCDirector::getClassTypeInfo(void)'::`2'::id ; +0xcd, 0x1800be5ed\nadd     rsp, 28h                                                       ; +0xd3, 0x1800be5f3\nretn                                                                   ; +0xd7, 0x1800be5f7", "xrefs": ["<???> @ 0x180107370", "<???> @ 0x180107480", "<???> @ 0x180141de8", "<???> @ 0x180141e04", "<???> @ 0x1801438a8", "<???> @ 0x1801b9198"], "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"}