{"type": "func", "start": 5371308016, "end": 5371308211, "name": "SimplePlayer::setOpacity", "pseudocode": "// \n// SimplePlayer::setOpacity from 0x14027a7f0 to 0x14027a8b3 (195 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14056a888\n// > <???> @ 0x1406d10dc\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 SimplePlayer::setOpacity(SimplePlayer *a1, unsigned __int8 a2)\n{\n  cocos2d::CCRGBAProtocol_vtbl *v4; // rcx\n  __int64 v5; // rcx\n\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)&a1->m_fTransformY + 320LL) + 40LL))(*(_QWORD *)&a1->m_fTransformY + 320LL);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_bReorderChildDirty + 320LL) + 40LL))(\n    *(_QWORD *)&a1->m_bReorderChildDirty + 320LL,\n    a2);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_nUpdateScriptHandler + 320LL) + 40LL))(\n    *(_QWORD *)&a1->m_nUpdateScriptHandler + 320LL,\n    a2);\n  (*(void (__fastcall **)(cocos2d::CCDictionary **, _QWORD))&a1->m_pComponentContainer[13].m_pComponents->m_unknown2)(\n    &a1->m_pComponentContainer[13].m_pComponents,\n    a2);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_bUseChildIndex + 320LL) + 40LL))(\n    *(_QWORD *)&a1->m_bUseChildIndex + 320LL,\n    a2);\n  v4 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable;\n  if ( v4 )\n    (*((void (__fastcall **)(__int64, _QWORD))v4[2].setCascadeOpacityEnabled + 5))(\n      (__int64)&v4[2].setCascadeOpacityEnabled,\n      a2);\n  v5 = *(_QWORD *)&a1->_displayedOpacity;\n  if ( v5 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v5 + 320) + 40LL))(v5 + 320, a2);\n}", "assembly": "; \n; SimplePlayer::setOpacity from 0x14027a7f0 to 0x14027a8b3 (195 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14056a888\n; > <???> @ 0x1406d10dc\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14027a7f0\npush    rdi                                                            ; +0x5, 0x14027a7f5\nsub     rsp, 20h                                                       ; +0x6, 0x14027a7f6\nmov     rdi, rcx                                                       ; +0xa, 0x14027a7fa\nmovzx   ebx, dl                                                        ; +0xd, 0x14027a7fd\nmov     rcx, [rcx+118h]                                                ; +0x10, 0x14027a800\nadd     rcx, 140h                                                      ; +0x17, 0x14027a807\nmov     rax, [rcx]                                                     ; +0x1e, 0x14027a80e\ncall    qword ptr [rax+28h]                                            ; +0x21, 0x14027a811\nmov     rcx, [rdi+120h]                                                ; +0x24, 0x14027a814\nmovzx   edx, bl                                                        ; +0x2b, 0x14027a81b\nadd     rcx, 140h                                                      ; +0x2e, 0x14027a81e\nmov     rax, [rcx]                                                     ; +0x35, 0x14027a825\ncall    qword ptr [rax+28h]                                            ; +0x38, 0x14027a828\nmov     rcx, [rdi+128h]                                                ; +0x3b, 0x14027a82b\nmovzx   edx, bl                                                        ; +0x42, 0x14027a832\nadd     rcx, 140h                                                      ; +0x45, 0x14027a835\nmov     rax, [rcx]                                                     ; +0x4c, 0x14027a83c\ncall    qword ptr [rax+28h]                                            ; +0x4f, 0x14027a83f\nmov     rcx, [rdi+130h]                                                ; +0x52, 0x14027a842\nmovzx   edx, bl                                                        ; +0x59, 0x14027a849\nadd     rcx, 140h                                                      ; +0x5c, 0x14027a84c\nmov     rax, [rcx]                                                     ; +0x63, 0x14027a853\ncall    qword ptr [rax+28h]                                            ; +0x66, 0x14027a856\nmov     rcx, [rdi+138h]                                                ; +0x69, 0x14027a859\nmovzx   edx, bl                                                        ; +0x70, 0x14027a860\nadd     rcx, 140h                                                      ; +0x73, 0x14027a863\nmov     rax, [rcx]                                                     ; +0x7a, 0x14027a86a\ncall    qword ptr [rax+28h]                                            ; +0x7d, 0x14027a86d\nmov     rcx, [rdi+140h]                                                ; +0x80, 0x14027a870\ntest    rcx, rcx                                                       ; +0x87, 0x14027a877\njz      short loc_14027A88C                                            ; +0x8a, 0x14027a87a\nadd     rcx, 140h                                                      ; +0x8c, 0x14027a87c\nmovzx   edx, bl                                                        ; +0x93, 0x14027a883\nmov     rax, [rcx]                                                     ; +0x96, 0x14027a886\ncall    qword ptr [rax+28h]                                            ; +0x99, 0x14027a889\nmov     rcx, [rdi+148h]                                                ; +0x9c, 0x14027a88c\ntest    rcx, rcx                                                       ; +0xa3, 0x14027a893\njz      short loc_14027A8A8                                            ; +0xa6, 0x14027a896\nadd     rcx, 140h                                                      ; +0xa8, 0x14027a898\nmovzx   edx, bl                                                        ; +0xaf, 0x14027a89f\nmov     rax, [rcx]                                                     ; +0xb2, 0x14027a8a2\ncall    qword ptr [rax+28h]                                            ; +0xb5, 0x14027a8a5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb8, 0x14027a8a8\nadd     rsp, 20h                                                       ; +0xbd, 0x14027a8ad\npop     rdi                                                            ; +0xc1, 0x14027a8b1\nretn                                                                   ; +0xc2, 0x14027a8b2", "xrefs": ["<???> @ 0x14056a888", "<???> @ 0x1406d10dc"], "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"}