{"type": "func", "start": 6442770496, "end": 6442770706, "name": "cocos2d::CCLabelBMFont::setColor", "pseudocode": "// \n// cocos2d::CCLabelBMFont::setColor from 0x18004e040 to 0x18004e112 (210 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800f2788\n// > <???> @ 0x180140bfc\n// > <???> @ 0x180140c0c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbcb0\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::setColor(cocos2d::CCLabelBMFont *this, const struct cocos2d::_ccColor3B *a2)\n{\n  bool v2; // zf\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  __int64 v6; // rdi\n  __int64 v7; // rax\n  __int16 v8; // [rsp+40h] [rbp+8h] BYREF\n  char v9; // [rsp+42h] [rbp+Ah]\n\n  v2 = *((_BYTE *)this + 136) == 0;\n  *(_WORD *)((char *)this + 133) = *(_WORD *)a2;\n  *((_BYTE *)this + 135) = *((_BYTE *)a2 + 2);\n  *((_WORD *)this + 65) = *(_WORD *)((char *)this + 133);\n  *((_BYTE *)this + 132) = *((_BYTE *)this + 135);\n  if ( !v2 )\n  {\n    v4 = *((_QWORD *)this - 19);\n    v8 = -1;\n    v9 = -1;\n    v5 = _RTDynamicCast(\n           v4,\n           0,\n           &cocos2d::CCNode `RTTI Type Descriptor',\n           &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n           0);\n    v6 = v5;\n    if ( v5 )\n    {\n      if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) )\n      {\n        v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);\n        v8 = *(_WORD *)v7;\n        v9 = *(_BYTE *)(v7 + 2);\n      }\n    }\n    (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int16 *))(*(_QWORD *)this + 80LL))(this, &v8);\n  }\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::setColor from 0x18004e040 to 0x18004e112 (210 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800f2788\n; > <???> @ 0x180140bfc\n; > <???> @ 0x180140c0c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbcb0\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; \npush    rbx                                                            ; +0x0, 0x18004e040\nsub     rsp, 30h                                                       ; +0x2, 0x18004e042\ncmp     byte ptr [rcx+88h], 0                                          ; +0x6, 0x18004e046\nmov     rbx, rcx                                                       ; +0xd, 0x18004e04d\nmovzx   eax, word ptr [rdx]                                            ; +0x10, 0x18004e050\nmov     [rcx+85h], ax                                                  ; +0x13, 0x18004e053\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x1a, 0x18004e05a\nmov     [rcx+87h], al                                                  ; +0x1e, 0x18004e05e\nmovzx   eax, word ptr [rcx+85h]                                        ; +0x24, 0x18004e064\nmov     [rcx+82h], ax                                                  ; +0x2b, 0x18004e06b\nmovzx   eax, byte ptr [rcx+87h]                                        ; +0x32, 0x18004e072\nmov     [rcx+84h], al                                                  ; +0x39, 0x18004e079\njz      loc_18004E10C                                                  ; +0x3f, 0x18004e07f\nmovzx   eax, cs:word_1800F1960                                         ; +0x45, 0x18004e085\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x4c, 0x18004e08c\nmov     rcx, [rcx-98h]                                                 ; +0x53, 0x18004e093\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x5a, 0x18004e09a\nmov     [rsp+38h+arg_0], ax                                            ; +0x61, 0x18004e0a1\nxor     edx, edx                                                       ; +0x66, 0x18004e0a6\nmovzx   eax, cs:byte_1800F1962                                         ; +0x68, 0x18004e0a8\nmov     [rsp+38h+arg_2], al                                            ; +0x6f, 0x18004e0af\nmov     [rsp+38h+arg_8], rdi                                           ; +0x73, 0x18004e0b3\nmov     [rsp+38h+var_18], 0                                            ; +0x78, 0x18004e0b8\ncall    __RTDynamicCast                                                ; +0x80, 0x18004e0c0\nmov     rdi, rax                                                       ; +0x85, 0x18004e0c5\ntest    rax, rax                                                       ; +0x88, 0x18004e0c8\njz      short loc_18004E0F9                                            ; +0x8b, 0x18004e0cb\nmov     rcx, [rax]                                                     ; +0x8d, 0x18004e0cd\nmov     rdx, [rcx+40h]                                                 ; +0x90, 0x18004e0d0\nmov     rcx, rax                                                       ; +0x94, 0x18004e0d4\ncall    rdx                                                            ; +0x97, 0x18004e0d7\ntest    al, al                                                         ; +0x99, 0x18004e0d9\njz      short loc_18004E0F9                                            ; +0x9b, 0x18004e0db\nmov     rcx, [rdi]                                                     ; +0x9d, 0x18004e0dd\nmov     rdx, [rcx+10h]                                                 ; +0xa0, 0x18004e0e0\nmov     rcx, rdi                                                       ; +0xa4, 0x18004e0e4\ncall    rdx                                                            ; +0xa7, 0x18004e0e7\nmovzx   ecx, word ptr [rax]                                            ; +0xa9, 0x18004e0e9\nmov     [rsp+38h+arg_0], cx                                            ; +0xac, 0x18004e0ec\nmovzx   eax, byte ptr [rax+2]                                          ; +0xb1, 0x18004e0f1\nmov     [rsp+38h+arg_2], al                                            ; +0xb5, 0x18004e0f5\nmov     rax, [rbx]                                                     ; +0xb9, 0x18004e0f9\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xbc, 0x18004e0fc\nmov     rcx, rbx                                                       ; +0xc1, 0x18004e101\ncall    qword ptr [rax+50h]                                            ; +0xc4, 0x18004e104\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xc7, 0x18004e107\nadd     rsp, 30h                                                       ; +0xcc, 0x18004e10c\npop     rbx                                                            ; +0xd0, 0x18004e110\nretn                                                                   ; +0xd1, 0x18004e111", "xrefs": ["<???> @ 0x1800f2788", "<???> @ 0x180140bfc", "<???> @ 0x180140c0c", "<???> @ 0x18014cf68", "<???> @ 0x1801bbcb0"], "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"}