{"type": "func", "start": 4298653480, "end": 4298653676, "name": "AnimatedGameObject::setOpacity", "pseudocode": "// \n// AnimatedGameObject::setOpacity from 0x100383f28 to 0x100383fec (196 bytes)\n// \n// 2 xrefs:\n// > sub_100383FEC @ 0x100383ff0\n// > <???> @ 0x1007f5470\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 AnimatedGameObject::setOpacity(AnimatedGameObject *a1, unsigned __int8 a2)\n{\n  __int64 v3; // x19\n  cocos2d::CCSprite *m_childSprite; // x0\n  __int64 v5; // x20\n  unsigned int v6; // w21\n  __int64 v7; // x0\n\n  GameObject::setOpacity(a1, a2);\n  v3 = ((__int64 (__fastcall *)(AnimatedGameObject *))a1->getOpacity)(a1);\n  ((void (__fastcall *)(CCAnimatedSprite *, __int64))a1->m_animatedSprite->setOpacity)(a1->m_animatedSprite, v3);\n  m_childSprite = a1->m_childSprite;\n  if ( m_childSprite )\n  {\n    if ( a1->m_hasNoGlow )\n      v3 = 0;\n    else\n      v3 = (unsigned int)v3;\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int64))m_childSprite->setOpacity)(m_childSprite, v3);\n    v5 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_childSprite->getChildren)(a1->m_childSprite);\n    if ( (unsigned int)sub_10024A36C(v5) )\n    {\n      v6 = 0;\n      do\n      {\n        v7 = sub_10024A388(v5, v6);\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 896LL))(v7, v3);\n        ++v6;\n      }\n      while ( v6 < (unsigned int)sub_10024A36C(v5) );\n    }\n  }\n}", "assembly": "; \n; AnimatedGameObject::setOpacity from 0x100383f28 to 0x100383fec (196 bytes)\n; \n; 2 xrefs:\n; > sub_100383FEC @ 0x100383ff0\n; > <???> @ 0x1007f5470\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100383f28\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100383f2c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100383f30\nADD             X29, SP, #0x20                                         ; +0xc, 0x100383f34\nMOV             X20, X0                                                ; +0x10, 0x100383f38\nBL              GameObject__setOpacity                                 ; +0x14, 0x100383f3c\nLDR             X8, [X20]                                              ; +0x18, 0x100383f40\nLDR             X8, [X8,#0x370]                                        ; +0x1c, 0x100383f44\nMOV             X0, X20                                                ; +0x20, 0x100383f48\nBLR             X8                                                     ; +0x24, 0x100383f4c\nMOV             X19, X0                                                ; +0x28, 0x100383f50\nLDR             X0, [X20,#0x5B8]                                       ; +0x2c, 0x100383f54\nLDR             X8, [X0]                                               ; +0x30, 0x100383f58\nLDR             X8, [X8,#0x380]                                        ; +0x34, 0x100383f5c\nMOV             X1, X19                                                ; +0x38, 0x100383f60\nBLR             X8                                                     ; +0x3c, 0x100383f64\nLDR             X0, [X20,#0x5C0]                                       ; +0x40, 0x100383f68\nCBZ             X0, loc_100383FDC                                      ; +0x44, 0x100383f6c\nLDRB            W8, [X20,#0x3FC]                                       ; +0x48, 0x100383f70\nCMP             W8, #0                                                 ; +0x4c, 0x100383f74\nCSEL            W19, WZR, W19, NE                                      ; +0x50, 0x100383f78\nLDR             X8, [X0]                                               ; +0x54, 0x100383f7c\nLDR             X8, [X8,#0x380]                                        ; +0x58, 0x100383f80\nMOV             X1, X19                                                ; +0x5c, 0x100383f84\nBLR             X8                                                     ; +0x60, 0x100383f88\nLDR             X0, [X20,#0x5C0]                                       ; +0x64, 0x100383f8c\nLDR             X8, [X0]                                               ; +0x68, 0x100383f90\nLDR             X8, [X8,#0x1D8]                                        ; +0x6c, 0x100383f94\nBLR             X8                                                     ; +0x70, 0x100383f98\nMOV             X20, X0                                                ; +0x74, 0x100383f9c\nBL              sub_10024A36C                                          ; +0x78, 0x100383fa0\nCBZ             W0, loc_100383FDC                                      ; +0x7c, 0x100383fa4\nMOV             W21, #0                                                ; +0x80, 0x100383fa8\nMOV             X0, X20                                                ; +0x84, 0x100383fac\nMOV             X1, X21                                                ; +0x88, 0x100383fb0\nBL              sub_10024A388                                          ; +0x8c, 0x100383fb4\nLDR             X8, [X0]                                               ; +0x90, 0x100383fb8\nLDR             X8, [X8,#0x380]                                        ; +0x94, 0x100383fbc\nMOV             X1, X19                                                ; +0x98, 0x100383fc0\nBLR             X8                                                     ; +0x9c, 0x100383fc4\nADD             W21, W21, #1                                           ; +0xa0, 0x100383fc8\nMOV             X0, X20                                                ; +0xa4, 0x100383fcc\nBL              sub_10024A36C                                          ; +0xa8, 0x100383fd0\nCMP             W21, W0                                                ; +0xac, 0x100383fd4\nB.CC            loc_100383FAC                                          ; +0xb0, 0x100383fd8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xb4, 0x100383fdc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb8, 0x100383fe0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xbc, 0x100383fe4\nRET                                                                    ; +0xc0, 0x100383fe8", "xrefs": ["sub_100383FEC @ 0x100383ff0", "<???> @ 0x1007f5470"], "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"}