{"type": "func", "start": 6442763920, "end": 6442764062, "name": "cocos2d::CCLabelBMFont::setOpacity", "pseudocode": "// \n// cocos2d::CCLabelBMFont::setOpacity from 0x18004c690 to 0x18004c71e (142 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800ec690\n// > <???> @ 0x1801379b8\n// > <???> @ 0x1801379c8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1a7c\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::setOpacity(cocos2d::CCLabelBMFont *this, char a2)\n{\n  bool v2; // zf\n  unsigned __int8 v4; // si\n  __int64 v5; // rax\n  __int64 v6; // rdi\n\n  v2 = BYTE1(this->m_sAdditionalTransform.ty) == 0;\n  BYTE1(this->m_sAdditionalTransform.d) = a2;\n  LOBYTE(this->m_sAdditionalTransform.d) = a2;\n  if ( !v2 )\n  {\n    v4 = -1;\n    v5 = _RTDynamicCast(\n           *((_QWORD *)this - 19),\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 + 88LL))(v5) )\n        v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 24LL))(v6);\n    }\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))this->setVertexZ)(this, v4);\n  }\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::setOpacity from 0x18004c690 to 0x18004c71e (142 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800ec690\n; > <???> @ 0x1801379b8\n; > <???> @ 0x1801379c8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1a7c\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, 0x18004c690\nsub     rsp, 30h                                                       ; +0x2, 0x18004c692\ncmp     byte ptr [rcx+89h], 0                                          ; +0x6, 0x18004c696\nmov     rbx, rcx                                                       ; +0xd, 0x18004c69d\nmov     [rcx+81h], dl                                                  ; +0x10, 0x18004c6a0\nmov     [rcx+80h], dl                                                  ; +0x16, 0x18004c6a6\njz      short loc_18004C718                                            ; +0x1c, 0x18004c6ac\nmov     rcx, [rcx-98h]                                                 ; +0x1e, 0x18004c6ae\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x25, 0x18004c6b5\nmov     [rsp+38h+arg_0], rsi                                           ; +0x2c, 0x18004c6bc\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x31, 0x18004c6c1\nxor     edx, edx                                                       ; +0x38, 0x18004c6c8\nmov     [rsp+38h+arg_8], rdi                                           ; +0x3a, 0x18004c6ca\nmov     sil, 0FFh                                                      ; +0x3f, 0x18004c6cf\nmov     [rsp+38h+var_18], 0                                            ; +0x42, 0x18004c6d2\ncall    __RTDynamicCast                                                ; +0x4a, 0x18004c6da\nmov     rdi, rax                                                       ; +0x4f, 0x18004c6df\ntest    rax, rax                                                       ; +0x52, 0x18004c6e2\njz      short loc_18004C700                                            ; +0x55, 0x18004c6e5\nmov     rax, [rax]                                                     ; +0x57, 0x18004c6e7\nmov     rcx, rdi                                                       ; +0x5a, 0x18004c6ea\ncall    qword ptr [rax+58h]                                            ; +0x5d, 0x18004c6ed\ntest    al, al                                                         ; +0x60, 0x18004c6f0\njz      short loc_18004C700                                            ; +0x62, 0x18004c6f2\nmov     rax, [rdi]                                                     ; +0x64, 0x18004c6f4\nmov     rcx, rdi                                                       ; +0x67, 0x18004c6f7\ncall    qword ptr [rax+18h]                                            ; +0x6a, 0x18004c6fa\nmovzx   esi, al                                                        ; +0x6d, 0x18004c6fd\nmov     r8, [rbx]                                                      ; +0x70, 0x18004c700\nmovzx   edx, sil                                                       ; +0x73, 0x18004c703\nmov     rcx, rbx                                                       ; +0x77, 0x18004c707\ncall    qword ptr [r8+68h]                                             ; +0x7a, 0x18004c70a\nmov     rdi, [rsp+38h+arg_8]                                           ; +0x7e, 0x18004c70e\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x83, 0x18004c713\nadd     rsp, 30h                                                       ; +0x88, 0x18004c718\npop     rbx                                                            ; +0x8c, 0x18004c71c\nretn                                                                   ; +0x8d, 0x18004c71d", "xrefs": ["<???> @ 0x1800ec690", "<???> @ 0x1801379b8", "<???> @ 0x1801379c8", "<???> @ 0x1801438a8", "<???> @ 0x1801b1a7c"], "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"}