{"type": "func", "start": 6443166528, "end": 6443166728, "name": "cocos2d::CCTileMapAtlas::loadTGAfile", "pseudocode": "// \n// cocos2d::CCTileMapAtlas::loadTGAfile from 0x1800aeb40 to 0x1800aec08 (200 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTileMapAtlas::initWithTileFile @ 0x1800aea6b\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c231c\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:18 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCTileMapAtlas::loadTGAfile(cocos2d::CCTileMapAtlas *this, const char *a2)\n{\n  struct cocos2d::CCFileUtils *v4; // rax\n  void **v5; // rcx\n  void *v6; // rcx\n  void *Block[3]; // [rsp+30h] [rbp-38h] BYREF\n  unsigned __int64 v8; // [rsp+48h] [rbp-20h]\n\n  v4 = cocos2d::CCFileUtils::sharedFileUtils();\n  (*(void (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))(*(_QWORD *)v4 + 40LL))(\n    v4,\n    Block,\n    a2,\n    0);\n  v5 = Block;\n  if ( v8 > 0xF )\n    v5 = (void **)Block[0];\n  *((_QWORD *)this + 51) = sub_1800A2080((__int64)v5);\n  if ( v8 > 0xF )\n  {\n    v6 = Block[0];\n    if ( v8 + 1 >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v6);\n  }\n}", "assembly": "; \n; cocos2d::CCTileMapAtlas::loadTGAfile from 0x1800aeb40 to 0x1800aec08 (200 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTileMapAtlas::initWithTileFile @ 0x1800aea6b\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c231c\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:18 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1800aeb40\npush    rdi                                                            ; +0x5, 0x1800aeb45\nsub     rsp, 60h                                                       ; +0x6, 0x1800aeb46\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800aeb4a\nxor     rax, rsp                                                       ; +0x11, 0x1800aeb51\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1800aeb54\nmov     rbx, rdx                                                       ; +0x19, 0x1800aeb59\nmov     rdi, rcx                                                       ; +0x1c, 0x1800aeb5c\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x1f, 0x1800aeb5f\nmov     rdx, [rax]                                                     ; +0x24, 0x1800aeb64\nmov     r10, [rdx+28h]                                                 ; +0x27, 0x1800aeb67\nxor     r9d, r9d                                                       ; +0x2b, 0x1800aeb6b\nmov     r8, rbx                                                        ; +0x2e, 0x1800aeb6e\nlea     rdx, [rsp+68h+Block]                                           ; +0x31, 0x1800aeb71\nmov     rcx, rax                                                       ; +0x36, 0x1800aeb76\ncall    r10                                                            ; +0x39, 0x1800aeb79\nnop                                                                    ; +0x3c, 0x1800aeb7c\nlea     rcx, [rsp+68h+Block]                                           ; +0x3d, 0x1800aeb7d\ncmp     [rsp+68h+var_20], 0Fh                                          ; +0x42, 0x1800aeb82\ncmova   rcx, [rsp+68h+Block]                                           ; +0x48, 0x1800aeb88\ncall    sub_1800A2080                                                  ; +0x4e, 0x1800aeb8e\nmov     [rdi+198h], rax                                                ; +0x53, 0x1800aeb93\nmov     rdx, [rsp+68h+var_20]                                          ; +0x5a, 0x1800aeb9a\ncmp     rdx, 0Fh                                                       ; +0x5f, 0x1800aeb9f\njbe     short loc_1800AEBED                                            ; +0x63, 0x1800aeba3\ninc     rdx                                                            ; +0x65, 0x1800aeba5\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x68, 0x1800aeba8\nmov     rax, rcx                                                       ; +0x6d, 0x1800aebad\ncmp     rdx, 1000h                                                     ; +0x70, 0x1800aebb0\njb      short loc_1800AEBE8                                            ; +0x77, 0x1800aebb7\nadd     rdx, 27h ; '''                                                 ; +0x79, 0x1800aebb9\nmov     rcx, [rcx-8]                                                   ; +0x7d, 0x1800aebbd\nsub     rax, rcx                                                       ; +0x81, 0x1800aebc1\nsub     rax, 8                                                         ; +0x84, 0x1800aebc4\ncmp     rax, 1Fh                                                       ; +0x88, 0x1800aebc8\njbe     short loc_1800AEBE8                                            ; +0x8c, 0x1800aebcc\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x8e, 0x1800aebce\nxor     r9d, r9d; LineNo                                               ; +0x97, 0x1800aebd7\nxor     r8d, r8d; FileName                                             ; +0x9a, 0x1800aebda\nxor     edx, edx; FunctionName                                         ; +0x9d, 0x1800aebdd\nxor     ecx, ecx; Expression                                           ; +0x9f, 0x1800aebdf\ncall    cs:_invoke_watson                                              ; +0xa1, 0x1800aebe1\nalign 8                                                                ; +0xa7, 0x1800aebe7\ncall    j_j_free_0                                                     ; +0xa8, 0x1800aebe8\nmov     rcx, [rsp+68h+var_18]                                          ; +0xad, 0x1800aebed\nxor     rcx, rsp; StackCookie                                          ; +0xb2, 0x1800aebf2\ncall    __security_check_cookie                                        ; +0xb5, 0x1800aebf5\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xba, 0x1800aebfa\nadd     rsp, 60h                                                       ; +0xc2, 0x1800aec02\npop     rdi                                                            ; +0xc6, 0x1800aec06\nretn                                                                   ; +0xc7, 0x1800aec07", "xrefs": ["cocos2d::CCTileMapAtlas::initWithTileFile @ 0x1800aea6b", "<???> @ 0x18014cf68", "<???> @ 0x1801c231c"], "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"}