{"type": "func", "start": 6891140, "end": 6891364, "name": "CCPartAnimSprite::setOpacity", "pseudocode": "// \n// CCPartAnimSprite::setOpacity from 0x692684 to 0x692764 (224 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x692768\n// > <???> @ 0xeaac0\n// > <???> @ 0x1417550\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:36 +0000\n// \n\n__int64 __fastcall CCPartAnimSprite::setOpacity(CCPartAnimSprite *this, unsigned __int8 a2)\n{\n  unsigned int v2; // w21\n  __int64 result; // x0\n  __int64 *v5; // x19\n  __int64 v6; // x2\n  __int64 v7; // x1\n  CCPartAnimSprite *v8; // x0\n  __int64 v9; // x20\n  unsigned __int64 i; // x20\n\n  v2 = a2;\n  cocos2d::CCSprite::setOpacity(this, a2);\n  result = (*(__int64 (__fastcall **)(CCPartAnimSprite *))(*(_QWORD *)this + 488LL))(this);\n  if ( result )\n  {\n    result = **(unsigned int **)((*(__int64 (__fastcall **)(CCPartAnimSprite *))(*(_QWORD *)this + 488LL))(this) + 56);\n    if ( (_DWORD)result )\n    {\n      v5 = *(__int64 **)(*(_QWORD *)((*(__int64 (__fastcall **)(CCPartAnimSprite *))(*(_QWORD *)this + 488LL))(this) + 56)\n                       + 16LL);\n      v6 = *(_QWORD *)((*(__int64 (__fastcall **)(CCPartAnimSprite *))(*(_QWORD *)this + 488LL))(this) + 56);\n      v7 = *(_QWORD *)this;\n      v8 = this;\n      v9 = *(_QWORD *)(v6 + 16);\n      result = *(_QWORD *)((*(__int64 (__fastcall **)(CCPartAnimSprite *))(v7 + 488))(v8) + 56);\n      for ( i = v9 + 8LL * *(unsigned int *)result - 8;\n            i >= (unsigned __int64)v5;\n            result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 912LL))(result, v2) )\n      {\n        result = *v5;\n        if ( !*v5 )\n          break;\n        ++v5;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setOpacity from 0x692684 to 0x692764 (224 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x692768\n; > <???> @ 0xeaac0\n; > <???> @ 0x1417550\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:36 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x692684\nMOV             X29, SP                                                ; +0x4, 0x692688\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x69268c\nUXTB            W21, W1                                                ; +0xc, 0x692690\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x692694\nMOV             W1, W21; unsigned __int8                               ; +0x14, 0x692698\nMOV             X20, X0                                                ; +0x18, 0x69269c\nBL              _ZN7cocos2d8CCSprite10setOpacityEh; cocos2d::CCSprite::setOpacity(uchar) ; +0x1c, 0x6926a0\nLDR             X1, [X20]                                              ; +0x20, 0x6926a4\nMOV             X0, X20                                                ; +0x24, 0x6926a8\nLDR             X1, [X1,#0x1E8]                                        ; +0x28, 0x6926ac\nBLR             X1                                                     ; +0x2c, 0x6926b0\nCBZ             X0, loc_692754                                         ; +0x30, 0x6926b4\nLDR             X1, [X20]                                              ; +0x34, 0x6926b8\nMOV             X0, X20                                                ; +0x38, 0x6926bc\nLDR             X1, [X1,#0x1E8]                                        ; +0x3c, 0x6926c0\nBLR             X1                                                     ; +0x40, 0x6926c4\nLDR             X0, [X0,#0x38]                                         ; +0x44, 0x6926c8\nLDR             W0, [X0]                                               ; +0x48, 0x6926cc\nCBZ             W0, loc_692754                                         ; +0x4c, 0x6926d0\nLDR             X1, [X20]                                              ; +0x50, 0x6926d4\nMOV             X0, X20                                                ; +0x54, 0x6926d8\nLDR             X1, [X1,#0x1E8]                                        ; +0x58, 0x6926dc\nBLR             X1                                                     ; +0x5c, 0x6926e0\nLDR             X2, [X0,#0x38]                                         ; +0x60, 0x6926e4\nLDR             X1, [X20]                                              ; +0x64, 0x6926e8\nMOV             X0, X20                                                ; +0x68, 0x6926ec\nLDR             X19, [X2,#0x10]                                        ; +0x6c, 0x6926f0\nLDR             X1, [X1,#0x1E8]                                        ; +0x70, 0x6926f4\nBLR             X1                                                     ; +0x74, 0x6926f8\nLDR             X2, [X0,#0x38]                                         ; +0x78, 0x6926fc\nLDR             X1, [X20]                                              ; +0x7c, 0x692700\nMOV             X0, X20                                                ; +0x80, 0x692704\nLDR             X20, [X2,#0x10]                                        ; +0x84, 0x692708\nLDR             X1, [X1,#0x1E8]                                        ; +0x88, 0x69270c\nBLR             X1                                                     ; +0x8c, 0x692710\nLDR             X0, [X0,#0x38]                                         ; +0x90, 0x692714\nMOV             X1, #0xFFFFFFFFFFFFFFF8                                ; +0x94, 0x692718\nLDR             W2, [X0]                                               ; +0x98, 0x69271c\nADD             X1, X1, W2,UXTW#3                                      ; +0x9c, 0x692720\nADD             X20, X20, X1                                           ; +0xa0, 0x692724\nCMP             X19, X20                                               ; +0xa4, 0x692728\nB.HI            loc_692754                                             ; +0xa8, 0x69272c\nLDR             X0, [X19]                                              ; +0xac, 0x692730\nCBZ             X0, loc_692754                                         ; +0xb0, 0x692734\nLDR             X2, [X0]                                               ; +0xb4, 0x692738\nMOV             W1, W21                                                ; +0xb8, 0x69273c\nADD             X19, X19, #8                                           ; +0xbc, 0x692740\nLDR             X2, [X2,#0x390]                                        ; +0xc0, 0x692744\nBLR             X2                                                     ; +0xc4, 0x692748\nCMP             X20, X19                                               ; +0xc8, 0x69274c\nB.CS            loc_692730                                             ; +0xcc, 0x692750\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xd0, 0x692754\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xd4, 0x692758\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xd8, 0x69275c\nRET                                                                    ; +0xdc, 0x692760", "xrefs": ["`non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x692768", "<???> @ 0xeaac0", "<???> @ 0x1417550"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}