{"type": "func", "start": 7647128, "end": 7647332, "name": "AnimatedGameObject::setOpacity", "pseudocode": "// \n// AnimatedGameObject::setOpacity from 0x74af98 to 0x74b064 (204 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x74b068\n// > <???> @ 0xb0aa8\n// > <???> @ 0x1168180\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 AnimatedGameObject::setOpacity(AnimatedGameObject *a1, unsigned __int8 a2)\n{\n  int v3; // w0\n  unsigned int v4; // w21\n  cocos2d::CCSprite *m_childSprite; // x1\n  cocos2d::CCSprite_vtbl *v6; // x1\n  unsigned int v7; // w19\n  cocos2d::CCArray *v8; // x20\n  __int64 v9; // x0\n  bool v10; // cf\n  unsigned int v11; // w1\n\n  GameObject::setOpacity(a1, a2);\n  v3 = ((__int64 (__fastcall *)(AnimatedGameObject *))a1->getOpacity)(a1);\n  v4 = (unsigned __int8)v3;\n  a1->m_animatedSprite->setOpacity(a1->m_animatedSprite, v3);\n  m_childSprite = a1->m_childSprite;\n  if ( m_childSprite )\n  {\n    v6 = m_childSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v7 = 0;\n    if ( a1->m_hasNoGlow )\n      v4 = 0;\n    v6->setOpacity(a1->m_childSprite, v4);\n    v8 = a1->m_childSprite->getChildren(a1->m_childSprite);\n    while ( 1 )\n    {\n      v10 = v7 >= (unsigned int)cocos2d::CCArray::count(v8);\n      v11 = v7++;\n      if ( v10 )\n        break;\n      v9 = cocos2d::CCArray::objectAtIndex(v8, v11);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 896LL))(v9, v4);\n    }\n  }\n}", "assembly": "; \n; AnimatedGameObject::setOpacity from 0x74af98 to 0x74b064 (204 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x74b068\n; > <???> @ 0xb0aa8\n; > <???> @ 0x1168180\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x74af98\nMOV             X29, SP                                                ; +0x4, 0x74af9c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x74afa0\nMOV             X20, X0                                                ; +0xc, 0x74afa4\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0x74afa8\nBL              _ZN10GameObject10setOpacityEh; GameObject::setOpacity(uchar) ; +0x14, 0x74afac\nMOV             X0, X20                                                ; +0x18, 0x74afb0\nLDR             X1, [X20]                                              ; +0x1c, 0x74afb4\nLDR             X1, [X1,#0x370]                                        ; +0x20, 0x74afb8\nBLR             X1                                                     ; +0x24, 0x74afbc\nMOV             W1, W0                                                 ; +0x28, 0x74afc0\nLDR             X2, [X20,#0x5A8]                                       ; +0x2c, 0x74afc4\nUXTB            W21, W0                                                ; +0x30, 0x74afc8\nMOV             X0, X2                                                 ; +0x34, 0x74afcc\nLDR             X2, [X2]                                               ; +0x38, 0x74afd0\nLDR             X2, [X2,#0x380]                                        ; +0x3c, 0x74afd4\nBLR             X2                                                     ; +0x40, 0x74afd8\nLDR             X1, [X20,#0x5B0]                                       ; +0x44, 0x74afdc\nCBZ             X1, loc_74B054                                         ; +0x48, 0x74afe0\nLDRB            W2, [X20,#0x3EC]                                       ; +0x4c, 0x74afe4\nMOV             X0, X1                                                 ; +0x50, 0x74afe8\nLDR             X1, [X1]                                               ; +0x54, 0x74afec\nMOV             W19, #0                                                ; +0x58, 0x74aff0\nCMP             W2, WZR                                                ; +0x5c, 0x74aff4\nCSEL            W21, W21, WZR, EQ                                      ; +0x60, 0x74aff8\nLDR             X2, [X1,#0x380]                                        ; +0x64, 0x74affc\nMOV             W1, W21                                                ; +0x68, 0x74b000\nBLR             X2                                                     ; +0x6c, 0x74b004\nLDR             X1, [X20,#0x5B0]                                       ; +0x70, 0x74b008\nMOV             X0, X1                                                 ; +0x74, 0x74b00c\nLDR             X1, [X1]                                               ; +0x78, 0x74b010\nLDR             X1, [X1,#0x1D8]                                        ; +0x7c, 0x74b014\nBLR             X1                                                     ; +0x80, 0x74b018\nMOV             X20, X0                                                ; +0x84, 0x74b01c\nB               loc_74B038                                             ; +0x88, 0x74b020\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x8c, 0x74b024\nLDR             X2, [X0]                                               ; +0x90, 0x74b028\nMOV             W1, W21                                                ; +0x94, 0x74b02c\nLDR             X2, [X2,#0x380]                                        ; +0x98, 0x74b030\nBLR             X2                                                     ; +0x9c, 0x74b034\nMOV             X0, X20; this                                          ; +0xa0, 0x74b038\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa4, 0x74b03c\nCMP             W19, W0                                                ; +0xa8, 0x74b040\nMOV             W1, W19; unsigned int                                  ; +0xac, 0x74b044\nMOV             X0, X20; this                                          ; +0xb0, 0x74b048\nADD             W19, W19, #1                                           ; +0xb4, 0x74b04c\nB.CC            loc_74B024                                             ; +0xb8, 0x74b050\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xbc, 0x74b054\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xc0, 0x74b058\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xc4, 0x74b05c\nRET                                                                    ; +0xc8, 0x74b060", "xrefs": ["`non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x74b068", "<???> @ 0xb0aa8", "<???> @ 0x1168180"], "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"}