{"type": "func", "start": 6443178752, "end": 6443178940, "name": "cocos2d::CCTMXTiledMap::layerNamed", "pseudocode": "// \n// cocos2d::CCTMXTiledMap::layerNamed from 0x1800b1b00 to 0x1800b1bbc (188 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2658\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:22:19 +0000\n// \n\nstruct cocos2d::CCTMXLayer *__fastcall cocos2d::CCTMXTiledMap::layerNamed(cocos2d::CCTMXTiledMap *this, const char *a2)\n{\n  __int64 v2; // rax\n  unsigned int *v4; // rbx\n  __int64 v5; // rax\n  _QWORD *v6; // rbx\n  _QWORD *v7; // rsi\n  __int64 v8; // rax\n  __int64 v9; // rdi\n  const char *v10; // rcx\n\n  v2 = *((_QWORD *)this + 26);\n  if ( v2 )\n  {\n    v4 = *(unsigned int **)(v2 + 56);\n    v5 = *v4;\n    if ( (_DWORD)v5 )\n    {\n      v6 = *((_QWORD **)v4 + 2);\n      v7 = &v6[v5 - 1];\n      if ( v6 <= v7 )\n      {\n        while ( *v6 )\n        {\n          v8 = _RTDynamicCast(\n                 *v6,\n                 0,\n                 &cocos2d::CCObject `RTTI Type Descriptor',\n                 &cocos2d::CCTMXLayer `RTTI Type Descriptor',\n                 0);\n          v9 = v8;\n          if ( v8 )\n          {\n            v10 = (const char *)(v8 + 408);\n            if ( *(_QWORD *)(v8 + 432) > 0xFu )\n              v10 = *(const char **)v10;\n            if ( !strcmp(v10, a2) )\n              return (struct cocos2d::CCTMXLayer *)v9;\n          }\n          if ( ++v6 > v7 )\n            return nullptr;\n        }\n      }\n    }\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTMXTiledMap::layerNamed from 0x1800b1b00 to 0x1800b1bbc (188 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2658\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:22:19 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b1b00\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b1b05\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b1b0a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800b1b0f\npush    r14                                                            ; +0x14, 0x1800b1b14\nsub     rsp, 30h                                                       ; +0x16, 0x1800b1b16\nmov     rax, [rcx+0D0h]                                                ; +0x1a, 0x1800b1b1a\nmov     rbp, rdx                                                       ; +0x21, 0x1800b1b21\ntest    rax, rax                                                       ; +0x24, 0x1800b1b24\njz      short loc_1800B1B9A                                            ; +0x27, 0x1800b1b27\nmov     rbx, [rax+38h]                                                 ; +0x29, 0x1800b1b29\nmov     eax, [rbx]                                                     ; +0x2d, 0x1800b1b2d\ntest    eax, eax                                                       ; +0x2f, 0x1800b1b2f\njz      short loc_1800B1B9A                                            ; +0x31, 0x1800b1b31\nmov     rbx, [rbx+10h]                                                 ; +0x33, 0x1800b1b33\nlea     rsi, [rax-1]                                                   ; +0x37, 0x1800b1b37\nlea     rsi, [rbx+rsi*8]                                               ; +0x3b, 0x1800b1b3b\ncmp     rbx, rsi                                                       ; +0x3f, 0x1800b1b3f\nja      short loc_1800B1B9A                                            ; +0x42, 0x1800b1b42\nxor     r14d, r14d                                                     ; +0x44, 0x1800b1b44\nmov     rcx, [rbx]                                                     ; +0x47, 0x1800b1b47\ntest    rcx, rcx                                                       ; +0x4a, 0x1800b1b4a\njz      short loc_1800B1B9A                                            ; +0x4d, 0x1800b1b4d\nlea     r9, ??_R0?AVCCTMXLayer@cocos2d@@@8; cocos2d::CCTMXLayer `RTTI Type Descriptor' ; +0x4f, 0x1800b1b4f\nmov     [rsp+38h+var_18], r14d                                         ; +0x56, 0x1800b1b56\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x5b, 0x1800b1b5b\nxor     edx, edx                                                       ; +0x62, 0x1800b1b62\ncall    __RTDynamicCast                                                ; +0x64, 0x1800b1b64\nmov     rdi, rax                                                       ; +0x69, 0x1800b1b69\ntest    rax, rax                                                       ; +0x6c, 0x1800b1b6c\njz      short loc_1800B1B91                                            ; +0x6f, 0x1800b1b6f\ncmp     qword ptr [rax+1B0h], 0Fh                                      ; +0x71, 0x1800b1b71\nlea     rcx, [rax+198h]                                                ; +0x79, 0x1800b1b79\njbe     short loc_1800B1B85                                            ; +0x80, 0x1800b1b80\nmov     rcx, [rcx]; Str1                                               ; +0x82, 0x1800b1b82\nmov     rdx, rbp; Str2                                                 ; +0x85, 0x1800b1b85\ncall    strcmp                                                         ; +0x88, 0x1800b1b88\ntest    eax, eax                                                       ; +0x8d, 0x1800b1b8d\njz      short loc_1800B1BB7                                            ; +0x8f, 0x1800b1b8f\nadd     rbx, 8                                                         ; +0x91, 0x1800b1b91\ncmp     rbx, rsi                                                       ; +0x95, 0x1800b1b95\njbe     short loc_1800B1B47                                            ; +0x98, 0x1800b1b98\nxor     eax, eax                                                       ; +0x9a, 0x1800b1b9a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x9c, 0x1800b1b9c\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xa1, 0x1800b1ba1\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xa6, 0x1800b1ba6\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xab, 0x1800b1bab\nadd     rsp, 30h                                                       ; +0xb0, 0x1800b1bb0\npop     r14                                                            ; +0xb4, 0x1800b1bb4\nretn                                                                   ; +0xb6, 0x1800b1bb6\nmov     rax, rdi                                                       ; +0xb7, 0x1800b1bb7\njmp     short loc_1800B1B9C                                            ; +0xba, 0x1800b1bba", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c2658"], "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"}