{"type": "func", "start": 5729568, "end": 5729792, "name": "CCPartAnimSprite::setOpacity", "pseudocode": "// \n// CCPartAnimSprite::setOpacity from 0x576d20 to 0x576e00 (224 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x576e04\n// > <???> @ 0xb38b0\n// > <???> @ 0x11396f0\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 CCPartAnimSprite::setOpacity(CCPartAnimSprite *a1, unsigned __int8 a2)\n{\n  unsigned int v2; // w21\n  cocos2d::CCObject **arr; // x19\n  cocos2d::ccArray *data; // x2\n  CCPartAnimSprite_vtbl *v6; // x1\n  CCPartAnimSprite *v7; // x0\n  cocos2d::CCObject **v8; // x20\n  unsigned __int64 v9; // x20\n  cocos2d::CCObject *v10; // x0\n\n  v2 = a2;\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  if ( a1->getChildren(a1) )\n  {\n    if ( a1->getChildren(a1)->data->num )\n    {\n      arr = a1->getChildren(a1)->data->arr;\n      data = a1->getChildren(a1)->data;\n      v6 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      v7 = a1;\n      v8 = data->arr;\n      v9 = (unsigned __int64)&v8[v6->getChildren(v7)->data->num - 1];\n      while ( v9 >= (unsigned __int64)arr )\n      {\n        v10 = *arr;\n        if ( !*arr )\n          break;\n        ++arr;\n        ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v10->__vftable[11].~CCObject_0)(v10, v2);\n      }\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setOpacity from 0x576d20 to 0x576e00 (224 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x576e04\n; > <???> @ 0xb38b0\n; > <???> @ 0x11396f0\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, 0x576d20\nMOV             X29, SP                                                ; +0x4, 0x576d24\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x576d28\nUXTB            W21, W1                                                ; +0xc, 0x576d2c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x576d30\nMOV             W1, W21; unsigned __int8                               ; +0x14, 0x576d34\nMOV             X20, X0                                                ; +0x18, 0x576d38\nBL              _ZN7cocos2d8CCSprite10setOpacityEh; cocos2d::CCSprite::setOpacity(uchar) ; +0x1c, 0x576d3c\nLDR             X1, [X20]                                              ; +0x20, 0x576d40\nMOV             X0, X20                                                ; +0x24, 0x576d44\nLDR             X1, [X1,#0x1D8]                                        ; +0x28, 0x576d48\nBLR             X1                                                     ; +0x2c, 0x576d4c\nCBZ             X0, loc_576DF0                                         ; +0x30, 0x576d50\nLDR             X1, [X20]                                              ; +0x34, 0x576d54\nMOV             X0, X20                                                ; +0x38, 0x576d58\nLDR             X1, [X1,#0x1D8]                                        ; +0x3c, 0x576d5c\nBLR             X1                                                     ; +0x40, 0x576d60\nLDR             X0, [X0,#0x38]                                         ; +0x44, 0x576d64\nLDR             W0, [X0]                                               ; +0x48, 0x576d68\nCBZ             W0, loc_576DF0                                         ; +0x4c, 0x576d6c\nLDR             X1, [X20]                                              ; +0x50, 0x576d70\nMOV             X0, X20                                                ; +0x54, 0x576d74\nLDR             X1, [X1,#0x1D8]                                        ; +0x58, 0x576d78\nBLR             X1                                                     ; +0x5c, 0x576d7c\nLDR             X2, [X0,#0x38]                                         ; +0x60, 0x576d80\nLDR             X1, [X20]                                              ; +0x64, 0x576d84\nMOV             X0, X20                                                ; +0x68, 0x576d88\nLDR             X19, [X2,#0x10]                                        ; +0x6c, 0x576d8c\nLDR             X1, [X1,#0x1D8]                                        ; +0x70, 0x576d90\nBLR             X1                                                     ; +0x74, 0x576d94\nLDR             X2, [X0,#0x38]                                         ; +0x78, 0x576d98\nLDR             X1, [X20]                                              ; +0x7c, 0x576d9c\nMOV             X0, X20                                                ; +0x80, 0x576da0\nLDR             X20, [X2,#0x10]                                        ; +0x84, 0x576da4\nLDR             X1, [X1,#0x1D8]                                        ; +0x88, 0x576da8\nBLR             X1                                                     ; +0x8c, 0x576dac\nLDR             X0, [X0,#0x38]                                         ; +0x90, 0x576db0\nMOV             X1, #0xFFFFFFFFFFFFFFF8                                ; +0x94, 0x576db4\nLDR             W2, [X0]                                               ; +0x98, 0x576db8\nADD             X1, X1, W2,UXTW#3                                      ; +0x9c, 0x576dbc\nADD             X20, X20, X1                                           ; +0xa0, 0x576dc0\nCMP             X19, X20                                               ; +0xa4, 0x576dc4\nB.HI            loc_576DF0                                             ; +0xa8, 0x576dc8\nLDR             X0, [X19]                                              ; +0xac, 0x576dcc\nCBZ             X0, loc_576DF0                                         ; +0xb0, 0x576dd0\nLDR             X2, [X0]                                               ; +0xb4, 0x576dd4\nMOV             W1, W21                                                ; +0xb8, 0x576dd8\nADD             X19, X19, #8                                           ; +0xbc, 0x576ddc\nLDR             X2, [X2,#0x380]                                        ; +0xc0, 0x576de0\nBLR             X2                                                     ; +0xc4, 0x576de4\nCMP             X20, X19                                               ; +0xc8, 0x576de8\nB.CS            loc_576DCC                                             ; +0xcc, 0x576dec\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xd0, 0x576df0\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xd4, 0x576df4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xd8, 0x576df8\nRET                                                                    ; +0xdc, 0x576dfc", "xrefs": ["`non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x576e04", "<???> @ 0xb38b0", "<???> @ 0x11396f0"], "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"}