{"type": "func", "start": 6442745792, "end": 6442746524, "name": "cocos2d::CCLabelAtlas::updateAtlasValues", "pseudocode": "// \n// cocos2d::CCLabelAtlas::updateAtlasValues from 0x180047fc0 to 0x18004829c (732 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f1818\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb9ec\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:21:41 +0000\n// \n\nvoid __fastcall cocos2d::CCLabelAtlas::updateAtlasValues(cocos2d::CCLabelAtlas *this)\n{\n  unsigned int v1; // esi\n  char *v2; // r14\n  __int64 v4; // rbx\n  float v5; // xmm8_4\n  float v6; // xmm9_4\n  cocos2d::CCDirector *v7; // rax\n  float v8; // xmm6_4\n  cocos2d::CCDirector *v9; // rax\n  float v10; // xmm7_4\n  __int64 v11; // rax\n  __int64 v12; // r9\n  __int64 v13; // r8\n  float v14; // xmm4_4\n  unsigned int v15; // eax\n  unsigned int v16; // edx\n  int v17; // ecx\n  __int64 v18; // rdx\n  float v19; // xmm3_4\n  unsigned int v20; // ecx\n  float v21; // xmm3_4\n  float v22; // xmm1_4\n  float v23; // xmm0_4\n  int v24; // eax\n  int v25; // eax\n  int v26; // eax\n  int v27; // eax\n  int v28; // eax\n  unsigned int v29; // eax\n  int v30; // [rsp+70h] [rbp+8h]\n\n  v1 = *((_DWORD *)this + 108);\n  v2 = (char *)this + 416;\n  if ( *((_QWORD *)this + 55) > 0xFu )\n    v2 = *(char **)v2;\n  v4 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 88LL))(*((_QWORD *)this + 47));\n  v5 = (float)(*(int (__fastcall **)(__int64))(*(_QWORD *)v4 + 80LL))(v4);\n  v6 = (float)(*(int (__fastcall **)(__int64))(*(_QWORD *)v4 + 88LL))(v4);\n  v7 = cocos2d::CCDirector::sharedDirector();\n  v8 = (float)*((int *)this + 90) * cocos2d::CCDirector::getContentScaleFactor(v7);\n  v9 = cocos2d::CCDirector::sharedDirector();\n  v10 = (float)*((int *)this + 91) * cocos2d::CCDirector::getContentScaleFactor(v9);\n  if ( *((_BYTE *)this + 404) )\n  {\n    v10 = (float)*((int *)this + 91);\n    v8 = (float)*((int *)this + 90);\n  }\n  (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 80LL))(*((_QWORD *)this + 47));\n  v11 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 104LL))(*((_QWORD *)this + 47));\n  LODWORD(v12) = 0;\n  if ( v1 )\n  {\n    v13 = v11 + 20;\n    v14 = v8 / v5;\n    do\n    {\n      v15 = (unsigned int)(unsigned __int8)(*v2 - *((_BYTE *)this + 448)) / *((_DWORD *)this + 88);\n      v16 = (unsigned int)(unsigned __int8)(*v2++ - *((_BYTE *)this + 448)) % *((_DWORD *)this + 88);\n      v17 = v16;\n      v18 = v15;\n      v19 = (float)v17;\n      v20 = v12 + 1;\n      v21 = (float)(v19 * v8) / v5;\n      v22 = (float)((float)(int)v15 * v10) / v6;\n      *(float *)(v13 - 4) = v21;\n      *(float *)v13 = v22;\n      *(float *)(v13 + 48) = v22;\n      *(float *)(v13 + 20) = v21;\n      v23 = v22 + (float)(v10 / v6);\n      *(float *)(v13 + 44) = v21 + v14;\n      *(float *)(v13 + 68) = v21 + v14;\n      *(float *)(v13 + 24) = v23;\n      *(float *)(v13 + 72) = v23;\n      v24 = *((_DWORD *)this + 90) * v12;\n      *(_QWORD *)(v13 + 8) = 0;\n      *(float *)(v13 + 4) = (float)v24;\n      v25 = *((_DWORD *)this + 90) * (v12 + 1);\n      *(_QWORD *)(v13 + 56) = 0;\n      *(float *)(v13 + 52) = (float)v25;\n      v26 = *((_DWORD *)this + 90) * v12;\n      v12 = (unsigned int)(v12 + 1);\n      *(float *)(v13 - 20) = (float)v26;\n      v27 = *((_DWORD *)this + 91);\n      *(_DWORD *)(v13 - 12) = 0;\n      *(float *)(v13 - 16) = (float)v27;\n      *(float *)(v13 + 28) = (float)(int)(*((_DWORD *)this + 90) * v20);\n      v28 = *((_DWORD *)this + 91);\n      *(_DWORD *)(v13 + 36) = 0;\n      *(float *)(v13 + 32) = (float)v28;\n      LOWORD(v30) = *((_WORD *)this + 165);\n      BYTE2(v30) = *((_BYTE *)this + 332);\n      HIBYTE(v30) = *((_BYTE *)this + 328);\n      *(_DWORD *)(v13 - 8) = v30;\n      *(_DWORD *)(v13 + 40) = v30;\n      *(_DWORD *)(v13 + 16) = v30;\n      *(_DWORD *)(v13 + 64) = v30;\n      v13 += 96;\n    }\n    while ( v20 < v1 );\n    *(_BYTE *)(*((_QWORD *)this + 47) + 72LL) = 1;\n    v29 = (*(__int64 (__fastcall **)(_QWORD, __int64, __int64, __int64))(**((_QWORD **)this + 47) + 72LL))(\n            *((_QWORD *)this + 47),\n            v18,\n            v13,\n            v12);\n    if ( v1 > v29 )\n      cocos2d::CCTextureAtlas::increaseTotalQuadsWith(*((cocos2d::CCTextureAtlas **)this + 47), v1 - v29);\n  }\n}", "assembly": "; \n; cocos2d::CCLabelAtlas::updateAtlasValues from 0x180047fc0 to 0x18004829c (732 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f1818\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb9ec\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:21:41 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x180047fc0\nmov     [rax+10h], rbx                                                 ; +0x3, 0x180047fc3\nmov     [rax+18h], rsi                                                 ; +0x7, 0x180047fc7\nmov     [rax+20h], rdi                                                 ; +0xb, 0x180047fcb\npush    r14                                                            ; +0xf, 0x180047fcf\nsub     rsp, 60h                                                       ; +0x11, 0x180047fd1\nmov     esi, [rcx+1B0h]                                                ; +0x15, 0x180047fd5\nlea     r14, [rcx+1A0h]                                                ; +0x1b, 0x180047fdb\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x22, 0x180047fe2\nmov     rdi, rcx                                                       ; +0x27, 0x180047fe7\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x2a, 0x180047fea\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x2e, 0x180047fee\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x32, 0x180047ff2\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x37, 0x180047ff7\njbe     short loc_180048001                                            ; +0x3c, 0x180047ffc\nmov     r14, [r14]                                                     ; +0x3e, 0x180047ffe\nmov     rcx, [rcx+178h]                                                ; +0x41, 0x180048001\nmov     rax, [rcx]                                                     ; +0x48, 0x180048008\ncall    qword ptr [rax+58h]                                            ; +0x4b, 0x18004800b\nmov     rbx, rax                                                       ; +0x4e, 0x18004800e\nmov     rcx, [rax]                                                     ; +0x51, 0x180048011\nmov     rdx, [rcx+50h]                                                 ; +0x54, 0x180048014\nmov     rcx, rax                                                       ; +0x58, 0x180048018\ncall    rdx                                                            ; +0x5b, 0x18004801b\nmov     ecx, eax                                                       ; +0x5d, 0x18004801d\nxorps   xmm8, xmm8                                                     ; +0x5f, 0x18004801f\ncvtsi2ss xmm8, rcx                                                     ; +0x63, 0x180048023\nmov     rcx, [rbx]                                                     ; +0x68, 0x180048028\nmov     rdx, [rcx+58h]                                                 ; +0x6b, 0x18004802b\nmov     rcx, rbx                                                       ; +0x6f, 0x18004802f\ncall    rdx                                                            ; +0x72, 0x180048032\nmov     eax, eax                                                       ; +0x74, 0x180048034\nxorps   xmm9, xmm9                                                     ; +0x76, 0x180048036\ncvtsi2ss xmm9, rax                                                     ; +0x7a, 0x18004803a\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7f, 0x18004803f\nmov     rcx, rax; this                                                 ; +0x84, 0x180048044\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x87, 0x180048047\nmov     eax, [rdi+168h]                                                ; +0x8c, 0x18004804c\nxorps   xmm6, xmm6                                                     ; +0x92, 0x180048052\ncvtsi2ss xmm6, rax                                                     ; +0x95, 0x180048055\nmulss   xmm6, xmm0                                                     ; +0x9a, 0x18004805a\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9e, 0x18004805e\nmov     rcx, rax; this                                                 ; +0xa3, 0x180048063\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xa6, 0x180048066\ncmp     byte ptr [rdi+194h], 0                                         ; +0xab, 0x18004806b\nxorps   xmm1, xmm1                                                     ; +0xb2, 0x180048072\nmov     eax, [rdi+16Ch]                                                ; +0xb5, 0x180048075\ncvtsi2ss xmm1, rax                                                     ; +0xbb, 0x18004807b\nmovaps  xmm7, xmm1                                                     ; +0xc0, 0x180048080\nmulss   xmm7, xmm0                                                     ; +0xc3, 0x180048083\njz      short loc_18004809A                                            ; +0xc7, 0x180048087\nmov     eax, [rdi+168h]                                                ; +0xc9, 0x180048089\nxorps   xmm6, xmm6                                                     ; +0xcf, 0x18004808f\nmovaps  xmm7, xmm1                                                     ; +0xd2, 0x180048092\ncvtsi2ss xmm6, rax                                                     ; +0xd5, 0x180048095\nmov     rcx, [rdi+178h]                                                ; +0xda, 0x18004809a\nmov     rax, [rcx]                                                     ; +0xe1, 0x1800480a1\ncall    qword ptr [rax+50h]                                            ; +0xe4, 0x1800480a4\nmov     rcx, [rdi+178h]                                                ; +0xe7, 0x1800480a7\nmov     rax, [rcx]                                                     ; +0xee, 0x1800480ae\ncall    qword ptr [rax+68h]                                            ; +0xf1, 0x1800480b1\nxor     r10d, r10d                                                     ; +0xf4, 0x1800480b4\nmov     r9d, r10d                                                      ; +0xf7, 0x1800480b7\ntest    esi, esi                                                       ; +0xfa, 0x1800480ba\njz      loc_180048271                                                  ; +0xfc, 0x1800480bc\nmovaps  xmm4, xmm6                                                     ; +0x102, 0x1800480c2\nlea     r8, [rax+14h]                                                  ; +0x105, 0x1800480c5\nmovaps  xmm5, xmm7                                                     ; +0x109, 0x1800480c9\ndivss   xmm4, xmm8                                                     ; +0x10c, 0x1800480cc\ndivss   xmm5, xmm9                                                     ; +0x111, 0x1800480d1\nnop     word ptr [rax+rax+00000000h]                                   ; +0x116, 0x1800480d6\nmovzx   eax, byte ptr [r14]                                            ; +0x120, 0x1800480e0\nxorps   xmm1, xmm1                                                     ; +0x124, 0x1800480e4\nsub     al, [rdi+1C0h]                                                 ; +0x127, 0x1800480e7\nxor     edx, edx                                                       ; +0x12d, 0x1800480ed\nmovzx   eax, al                                                        ; +0x12f, 0x1800480ef\nxorps   xmm3, xmm3                                                     ; +0x132, 0x1800480f2\ndiv     dword ptr [rdi+160h]                                           ; +0x135, 0x1800480f5\ninc     r14                                                            ; +0x13b, 0x1800480fb\nmov     ecx, edx                                                       ; +0x13e, 0x1800480fe\nmov     edx, eax                                                       ; +0x140, 0x180048100\nmov     eax, r9d                                                       ; +0x142, 0x180048102\ncvtsi2ss xmm3, rcx                                                     ; +0x145, 0x180048105\nlea     ecx, [r9+1]                                                    ; +0x14a, 0x18004810a\ncvtsi2ss xmm1, rdx                                                     ; +0x14e, 0x18004810e\nmulss   xmm3, xmm6                                                     ; +0x153, 0x180048113\nmulss   xmm1, xmm7                                                     ; +0x157, 0x180048117\ndivss   xmm3, xmm8                                                     ; +0x15b, 0x18004811b\ndivss   xmm1, xmm9                                                     ; +0x160, 0x180048120\nmovss   dword ptr [r8-4], xmm3                                         ; +0x165, 0x180048125\nmovaps  xmm2, xmm3                                                     ; +0x16b, 0x18004812b\nmovss   dword ptr [r8], xmm1                                           ; +0x16e, 0x18004812e\naddss   xmm2, xmm4                                                     ; +0x173, 0x180048133\nmovss   dword ptr [r8+30h], xmm1                                       ; +0x177, 0x180048137\nmovaps  xmm0, xmm1                                                     ; +0x17d, 0x18004813d\nmovss   dword ptr [r8+14h], xmm3                                       ; +0x180, 0x180048140\naddss   xmm0, xmm5                                                     ; +0x186, 0x180048146\nxorps   xmm1, xmm1                                                     ; +0x18a, 0x18004814a\nmovss   dword ptr [r8+2Ch], xmm2                                       ; +0x18d, 0x18004814d\nmovss   dword ptr [r8+44h], xmm2                                       ; +0x193, 0x180048153\nmovss   dword ptr [r8+18h], xmm0                                       ; +0x199, 0x180048159\nmovss   dword ptr [r8+48h], xmm0                                       ; +0x19f, 0x18004815f\nxorps   xmm0, xmm0                                                     ; +0x1a5, 0x180048165\nimul    eax, [rdi+168h]                                                ; +0x1a8, 0x180048168\nmov     [r8+8], r10                                                    ; +0x1af, 0x18004816f\ncvtsi2ss xmm0, rax                                                     ; +0x1b3, 0x180048173\nmov     eax, ecx                                                       ; +0x1b8, 0x180048178\nmovss   dword ptr [r8+4], xmm0                                         ; +0x1ba, 0x18004817a\nxorps   xmm0, xmm0                                                     ; +0x1c0, 0x180048180\nimul    eax, [rdi+168h]                                                ; +0x1c3, 0x180048183\nmov     [r8+38h], r10                                                  ; +0x1ca, 0x18004818a\ncvtsi2ss xmm0, rax                                                     ; +0x1ce, 0x18004818e\nmovss   dword ptr [r8+34h], xmm0                                       ; +0x1d3, 0x180048193\nxorps   xmm0, xmm0                                                     ; +0x1d9, 0x180048199\nimul    r9d, [rdi+168h]                                                ; +0x1dc, 0x18004819c\nmov     eax, r9d                                                       ; +0x1e4, 0x1800481a4\nmov     r9d, ecx                                                       ; +0x1e7, 0x1800481a7\ncvtsi2ss xmm0, rax                                                     ; +0x1ea, 0x1800481aa\nmovss   dword ptr [r8-14h], xmm0                                       ; +0x1ef, 0x1800481af\nxorps   xmm0, xmm0                                                     ; +0x1f5, 0x1800481b5\nmov     eax, [rdi+16Ch]                                                ; +0x1f8, 0x1800481b8\nmov     [r8-0Ch], r10d                                                 ; +0x1fe, 0x1800481be\ncvtsi2ss xmm1, rax                                                     ; +0x202, 0x1800481c2\nmov     eax, ecx                                                       ; +0x207, 0x1800481c7\nmovss   dword ptr [r8-10h], xmm1                                       ; +0x209, 0x1800481c9\nxorps   xmm1, xmm1                                                     ; +0x20f, 0x1800481cf\nimul    eax, [rdi+168h]                                                ; +0x212, 0x1800481d2\ncvtsi2ss xmm0, rax                                                     ; +0x219, 0x1800481d9\nmovss   dword ptr [r8+1Ch], xmm0                                       ; +0x21e, 0x1800481de\nmov     eax, [rdi+16Ch]                                                ; +0x224, 0x1800481e4\nmov     [r8+24h], r10d                                                 ; +0x22a, 0x1800481ea\ncvtsi2ss xmm1, rax                                                     ; +0x22e, 0x1800481ee\nmovss   dword ptr [r8+20h], xmm1                                       ; +0x233, 0x1800481f3\nmovzx   eax, byte ptr [rdi+14Ah]                                       ; +0x239, 0x1800481f9\nmov     byte ptr [rsp+68h+arg_0], al                                   ; +0x240, 0x180048200\nmovzx   eax, byte ptr [rdi+14Bh]                                       ; +0x244, 0x180048204\nmov     byte ptr [rsp+68h+arg_0+1], al                                 ; +0x24b, 0x18004820b\nmovzx   eax, byte ptr [rdi+14Ch]                                       ; +0x24f, 0x18004820f\nmov     byte ptr [rsp+68h+arg_0+2], al                                 ; +0x256, 0x180048216\nmovzx   eax, byte ptr [rdi+148h]                                       ; +0x25a, 0x18004821a\nmov     byte ptr [rsp+68h+arg_0+3], al                                 ; +0x261, 0x180048221\nmov     eax, [rsp+68h+arg_0]                                           ; +0x265, 0x180048225\nmov     [r8-8], eax                                                    ; +0x269, 0x180048229\nmov     [r8+28h], eax                                                  ; +0x26d, 0x18004822d\nmov     [r8+10h], eax                                                  ; +0x271, 0x180048231\nmov     [r8+40h], eax                                                  ; +0x275, 0x180048235\nadd     r8, 60h ; '`'                                                  ; +0x279, 0x180048239\ncmp     ecx, esi                                                       ; +0x27d, 0x18004823d\njb      loc_1800480E0                                                  ; +0x27f, 0x18004823f\nmov     rax, [rdi+178h]                                                ; +0x285, 0x180048245\nmov     byte ptr [rax+48h], 1                                          ; +0x28c, 0x18004824c\nmov     rcx, [rdi+178h]                                                ; +0x290, 0x180048250\nmov     rax, [rcx]                                                     ; +0x297, 0x180048257\ncall    qword ptr [rax+48h]                                            ; +0x29a, 0x18004825a\ncmp     esi, eax                                                       ; +0x29d, 0x18004825d\njbe     short loc_180048271                                            ; +0x29f, 0x18004825f\nmov     rcx, [rdi+178h]; this                                          ; +0x2a1, 0x180048261\nsub     esi, eax                                                       ; +0x2a8, 0x180048268\nmov     edx, esi; unsigned int                                         ; +0x2aa, 0x18004826a\ncall    ?increaseTotalQuadsWith@CCTextureAtlas@cocos2d@@QEAAXI@Z; cocos2d::CCTextureAtlas::increaseTotalQuadsWith(uint) ; +0x2ac, 0x18004826c\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0x2b1, 0x180048271\nlea     r11, [rsp+68h+var_8]                                           ; +0x2b6, 0x180048276\nmov     rbx, [r11+18h]                                                 ; +0x2bb, 0x18004827b\nmov     rsi, [r11+20h]                                                 ; +0x2bf, 0x18004827f\nmov     rdi, [r11+28h]                                                 ; +0x2c3, 0x180048283\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x2c7, 0x180048287\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x2cc, 0x18004828c\nmovaps  xmm7, [rsp+68h+var_28]                                         ; +0x2d1, 0x180048291\nmov     rsp, r11                                                       ; +0x2d6, 0x180048296\npop     r14                                                            ; +0x2d9, 0x180048299\nretn                                                                   ; +0x2db, 0x18004829b", "xrefs": ["<???> @ 0x1800f1818", "<???> @ 0x18014cf68", "<???> @ 0x1801bb9ec"], "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"}