{"type": "func", "start": 6442771968, "end": 6442772199, "name": "cocos2d::CCLabelBMFont::updateDisplayedColor", "pseudocode": "// \n// cocos2d::CCLabelBMFont::updateDisplayedColor from 0x18004e600 to 0x18004e6e7 (231 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800f27d8\n// > <???> @ 0x180140c20\n// > <???> @ 0x180140c30\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbdf4\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:44 +0000\n// \n\nvoid __fastcall cocos2d::CCLabelBMFont::updateDisplayedColor(\n        cocos2d::CCLabelBMFont *this,\n        const struct cocos2d::_ccColor3B *a2)\n{\n  char *v2; // rsi\n  __int64 v3; // rbx\n  int v4; // r8d\n  unsigned int *v5; // rbx\n  __int64 v6; // rax\n  unsigned __int64 v7; // rbx\n  unsigned __int64 i; // rdi\n\n  v2 = (char *)this + 130;\n  v3 = *((_QWORD *)this - 20);\n  v4 = *((unsigned __int8 *)this + 134);\n  *((_BYTE *)this + 130) = (int)((double)(*(unsigned __int8 *)a2 * *((unsigned __int8 *)this + 133)) / 255.0);\n  *((_BYTE *)this + 131) = (int)((double)(*((unsigned __int8 *)a2 + 1) * v4) / 255.0);\n  *((_BYTE *)this + 132) = (int)((double)(*((unsigned __int8 *)a2 + 2) * *((unsigned __int8 *)this + 135)) / 255.0);\n  if ( v3 )\n  {\n    v5 = *(unsigned int **)(v3 + 56);\n    v6 = *v5;\n    if ( (_DWORD)v6 )\n    {\n      v7 = *((_QWORD *)v5 + 2);\n      for ( i = v7 + 8 * (v6 - 1); v7 <= i; v7 += 8LL )\n      {\n        if ( !*(_QWORD *)v7 )\n          break;\n        (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)(*(_QWORD *)v7 + 320LL) + 80LL))(*(_QWORD *)v7 + 320LL, v2);\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::updateDisplayedColor from 0x18004e600 to 0x18004e6e7 (231 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800f27d8\n; > <???> @ 0x180140c20\n; > <???> @ 0x180140c30\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbdf4\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:44 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18004e600\npush    rsi                                                            ; +0x5, 0x18004e605\nsub     rsp, 20h                                                       ; +0x6, 0x18004e606\nmovzx   eax, byte ptr [rdx]                                            ; +0xa, 0x18004e60a\nlea     rsi, [rcx+82h]                                                 ; +0xd, 0x18004e60d\nmovzx   r8d, byte ptr [rcx+85h]                                        ; +0x14, 0x18004e614\nmov     r9, rcx                                                        ; +0x1c, 0x18004e61c\nmovsd   xmm1, cs:qword_1800EC210                                       ; +0x1f, 0x18004e61f\nimul    r8d, eax                                                       ; +0x27, 0x18004e627\nmov     rbx, [r9-0A0h]                                                 ; +0x2b, 0x18004e62b\nmovd    xmm0, r8d                                                      ; +0x32, 0x18004e632\nmovzx   r8d, byte ptr [rcx+86h]                                        ; +0x37, 0x18004e637\ncvtdq2pd xmm0, xmm0                                                    ; +0x3f, 0x18004e63f\ndivsd   xmm0, xmm1                                                     ; +0x43, 0x18004e643\ncvttsd2si eax, xmm0                                                    ; +0x47, 0x18004e647\nmov     [rsi], al                                                      ; +0x4b, 0x18004e64b\nmovzx   eax, byte ptr [rdx+1]                                          ; +0x4d, 0x18004e64d\nimul    r8d, eax                                                       ; +0x51, 0x18004e651\nmovd    xmm0, r8d                                                      ; +0x55, 0x18004e655\ncvtdq2pd xmm0, xmm0                                                    ; +0x5a, 0x18004e65a\ndivsd   xmm0, xmm1                                                     ; +0x5e, 0x18004e65e\ncvttsd2si eax, xmm0                                                    ; +0x62, 0x18004e662\nmov     [rcx+83h], al                                                  ; +0x66, 0x18004e666\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x6c, 0x18004e66c\nmovzx   ecx, byte ptr [rcx+87h]                                        ; +0x70, 0x18004e670\nimul    ecx, eax                                                       ; +0x77, 0x18004e677\nmovd    xmm0, ecx                                                      ; +0x7a, 0x18004e67a\ncvtdq2pd xmm0, xmm0                                                    ; +0x7e, 0x18004e67e\ndivsd   xmm0, xmm1                                                     ; +0x82, 0x18004e682\ncvttsd2si eax, xmm0                                                    ; +0x86, 0x18004e686\nmov     [r9+84h], al                                                   ; +0x8a, 0x18004e68a\ntest    rbx, rbx                                                       ; +0x91, 0x18004e691\njz      short loc_18004E6DC                                            ; +0x94, 0x18004e694\nmov     rbx, [rbx+38h]                                                 ; +0x96, 0x18004e696\nmov     eax, [rbx]                                                     ; +0x9a, 0x18004e69a\ntest    eax, eax                                                       ; +0x9c, 0x18004e69c\njz      short loc_18004E6DC                                            ; +0x9e, 0x18004e69e\nmov     rbx, [rbx+10h]                                                 ; +0xa0, 0x18004e6a0\nmov     [rsp+28h+arg_0], rdi                                           ; +0xa4, 0x18004e6a4\nlea     rdi, [rax-1]                                                   ; +0xa9, 0x18004e6a9\nlea     rdi, [rbx+rdi*8]                                               ; +0xad, 0x18004e6ad\ncmp     rbx, rdi                                                       ; +0xb1, 0x18004e6b1\nja      short loc_18004E6D7                                            ; +0xb4, 0x18004e6b4\nmov     rcx, [rbx]                                                     ; +0xb6, 0x18004e6b6\ntest    rcx, rcx                                                       ; +0xb9, 0x18004e6b9\njz      short loc_18004E6D7                                            ; +0xbc, 0x18004e6bc\nadd     rcx, 140h                                                      ; +0xbe, 0x18004e6be\nmov     rdx, rsi                                                       ; +0xc5, 0x18004e6c5\nmov     rax, [rcx]                                                     ; +0xc8, 0x18004e6c8\ncall    qword ptr [rax+50h]                                            ; +0xcb, 0x18004e6cb\nadd     rbx, 8                                                         ; +0xce, 0x18004e6ce\ncmp     rbx, rdi                                                       ; +0xd2, 0x18004e6d2\njbe     short loc_18004E6B6                                            ; +0xd5, 0x18004e6d5\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xd7, 0x18004e6d7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xdc, 0x18004e6dc\nadd     rsp, 20h                                                       ; +0xe1, 0x18004e6e1\npop     rsi                                                            ; +0xe5, 0x18004e6e5\nretn                                                                   ; +0xe6, 0x18004e6e6", "xrefs": ["<???> @ 0x1800f27d8", "<???> @ 0x180140c20", "<???> @ 0x180140c30", "<???> @ 0x18014cf68", "<???> @ 0x1801bbdf4"], "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"}