{"type": "func", "start": 6442763376, "end": 6442763580, "name": "cocos2d::CCLabelBMFont::setColor", "pseudocode": "// \n// cocos2d::CCLabelBMFont::setColor from 0x18004c470 to 0x18004c53c (204 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800ec668\n// > <???> @ 0x180137a0c\n// > <???> @ 0x180137a1c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1a1c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 = LOBYTE(this->m_sAdditionalTransform.ty) == 0;\n  *(struct cocos2d::_ccColor3B *)((char *)&this->m_sAdditionalTransform.tx + 1) = *a2;\n  HIWORD(this->m_sAdditionalTransform.d) = *(_WORD *)((char *)&this->m_sAdditionalTransform.tx + 1);\n  LOBYTE(this->m_sAdditionalTransform.tx) = HIBYTE(this->m_sAdditionalTransform.tx);\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 *))this->setZOrder)(this, &v8);\n  }\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::setColor from 0x18004c470 to 0x18004c53c (204 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800ec668\n; > <???> @ 0x180137a0c\n; > <???> @ 0x180137a1c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1a1c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x18004c470\nsub     rsp, 30h                                                       ; +0x2, 0x18004c472\ncmp     byte ptr [rcx+88h], 0                                          ; +0x6, 0x18004c476\nmov     rbx, rcx                                                       ; +0xd, 0x18004c47d\nmovzx   eax, word ptr [rdx]                                            ; +0x10, 0x18004c480\nmov     [rcx+85h], ax                                                  ; +0x13, 0x18004c483\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x1a, 0x18004c48a\nmov     [rcx+87h], al                                                  ; +0x1e, 0x18004c48e\nmovzx   eax, word ptr [rcx+85h]                                        ; +0x24, 0x18004c494\nmov     [rcx+82h], ax                                                  ; +0x2b, 0x18004c49b\nmovzx   eax, byte ptr [rcx+87h]                                        ; +0x32, 0x18004c4a2\nmov     [rcx+84h], al                                                  ; +0x39, 0x18004c4a9\njz      loc_18004C536                                                  ; +0x3f, 0x18004c4af\nmovzx   eax, cs:word_1800EB870                                         ; +0x45, 0x18004c4b5\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x4c, 0x18004c4bc\nmov     rcx, [rcx-98h]                                                 ; +0x53, 0x18004c4c3\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x5a, 0x18004c4ca\nmov     [rsp+38h+arg_0], ax                                            ; +0x61, 0x18004c4d1\nxor     edx, edx                                                       ; +0x66, 0x18004c4d6\nmovzx   eax, cs:byte_1800EB872                                         ; +0x68, 0x18004c4d8\nmov     [rsp+38h+arg_2], al                                            ; +0x6f, 0x18004c4df\nmov     [rsp+38h+arg_8], rdi                                           ; +0x73, 0x18004c4e3\nmov     [rsp+38h+var_18], 0                                            ; +0x78, 0x18004c4e8\ncall    __RTDynamicCast                                                ; +0x80, 0x18004c4f0\nmov     rdi, rax                                                       ; +0x85, 0x18004c4f5\ntest    rax, rax                                                       ; +0x88, 0x18004c4f8\njz      short loc_18004C523                                            ; +0x8b, 0x18004c4fb\nmov     rdx, [rax]                                                     ; +0x8d, 0x18004c4fd\nmov     rcx, rax                                                       ; +0x90, 0x18004c500\ncall    qword ptr [rdx+40h]                                            ; +0x93, 0x18004c503\ntest    al, al                                                         ; +0x96, 0x18004c506\njz      short loc_18004C523                                            ; +0x98, 0x18004c508\nmov     rdx, [rdi]                                                     ; +0x9a, 0x18004c50a\nmov     rcx, rdi                                                       ; +0x9d, 0x18004c50d\ncall    qword ptr [rdx+10h]                                            ; +0xa0, 0x18004c510\nmovzx   ecx, word ptr [rax]                                            ; +0xa3, 0x18004c513\nmov     [rsp+38h+arg_0], cx                                            ; +0xa6, 0x18004c516\nmovzx   eax, byte ptr [rax+2]                                          ; +0xab, 0x18004c51b\nmov     [rsp+38h+arg_2], al                                            ; +0xaf, 0x18004c51f\nmov     rax, [rbx]                                                     ; +0xb3, 0x18004c523\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xb6, 0x18004c526\nmov     rcx, rbx                                                       ; +0xbb, 0x18004c52b\ncall    qword ptr [rax+50h]                                            ; +0xbe, 0x18004c52e\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xc1, 0x18004c531\nadd     rsp, 30h                                                       ; +0xc6, 0x18004c536\npop     rbx                                                            ; +0xca, 0x18004c53a\nretn                                                                   ; +0xcb, 0x18004c53b", "xrefs": ["<???> @ 0x1800ec668", "<???> @ 0x180137a0c", "<???> @ 0x180137a1c", "<???> @ 0x1801438a8", "<???> @ 0x1801b1a1c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}