{"type": "func", "start": 6442772208, "end": 6442772360, "name": "cocos2d::CCLabelBMFont::updateDisplayedOpacity", "pseudocode": "// \n// cocos2d::CCLabelBMFont::updateDisplayedOpacity from 0x18004e6f0 to 0x18004e788 (152 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800f27f0\n// > <???> @ 0x180140bd8\n// > <???> @ 0x180140be8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbe18\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::updateDisplayedOpacity(cocos2d::CCLabelBMFont *this, unsigned __int8 a2)\n{\n  __int64 v3; // rbx\n  unsigned int *v4; // rbx\n  __int64 v5; // rax\n  unsigned __int64 v6; // rbx\n  unsigned __int64 i; // rdi\n\n  v3 = *((_QWORD *)this - 20);\n  *((_BYTE *)this + 128) = (int)((double)(a2 * *((unsigned __int8 *)this + 129)) / 255.0);\n  if ( v3 )\n  {\n    v4 = *(unsigned int **)(v3 + 56);\n    v5 = *v4;\n    if ( (_DWORD)v5 )\n    {\n      v6 = *((_QWORD *)v4 + 2);\n      for ( i = v6 + 8 * (v5 - 1); v6 <= i; v6 += 8LL )\n      {\n        if ( !*(_QWORD *)v6 )\n          break;\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)v6 + 320LL) + 104LL))(\n          *(_QWORD *)v6 + 320LL,\n          *((unsigned __int8 *)this + 128));\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::updateDisplayedOpacity from 0x18004e6f0 to 0x18004e788 (152 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800f27f0\n; > <???> @ 0x180140bd8\n; > <???> @ 0x180140be8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbe18\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, 0x18004e6f0\npush    rsi                                                            ; +0x5, 0x18004e6f5\nsub     rsp, 20h                                                       ; +0x6, 0x18004e6f6\nmovzx   r8d, byte ptr [rcx+81h]                                        ; +0xa, 0x18004e6fa\nmov     rsi, rcx                                                       ; +0x12, 0x18004e702\nmov     rbx, [rcx-0A0h]                                                ; +0x15, 0x18004e705\nmovzx   eax, dl                                                        ; +0x1c, 0x18004e70c\nimul    r8d, eax                                                       ; +0x1f, 0x18004e70f\nmovd    xmm0, r8d                                                      ; +0x23, 0x18004e713\ncvtdq2pd xmm0, xmm0                                                    ; +0x28, 0x18004e718\ndivsd   xmm0, cs:qword_1800EC210                                       ; +0x2c, 0x18004e71c\ncvttsd2si eax, xmm0                                                    ; +0x34, 0x18004e724\nmov     [rcx+80h], al                                                  ; +0x38, 0x18004e728\ntest    rbx, rbx                                                       ; +0x3e, 0x18004e72e\njz      short loc_18004E77D                                            ; +0x41, 0x18004e731\nmov     rbx, [rbx+38h]                                                 ; +0x43, 0x18004e733\nmov     eax, [rbx]                                                     ; +0x47, 0x18004e737\ntest    eax, eax                                                       ; +0x49, 0x18004e739\njz      short loc_18004E77D                                            ; +0x4b, 0x18004e73b\nmov     rbx, [rbx+10h]                                                 ; +0x4d, 0x18004e73d\nmov     [rsp+28h+arg_0], rdi                                           ; +0x51, 0x18004e741\nlea     rdi, [rax-1]                                                   ; +0x56, 0x18004e746\nlea     rdi, [rbx+rdi*8]                                               ; +0x5a, 0x18004e74a\ncmp     rbx, rdi                                                       ; +0x5e, 0x18004e74e\nja      short loc_18004E778                                            ; +0x61, 0x18004e751\nmov     rcx, [rbx]                                                     ; +0x63, 0x18004e753\ntest    rcx, rcx                                                       ; +0x66, 0x18004e756\njz      short loc_18004E778                                            ; +0x69, 0x18004e759\nmovzx   edx, byte ptr [rsi+80h]                                        ; +0x6b, 0x18004e75b\nadd     rcx, 140h                                                      ; +0x72, 0x18004e762\nmov     rax, [rcx]                                                     ; +0x79, 0x18004e769\ncall    qword ptr [rax+68h]                                            ; +0x7c, 0x18004e76c\nadd     rbx, 8                                                         ; +0x7f, 0x18004e76f\ncmp     rbx, rdi                                                       ; +0x83, 0x18004e773\njbe     short loc_18004E753                                            ; +0x86, 0x18004e776\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x88, 0x18004e778\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8d, 0x18004e77d\nadd     rsp, 20h                                                       ; +0x92, 0x18004e782\npop     rsi                                                            ; +0x96, 0x18004e786\nretn                                                                   ; +0x97, 0x18004e787", "xrefs": ["<???> @ 0x1800f27f0", "<???> @ 0x180140bd8", "<???> @ 0x180140be8", "<???> @ 0x18014cf68", "<???> @ 0x1801bbe18"], "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"}