{"type": "func", "start": 6442764064, "end": 6442764249, "name": "cocos2d::CCLabelBMFont::setOpacityModifyRGB", "pseudocode": "// \n// cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0x18004c720 to 0x18004c7d9 (185 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800ec698\n// > <???> @ 0x180137948\n// > <???> @ 0x1801379a0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1aa0\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::setOpacityModifyRGB(cocos2d::CCLabelBMFont *this, char a2)\n{\n  cocos2d::CCArray *v3; // rcx\n  __int64 v4; // rax\n  unsigned int *v5; // rbx\n  __int64 v6; // rax\n  _QWORD *v7; // rbx\n  _QWORD *i; // rsi\n  __int64 v9; // rax\n\n  BYTE2(this->m_sAdditionalTransform.ty) = a2;\n  v3 = *((cocos2d::CCArray **)this - 20);\n  if ( v3 )\n  {\n    if ( (unsigned int)cocos2d::CCArray::count(v3) )\n    {\n      v4 = *((_QWORD *)this - 20);\n      if ( v4 )\n      {\n        v5 = *(unsigned int **)(v4 + 56);\n        v6 = *v5;\n        if ( (_DWORD)v6 )\n        {\n          v7 = *((_QWORD **)v5 + 2);\n          for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )\n          {\n            if ( !*v7 )\n              break;\n            v9 = _RTDynamicCast(\n                   *v7,\n                   0,\n                   &cocos2d::CCNode `RTTI Type Descriptor',\n                   &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n                   0);\n            if ( v9 )\n              (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 48LL))(\n                v9,\n                BYTE2(this->m_sAdditionalTransform.ty));\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0x18004c720 to 0x18004c7d9 (185 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800ec698\n; > <???> @ 0x180137948\n; > <???> @ 0x1801379a0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1aa0\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    rdi                                                            ; +0x0, 0x18004c720\nsub     rsp, 30h                                                       ; +0x2, 0x18004c722\nmov     rdi, rcx                                                       ; +0x6, 0x18004c726\nmov     [rcx+8Ah], dl                                                  ; +0x9, 0x18004c729\nmov     rcx, [rcx-0A0h]; this                                          ; +0xf, 0x18004c72f\ntest    rcx, rcx                                                       ; +0x16, 0x18004c736\njz      loc_18004C7D3                                                  ; +0x19, 0x18004c739\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1f, 0x18004c73f\ntest    eax, eax                                                       ; +0x24, 0x18004c744\njz      loc_18004C7D3                                                  ; +0x26, 0x18004c746\nmov     rax, [rdi-0A0h]                                                ; +0x2c, 0x18004c74c\ntest    rax, rax                                                       ; +0x33, 0x18004c753\njz      short loc_18004C7D3                                            ; +0x36, 0x18004c756\nmov     [rsp+38h+arg_0], rbx                                           ; +0x38, 0x18004c758\nmov     rbx, [rax+38h]                                                 ; +0x3d, 0x18004c75d\nmov     eax, [rbx]                                                     ; +0x41, 0x18004c761\ntest    eax, eax                                                       ; +0x43, 0x18004c763\njz      short loc_18004C7CE                                            ; +0x45, 0x18004c765\nmov     rbx, [rbx+10h]                                                 ; +0x47, 0x18004c767\nmov     [rsp+38h+arg_10], rsi                                          ; +0x4b, 0x18004c76b\nlea     rsi, [rax-1]                                                   ; +0x50, 0x18004c770\nlea     rsi, [rbx+rsi*8]                                               ; +0x54, 0x18004c774\ncmp     rbx, rsi                                                       ; +0x58, 0x18004c778\nja      short loc_18004C7C9                                            ; +0x5b, 0x18004c77b\nmov     [rsp+38h+arg_8], rbp                                           ; +0x5d, 0x18004c77d\nxor     ebp, ebp                                                       ; +0x62, 0x18004c782\nmov     rcx, [rbx]                                                     ; +0x64, 0x18004c784\ntest    rcx, rcx                                                       ; +0x67, 0x18004c787\njz      short loc_18004C7C4                                            ; +0x6a, 0x18004c78a\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x6c, 0x18004c78c\nmov     [rsp+38h+var_18], ebp                                          ; +0x73, 0x18004c793\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x77, 0x18004c797\nxor     edx, edx                                                       ; +0x7e, 0x18004c79e\ncall    __RTDynamicCast                                                ; +0x80, 0x18004c7a0\ntest    rax, rax                                                       ; +0x85, 0x18004c7a5\njz      short loc_18004C7BB                                            ; +0x88, 0x18004c7a8\nmov     r8, [rax]                                                      ; +0x8a, 0x18004c7aa\nmov     rcx, rax                                                       ; +0x8d, 0x18004c7ad\nmovzx   edx, byte ptr [rdi+8Ah]                                        ; +0x90, 0x18004c7b0\ncall    qword ptr [r8+30h]                                             ; +0x97, 0x18004c7b7\nadd     rbx, 8                                                         ; +0x9b, 0x18004c7bb\ncmp     rbx, rsi                                                       ; +0x9f, 0x18004c7bf\njbe     short loc_18004C784                                            ; +0xa2, 0x18004c7c2\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xa4, 0x18004c7c4\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xa9, 0x18004c7c9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xae, 0x18004c7ce\nadd     rsp, 30h                                                       ; +0xb3, 0x18004c7d3\npop     rdi                                                            ; +0xb7, 0x18004c7d7\nretn                                                                   ; +0xb8, 0x18004c7d8", "xrefs": ["<???> @ 0x1800ec698", "<???> @ 0x180137948", "<???> @ 0x1801379a0", "<???> @ 0x1801438a8", "<???> @ 0x1801b1aa0"], "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"}