{"type": "func", "start": 6443166288, "end": 6443166519, "name": "cocos2d::CCTileMapAtlas::initWithTileFile", "pseudocode": "// \n// cocos2d::CCTileMapAtlas::initWithTileFile from 0x1800aea50 to 0x1800aeb37 (231 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTileMapAtlas::create @ 0x1800ae9d6\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2310\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\nchar __fastcall cocos2d::CCTileMapAtlas::initWithTileFile(\n        cocos2d::CCTileMapAtlas *this,\n        const char *a2,\n        const char *a3,\n        int a4,\n        unsigned int a5)\n{\n  cocos2d::CCDictionary *v8; // rax\n  __int64 v9; // rbx\n  float *v10; // rax\n  cocos2d::CCDictionary *v12; // [rsp+40h] [rbp+8h] BYREF\n\n  cocos2d::CCTileMapAtlas::loadTGAfile(this, a3);\n  cocos2d::CCTileMapAtlas::calculateItemsToRender(this);\n  if ( !cocos2d::CCAtlasNode::initWithTileFile(this, a2, a4, a5, *((_DWORD *)this + 106)) )\n    return 0;\n  v8 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);\n  v12 = v8;\n  if ( v8 )\n    v8 = cocos2d::CCDictionary::CCDictionary(v8);\n  *((_QWORD *)this + 52) = v8;\n  (*(void (__fastcall **)(cocos2d::CCTileMapAtlas *))(*(_QWORD *)this + 920LL))(this);\n  v9 = *(_QWORD *)this;\n  v10 = kmVec2Fill(\n          (float *)&v12,\n          (float)(*((_DWORD *)this + 90) * *(__int16 *)(*((_QWORD *)this + 51) + 6LL)),\n          (float)(*((_DWORD *)this + 91) * *(__int16 *)(*((_QWORD *)this + 51) + 8LL)));\n  (*(void (__fastcall **)(cocos2d::CCTileMapAtlas *, float *))(v9 + 312))(this, v10);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCTileMapAtlas::initWithTileFile from 0x1800aea50 to 0x1800aeb37 (231 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTileMapAtlas::create @ 0x1800ae9d6\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2310\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_8], rbx                                               ; +0x0, 0x1800aea50\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800aea55\npush    rdi                                                            ; +0xa, 0x1800aea5a\nsub     rsp, 30h                                                       ; +0xb, 0x1800aea5b\nmov     edi, r9d                                                       ; +0xf, 0x1800aea5f\nmov     rbx, rdx                                                       ; +0x12, 0x1800aea62\nmov     rsi, rcx                                                       ; +0x15, 0x1800aea65\nmov     rdx, r8; char *                                                ; +0x18, 0x1800aea68\ncall    ?loadTGAfile@CCTileMapAtlas@cocos2d@@AEAAXPEBD@Z; cocos2d::CCTileMapAtlas::loadTGAfile(char const *) ; +0x1b, 0x1800aea6b\nmov     rcx, rsi; this                                                 ; +0x20, 0x1800aea70\ncall    ?calculateItemsToRender@CCTileMapAtlas@cocos2d@@AEAAXXZ; cocos2d::CCTileMapAtlas::calculateItemsToRender(void) ; +0x23, 0x1800aea73\nmov     eax, [rsi+1A8h]                                                ; +0x28, 0x1800aea78\nmov     [rsp+38h+var_18], eax; unsigned int                            ; +0x2e, 0x1800aea7e\nmov     r9d, [rsp+38h+arg_20]; unsigned int                            ; +0x32, 0x1800aea82\nmov     r8d, edi; unsigned int                                         ; +0x37, 0x1800aea87\nmov     rdx, rbx; char *                                               ; +0x3a, 0x1800aea8a\nmov     rcx, rsi; this                                                 ; +0x3d, 0x1800aea8d\ncall    ?initWithTileFile@CCAtlasNode@cocos2d@@QEAA_NPEBDIII@Z; cocos2d::CCAtlasNode::initWithTileFile(char const *,uint,uint,uint) ; +0x40, 0x1800aea90\ntest    al, al                                                         ; +0x45, 0x1800aea95\njz      loc_1800AEB25                                                  ; +0x47, 0x1800aea97\nmov     ecx, 48h ; 'H'; Size                                           ; +0x4d, 0x1800aea9d\ncall    sub_1800E4AC0                                                  ; +0x52, 0x1800aeaa2\nmov     [rsp+38h+arg_0], rax                                           ; +0x57, 0x1800aeaa7\ntest    rax, rax                                                       ; +0x5c, 0x1800aeaac\njz      short loc_1800AEABA                                            ; +0x5f, 0x1800aeaaf\nmov     rcx, rax; this                                                 ; +0x61, 0x1800aeab1\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x64, 0x1800aeab4\nnop                                                                    ; +0x69, 0x1800aeab9\nmov     [rsi+1A0h], rax                                                ; +0x6a, 0x1800aeaba\nmov     rax, [rsi]                                                     ; +0x71, 0x1800aeac1\nmov     rcx, rsi                                                       ; +0x74, 0x1800aeac4\ncall    qword ptr [rax+398h]                                           ; +0x77, 0x1800aeac7\nmov     rcx, [rsi+198h]                                                ; +0x7d, 0x1800aeacd\nmov     rbx, [rsi]                                                     ; +0x84, 0x1800aead4\nmovsx   eax, word ptr [rcx+8]                                          ; +0x87, 0x1800aead7\nimul    eax, [rsi+16Ch]                                                ; +0x8b, 0x1800aeadb\nxorps   xmm2, xmm2                                                     ; +0x92, 0x1800aeae2\ncvtsi2ss xmm2, rax                                                     ; +0x95, 0x1800aeae5\nmovsx   eax, word ptr [rcx+6]                                          ; +0x9a, 0x1800aeaea\nimul    eax, [rsi+168h]                                                ; +0x9e, 0x1800aeaee\nxorps   xmm1, xmm1                                                     ; +0xa5, 0x1800aeaf5\ncvtsi2ss xmm1, rax                                                     ; +0xa8, 0x1800aeaf8\nlea     rcx, [rsp+38h+arg_0]                                           ; +0xad, 0x1800aeafd\ncall    kmVec2Fill                                                     ; +0xb2, 0x1800aeb02\nmov     rdx, rax                                                       ; +0xb7, 0x1800aeb07\nmov     rcx, rsi                                                       ; +0xba, 0x1800aeb0a\ncall    qword ptr [rbx+138h]                                           ; +0xbd, 0x1800aeb0d\nmov     al, 1                                                          ; +0xc3, 0x1800aeb13\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xc5, 0x1800aeb15\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xca, 0x1800aeb1a\nadd     rsp, 30h                                                       ; +0xcf, 0x1800aeb1f\npop     rdi                                                            ; +0xd3, 0x1800aeb23\nretn                                                                   ; +0xd4, 0x1800aeb24\nxor     al, al                                                         ; +0xd5, 0x1800aeb25\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xd7, 0x1800aeb27\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xdc, 0x1800aeb2c\nadd     rsp, 30h                                                       ; +0xe1, 0x1800aeb31\npop     rdi                                                            ; +0xe5, 0x1800aeb35\nretn                                                                   ; +0xe6, 0x1800aeb36", "xrefs": ["cocos2d::CCTileMapAtlas::create @ 0x1800ae9d6", "<???> @ 0x18014cf68", "<???> @ 0x1801c2310"], "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"}