{"type": "func", "start": 6443167232, "end": 6443168004, "name": "cocos2d::CCTileMapAtlas::updateAtlasValueAt", "pseudocode": "// \n// cocos2d::CCTileMapAtlas::updateAtlasValueAt from 0x1800aee00 to 0x1800af104 (772 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTileMapAtlas::setTile @ 0x1800aed8e\n// > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800af1d2\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2340\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\nvoid __fastcall cocos2d::CCTileMapAtlas::updateAtlasValueAt(\n        cocos2d::CCTextureAtlas **this,\n        const struct cocos2d::CCPoint *a2,\n        const struct cocos2d::_ccColor3B *a3,\n        unsigned int a4)\n{\n  cocos2d::CCTileMapAtlas *v4; // rsi\n  __int64 v7; // r13\n  __int64 v8; // rax\n  int v9; // ebp\n  __int64 v10; // r12\n  __int64 v11; // r15\n  int v12; // r14d\n  cocos2d::CCTileMapAtlas *v13; // rdi\n  __int64 v14; // rax\n  float v15; // xmm7_4\n  __int64 v16; // rax\n  float v17; // xmm6_4\n  cocos2d::CCDirector *v18; // rax\n  float v19; // xmm8_4\n  cocos2d::CCDirector *v20; // rax\n  float v21; // xmm2_4\n  float v22; // xmm1_4\n  float v23; // xmm0_4\n  float v24; // xmm8_4\n  float v25; // xmm2_4\n  int v26; // eax\n  int v27; // eax\n  int v28; // eax\n  int v29; // ecx\n  unsigned int v30; // eax\n  int v32; // [rsp+A8h] [rbp+20h]\n\n  v4 = (cocos2d::CCTileMapAtlas *)this;\n  v7 = a4;\n  (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 47) + 80LL))(*(this + 47));\n  v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v4 + 47) + 104LL))(*((_QWORD *)v4 + 47));\n  v9 = (int)*(float *)a2;\n  LODWORD(v4) = *((_DWORD *)v4 + 88);\n  v10 = v8;\n  v11 = 96 * v7;\n  v12 = (int)*((float *)a2 + 1);\n  LODWORD(a2) = *(unsigned __int8 *)a3;\n  v13 = (cocos2d::CCTileMapAtlas *)this;\n  v14 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 47) + 88LL))(*(this + 47));\n  v15 = (float)(*(int (__fastcall **)(__int64))(*(_QWORD *)v14 + 80LL))(v14);\n  v16 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v13 + 47) + 88LL))(*((_QWORD *)v13 + 47));\n  v17 = (float)(*(int (__fastcall **)(__int64))(*(_QWORD *)v16 + 88LL))(v16);\n  v18 = cocos2d::CCDirector::sharedDirector();\n  v19 = (float)*((int *)this + 90) * cocos2d::CCDirector::getContentScaleFactor(v18);\n  v20 = cocos2d::CCDirector::sharedDirector();\n  v21 = (float)*((int *)this + 91) * cocos2d::CCDirector::getContentScaleFactor(v20);\n  v22 = (float)((float)(int)((unsigned int)a2 % (unsigned int)v4) * v19) / v15;\n  v23 = (float)((float)(int)((unsigned int)a2 / (unsigned int)v4) * v21) / v17;\n  v24 = (float)(v19 / v15) + v22;\n  *(float *)(v10 + v11 + 16) = v22;\n  v25 = (float)(v21 / v17) + v23;\n  *(float *)(v10 + v11 + 20) = v23;\n  *(float *)(v10 + v11 + 68) = v23;\n  *(float *)(v10 + v11 + 40) = v22;\n  *(float *)(v10 + v11 + 64) = v24;\n  *(float *)(v10 + v11 + 44) = v25;\n  *(float *)(v10 + v11 + 92) = v25;\n  *(float *)(v10 + v11 + 88) = v24;\n  *(float *)(v10 + v11 + 24) = (float)(*((_DWORD *)this + 90) * v9);\n  v26 = *((_DWORD *)this + 91) * v12;\n  *(_DWORD *)(v10 + v11 + 32) = 0;\n  *(float *)(v10 + v11 + 28) = (float)v26;\n  *(float *)(v10 + v11 + 72) = (float)(*((_DWORD *)this + 90) * (v9 + 1));\n  v27 = *((_DWORD *)this + 91) * v12;\n  *(_DWORD *)(v10 + v11 + 80) = 0;\n  *(float *)(v10 + v11 + 76) = (float)v27;\n  *(float *)(v10 + 96 * v7) = (float)(*((_DWORD *)this + 90) * v9);\n  v28 = *((_DWORD *)this + 91) * (v12 + 1);\n  *(_DWORD *)(v10 + v11 + 8) = 0;\n  *(float *)(v10 + v11 + 4) = (float)v28;\n  *(float *)(v10 + v11 + 48) = (float)(*((_DWORD *)this + 90) * (v9 + 1));\n  v29 = *((_DWORD *)this + 91) * (v12 + 1);\n  *(_DWORD *)(v10 + v11 + 56) = 0;\n  *(float *)(v10 + v11 + 52) = (float)v29;\n  LOWORD(v32) = *((_WORD *)this + 165);\n  BYTE2(v32) = *((_BYTE *)this + 332);\n  HIBYTE(v32) = *((_BYTE *)this + 328);\n  *(_DWORD *)(v10 + v11 + 60) = v32;\n  *(_DWORD *)(v10 + v11 + 12) = v32;\n  *(_DWORD *)(v10 + v11 + 84) = v32;\n  *(_DWORD *)(v10 + v11 + 36) = v32;\n  *((_BYTE *)*(this + 47) + 72) = 1;\n  v30 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v13 + 47) + 72LL))(*((_QWORD *)v13 + 47));\n  if ( (int)v7 + 1 > v30 )\n    cocos2d::CCTextureAtlas::increaseTotalQuadsWith(*(this + 47), v7 - v30 + 1);\n}", "assembly": "; \n; cocos2d::CCTileMapAtlas::updateAtlasValueAt from 0x1800aee00 to 0x1800af104 (772 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTileMapAtlas::setTile @ 0x1800aed8e\n; > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800af1d2\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2340\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, 0x1800aee00\nmov     [rsp+arg_0], rcx                                               ; +0x5, 0x1800aee05\npush    rbp                                                            ; +0xa, 0x1800aee0a\npush    rsi                                                            ; +0xb, 0x1800aee0b\npush    rdi                                                            ; +0xc, 0x1800aee0c\npush    r12                                                            ; +0xd, 0x1800aee0d\npush    r13                                                            ; +0xf, 0x1800aee0f\npush    r14                                                            ; +0x11, 0x1800aee11\npush    r15                                                            ; +0x13, 0x1800aee13\nsub     rsp, 50h                                                       ; +0x15, 0x1800aee15\nmovaps  [rsp+88h+var_48], xmm6                                         ; +0x19, 0x1800aee19\nmov     rsi, rcx                                                       ; +0x1e, 0x1800aee1e\nmov     rcx, [rcx+178h]                                                ; +0x21, 0x1800aee21\nmov     rdi, r8                                                        ; +0x28, 0x1800aee28\nmovaps  [rsp+88h+var_58], xmm7                                         ; +0x2b, 0x1800aee2b\nmov     rbx, rdx                                                       ; +0x30, 0x1800aee30\nmovaps  [rsp+88h+var_68], xmm8                                         ; +0x33, 0x1800aee33\nmov     r13d, r9d                                                      ; +0x39, 0x1800aee39\nmov     rax, [rcx]                                                     ; +0x3c, 0x1800aee3c\ncall    qword ptr [rax+50h]                                            ; +0x3f, 0x1800aee3f\nmov     rcx, [rsi+178h]                                                ; +0x42, 0x1800aee42\nmov     rax, [rcx]                                                     ; +0x49, 0x1800aee49\ncall    qword ptr [rax+68h]                                            ; +0x4c, 0x1800aee4c\ncvttss2si ebp, dword ptr [rbx]                                         ; +0x4f, 0x1800aee4f\nmov     esi, [rsi+160h]                                                ; +0x53, 0x1800aee53\nlea     r15, ds:0[r13*2]                                               ; +0x59, 0x1800aee59\nadd     r15, r13                                                       ; +0x61, 0x1800aee61\nmov     r12, rax                                                       ; +0x64, 0x1800aee64\nshl     r15, 5                                                         ; +0x67, 0x1800aee67\ncvttss2si r14d, dword ptr [rbx+4]                                      ; +0x6b, 0x1800aee6b\nmovzx   ebx, byte ptr [rdi]                                            ; +0x71, 0x1800aee71\nmov     rdi, [rsp+88h+arg_0]                                           ; +0x74, 0x1800aee74\nmov     rcx, [rdi+178h]                                                ; +0x7c, 0x1800aee7c\nmov     rdx, [rcx]                                                     ; +0x83, 0x1800aee83\ncall    qword ptr [rdx+58h]                                            ; +0x86, 0x1800aee86\nmov     rcx, [rax]                                                     ; +0x89, 0x1800aee89\nmov     rdx, [rcx+50h]                                                 ; +0x8c, 0x1800aee8c\nmov     rcx, rax                                                       ; +0x90, 0x1800aee90\ncall    rdx                                                            ; +0x93, 0x1800aee93\nmov     rcx, [rdi+178h]                                                ; +0x95, 0x1800aee95\nxorps   xmm7, xmm7                                                     ; +0x9c, 0x1800aee9c\nmov     eax, eax                                                       ; +0x9f, 0x1800aee9f\ncvtsi2ss xmm7, rax                                                     ; +0xa1, 0x1800aeea1\nmov     rax, [rcx]                                                     ; +0xa6, 0x1800aeea6\ncall    qword ptr [rax+58h]                                            ; +0xa9, 0x1800aeea9\nmov     rcx, [rax]                                                     ; +0xac, 0x1800aeeac\nmov     rdx, [rcx+58h]                                                 ; +0xaf, 0x1800aeeaf\nmov     rcx, rax                                                       ; +0xb3, 0x1800aeeb3\ncall    rdx                                                            ; +0xb6, 0x1800aeeb6\nmov     eax, eax                                                       ; +0xb8, 0x1800aeeb8\nxorps   xmm6, xmm6                                                     ; +0xba, 0x1800aeeba\ncvtsi2ss xmm6, rax                                                     ; +0xbd, 0x1800aeebd\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc2, 0x1800aeec2\nmov     rcx, rax; this                                                 ; +0xc7, 0x1800aeec7\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xca, 0x1800aeeca\nmov     ecx, [rdi+168h]                                                ; +0xcf, 0x1800aeecf\nxorps   xmm8, xmm8                                                     ; +0xd5, 0x1800aeed5\ncvtsi2ss xmm8, rcx                                                     ; +0xd9, 0x1800aeed9\nmulss   xmm8, xmm0                                                     ; +0xde, 0x1800aeede\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe3, 0x1800aeee3\nmov     rcx, rax; this                                                 ; +0xe8, 0x1800aeee8\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xeb, 0x1800aeeeb\nmov     ecx, [rdi+16Ch]                                                ; +0xf0, 0x1800aeef0\nxorps   xmm2, xmm2                                                     ; +0xf6, 0x1800aeef6\nxor     edx, edx                                                       ; +0xf9, 0x1800aeef9\nmov     eax, ebx                                                       ; +0xfb, 0x1800aeefb\ndiv     esi                                                            ; +0xfd, 0x1800aeefd\ncvtsi2ss xmm2, rcx                                                     ; +0xff, 0x1800aeeff\nmov     ecx, edx                                                       ; +0x104, 0x1800aef04\nmov     edx, eax                                                       ; +0x106, 0x1800aef06\nxorps   xmm1, xmm1                                                     ; +0x108, 0x1800aef08\ncvtsi2ss xmm1, rcx                                                     ; +0x10b, 0x1800aef0b\nmulss   xmm2, xmm0                                                     ; +0x110, 0x1800aef10\nxorps   xmm0, xmm0                                                     ; +0x114, 0x1800aef14\nmulss   xmm1, xmm8                                                     ; +0x117, 0x1800aef17\ncvtsi2ss xmm0, rdx                                                     ; +0x11c, 0x1800aef1c\ndivss   xmm1, xmm7                                                     ; +0x121, 0x1800aef21\nmulss   xmm0, xmm2                                                     ; +0x125, 0x1800aef25\ndivss   xmm8, xmm7                                                     ; +0x129, 0x1800aef29\ndivss   xmm0, xmm6                                                     ; +0x12e, 0x1800aef2e\ndivss   xmm2, xmm6                                                     ; +0x132, 0x1800aef32\naddss   xmm8, xmm1                                                     ; +0x136, 0x1800aef36\nmovss   dword ptr [r12+r15+10h], xmm1                                  ; +0x13b, 0x1800aef3b\naddss   xmm2, xmm0                                                     ; +0x142, 0x1800aef42\nmovss   dword ptr [r12+r15+14h], xmm0                                  ; +0x146, 0x1800aef46\nmovss   dword ptr [r12+r15+44h], xmm0                                  ; +0x14d, 0x1800aef4d\nmovss   dword ptr [r12+r15+28h], xmm1                                  ; +0x154, 0x1800aef54\nmovss   dword ptr [r12+r15+40h], xmm8                                  ; +0x15b, 0x1800aef5b\nmovss   dword ptr [r12+r15+2Ch], xmm2                                  ; +0x162, 0x1800aef62\nmovss   dword ptr [r12+r15+5Ch], xmm2                                  ; +0x169, 0x1800aef69\nmovss   dword ptr [r12+r15+58h], xmm8                                  ; +0x170, 0x1800aef70\nxorps   xmm0, xmm0                                                     ; +0x177, 0x1800aef77\nlea     edx, [rbp+1]                                                   ; +0x17a, 0x1800aef7a\nmov     eax, ebp                                                       ; +0x17d, 0x1800aef7d\nlea     ecx, [r14+1]                                                   ; +0x17f, 0x1800aef7f\nimul    eax, [rdi+168h]                                                ; +0x183, 0x1800aef83\nxor     r8d, r8d                                                       ; +0x18a, 0x1800aef8a\ncvtsi2ss xmm0, rax                                                     ; +0x18d, 0x1800aef8d\nmov     eax, r14d                                                      ; +0x192, 0x1800aef92\nmovss   dword ptr [r12+r15+18h], xmm0                                  ; +0x195, 0x1800aef95\nxorps   xmm0, xmm0                                                     ; +0x19c, 0x1800aef9c\nimul    eax, [rdi+16Ch]                                                ; +0x19f, 0x1800aef9f\nmov     [r12+r15+20h], r8d                                             ; +0x1a6, 0x1800aefa6\ncvtsi2ss xmm0, rax                                                     ; +0x1ab, 0x1800aefab\nmov     eax, edx                                                       ; +0x1b0, 0x1800aefb0\nmovss   dword ptr [r12+r15+1Ch], xmm0                                  ; +0x1b2, 0x1800aefb2\nxorps   xmm0, xmm0                                                     ; +0x1b9, 0x1800aefb9\nimul    eax, [rdi+168h]                                                ; +0x1bc, 0x1800aefbc\ncvtsi2ss xmm0, rax                                                     ; +0x1c3, 0x1800aefc3\nmov     eax, r14d                                                      ; +0x1c8, 0x1800aefc8\nmovss   dword ptr [r12+r15+48h], xmm0                                  ; +0x1cb, 0x1800aefcb\nxorps   xmm0, xmm0                                                     ; +0x1d2, 0x1800aefd2\nimul    eax, [rdi+16Ch]                                                ; +0x1d5, 0x1800aefd5\nmov     [r12+r15+50h], r8d                                             ; +0x1dc, 0x1800aefdc\ncvtsi2ss xmm0, rax                                                     ; +0x1e1, 0x1800aefe1\nmovss   dword ptr [r12+r15+4Ch], xmm0                                  ; +0x1e6, 0x1800aefe6\nxorps   xmm0, xmm0                                                     ; +0x1ed, 0x1800aefed\nimul    ebp, [rdi+168h]                                                ; +0x1f0, 0x1800aeff0\nmov     eax, ebp                                                       ; +0x1f7, 0x1800aeff7\ncvtsi2ss xmm0, rax                                                     ; +0x1f9, 0x1800aeff9\nmov     eax, ecx                                                       ; +0x1fe, 0x1800aeffe\nmovss   dword ptr [r12+r15], xmm0                                      ; +0x200, 0x1800af000\nxorps   xmm0, xmm0                                                     ; +0x206, 0x1800af006\nimul    eax, [rdi+16Ch]                                                ; +0x209, 0x1800af009\nmov     [r12+r15+8], r8d                                               ; +0x210, 0x1800af010\ncvtsi2ss xmm0, rax                                                     ; +0x215, 0x1800af015\nmovss   dword ptr [r12+r15+4], xmm0                                    ; +0x21a, 0x1800af01a\nxorps   xmm0, xmm0                                                     ; +0x221, 0x1800af021\nimul    edx, [rdi+168h]                                                ; +0x224, 0x1800af024\nmov     eax, edx                                                       ; +0x22b, 0x1800af02b\ncvtsi2ss xmm0, rax                                                     ; +0x22d, 0x1800af02d\nmovss   dword ptr [r12+r15+30h], xmm0                                  ; +0x232, 0x1800af032\nxorps   xmm0, xmm0                                                     ; +0x239, 0x1800af039\nimul    ecx, [rdi+16Ch]                                                ; +0x23c, 0x1800af03c\nmov     [r12+r15+38h], r8d                                             ; +0x243, 0x1800af043\nmov     eax, ecx                                                       ; +0x248, 0x1800af048\ncvtsi2ss xmm0, rax                                                     ; +0x24a, 0x1800af04a\nmovss   dword ptr [r12+r15+34h], xmm0                                  ; +0x24f, 0x1800af04f\nmovzx   eax, byte ptr [rdi+14Ah]                                       ; +0x256, 0x1800af056\nmov     byte ptr [rsp+88h+arg_18], al                                  ; +0x25d, 0x1800af05d\nmovzx   eax, byte ptr [rdi+14Bh]                                       ; +0x264, 0x1800af064\nmov     byte ptr [rsp+88h+arg_18+1], al                                ; +0x26b, 0x1800af06b\nmovzx   eax, byte ptr [rdi+14Ch]                                       ; +0x272, 0x1800af072\nmov     byte ptr [rsp+88h+arg_18+2], al                                ; +0x279, 0x1800af079\nmovzx   eax, byte ptr [rdi+148h]                                       ; +0x280, 0x1800af080\nmov     byte ptr [rsp+88h+arg_18+3], al                                ; +0x287, 0x1800af087\nmov     eax, [rsp+88h+arg_18]                                          ; +0x28e, 0x1800af08e\nmov     [r12+r15+3Ch], eax                                             ; +0x295, 0x1800af095\nmov     [r12+r15+0Ch], eax                                             ; +0x29a, 0x1800af09a\nmov     [r12+r15+54h], eax                                             ; +0x29f, 0x1800af09f\nmov     [r12+r15+24h], eax                                             ; +0x2a4, 0x1800af0a4\nmov     rax, [rdi+178h]                                                ; +0x2a9, 0x1800af0a9\nmov     byte ptr [rax+48h], 1                                          ; +0x2b0, 0x1800af0b0\nmov     rcx, [rdi+178h]                                                ; +0x2b4, 0x1800af0b4\nmov     rax, [rcx]                                                     ; +0x2bb, 0x1800af0bb\ncall    qword ptr [rax+48h]                                            ; +0x2be, 0x1800af0be\nlea     ecx, [r13+1]                                                   ; +0x2c1, 0x1800af0c1\ncmp     ecx, eax                                                       ; +0x2c5, 0x1800af0c5\njbe     short loc_1800AF0DC                                            ; +0x2c7, 0x1800af0c7\nmov     rcx, [rdi+178h]; this                                          ; +0x2c9, 0x1800af0c9\nsub     r13d, eax                                                      ; +0x2d0, 0x1800af0d0\nlea     edx, [r13+1]; unsigned int                                     ; +0x2d3, 0x1800af0d3\ncall    ?increaseTotalQuadsWith@CCTextureAtlas@cocos2d@@QEAAXI@Z; cocos2d::CCTextureAtlas::increaseTotalQuadsWith(uint) ; +0x2d7, 0x1800af0d7\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x2dc, 0x1800af0dc\nmovaps  xmm6, [rsp+88h+var_48]                                         ; +0x2e4, 0x1800af0e4\nmovaps  xmm7, [rsp+88h+var_58]                                         ; +0x2e9, 0x1800af0e9\nmovaps  xmm8, [rsp+88h+var_68]                                         ; +0x2ee, 0x1800af0ee\nadd     rsp, 50h                                                       ; +0x2f4, 0x1800af0f4\npop     r15                                                            ; +0x2f8, 0x1800af0f8\npop     r14                                                            ; +0x2fa, 0x1800af0fa\npop     r13                                                            ; +0x2fc, 0x1800af0fc\npop     r12                                                            ; +0x2fe, 0x1800af0fe\npop     rdi                                                            ; +0x300, 0x1800af100\npop     rsi                                                            ; +0x301, 0x1800af101\npop     rbp                                                            ; +0x302, 0x1800af102\nretn                                                                   ; +0x303, 0x1800af103", "xrefs": ["cocos2d::CCTileMapAtlas::setTile @ 0x1800aed8e", "cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800af1d2", "<???> @ 0x18014cf68", "<???> @ 0x1801c2340"], "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"}