{"type": "func", "start": 3960982, "end": 3961102, "name": "CCPartAnimSprite::setOpacity", "pseudocode": "// \n// CCPartAnimSprite::setOpacity from 0x3c7096 to 0x3c710e (120 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x3c7112\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:35 +0000\n// \n\n_DWORD **__fastcall CCPartAnimSprite::setOpacity(CCPartAnimSprite *this, int a2)\n{\n  _DWORD **result; // r0\n  _DWORD *v5; // r5\n  int v6; // r6\n  unsigned int v7; // r4\n  _DWORD **v8; // t1\n\n  cocos2d::CCSprite::setOpacity(this, a2);\n  result = (_DWORD **)(*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this);\n  if ( result )\n  {\n    result = (_DWORD **)(*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this);\n    if ( *result[13] )\n    {\n      v5 = *(_DWORD **)(*(_DWORD *)((*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this) + 52) + 12);\n      v6 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this) + 52) + 12);\n      result = (_DWORD **)(*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this);\n      v7 = v6 + 4 * (*result[13] + 0x3FFFFFFF);\n      while ( (unsigned int)v5 <= v7 )\n      {\n        v8 = (_DWORD **)*v5++;\n        result = v8;\n        if ( !v8 )\n          break;\n        result = (_DWORD **)((int (__fastcall *)(_DWORD **, int))(*result)[114])(result, a2);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setOpacity from 0x3c7096 to 0x3c710e (120 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x3c7112\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:35 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x3c7096\nMOV             R4, R0                                                 ; +0x2, 0x3c7098\nMOV             R7, R1                                                 ; +0x4, 0x3c709a\nBL              _ZN7cocos2d8CCSprite10setOpacityEh; cocos2d::CCSprite::setOpacity(uchar) ; +0x6, 0x3c709c\nLDR             R3, [R4]                                               ; +0xa, 0x3c70a0\nMOV             R0, R4                                                 ; +0xc, 0x3c70a2\nLDR.W           R3, [R3,#0xF4]                                         ; +0xe, 0x3c70a4\nBLX             R3                                                     ; +0x12, 0x3c70a8\nCMP             R0, #0                                                 ; +0x14, 0x3c70aa\nBEQ             locret_3C710C                                          ; +0x16, 0x3c70ac\nLDR             R3, [R4]                                               ; +0x18, 0x3c70ae\nMOV             R0, R4                                                 ; +0x1a, 0x3c70b0\nLDR.W           R3, [R3,#0xF4]                                         ; +0x1c, 0x3c70b2\nBLX             R3                                                     ; +0x20, 0x3c70b6\nLDR             R3, [R0,#0x34]                                         ; +0x22, 0x3c70b8\nLDR             R3, [R3]                                               ; +0x24, 0x3c70ba\nCBNZ            R3, loc_3C70C0                                         ; +0x26, 0x3c70bc\nPOP             {R3-R7,PC}                                             ; +0x28, 0x3c70be\nLDR             R3, [R4]                                               ; +0x2a, 0x3c70c0\nMOV             R0, R4                                                 ; +0x2c, 0x3c70c2\nLDR.W           R3, [R3,#0xF4]                                         ; +0x2e, 0x3c70c4\nBLX             R3                                                     ; +0x32, 0x3c70c8\nLDR             R3, [R0,#0x34]                                         ; +0x34, 0x3c70ca\nMOV             R0, R4                                                 ; +0x36, 0x3c70cc\nLDR             R5, [R3,#0xC]                                          ; +0x38, 0x3c70ce\nLDR             R3, [R4]                                               ; +0x3a, 0x3c70d0\nLDR.W           R3, [R3,#0xF4]                                         ; +0x3c, 0x3c70d2\nBLX             R3                                                     ; +0x40, 0x3c70d6\nLDR             R3, [R0,#0x34]                                         ; +0x42, 0x3c70d8\nMOV             R0, R4                                                 ; +0x44, 0x3c70da\nLDR             R6, [R3,#0xC]                                          ; +0x46, 0x3c70dc\nLDR             R3, [R4]                                               ; +0x48, 0x3c70de\nLDR.W           R3, [R3,#0xF4]                                         ; +0x4a, 0x3c70e0\nBLX             R3                                                     ; +0x4e, 0x3c70e4\nLDR             R3, [R0,#0x34]                                         ; +0x50, 0x3c70e6\nLDR             R3, [R3]                                               ; +0x52, 0x3c70e8\nADD.W           R3, R3, #0x40000000                                    ; +0x54, 0x3c70ea\nSUBS            R3, #1                                                 ; +0x58, 0x3c70ee\nADD.W           R4, R6, R3,LSL#2                                       ; +0x5a, 0x3c70f0\nCMP             R5, R4                                                 ; +0x5e, 0x3c70f4\nBHI             locret_3C710C                                          ; +0x60, 0x3c70f6\nLDR.W           R0, [R5],#4                                            ; +0x62, 0x3c70f8\nCBZ             R0, locret_3C710A                                      ; +0x66, 0x3c70fc\nLDR             R3, [R0]                                               ; +0x68, 0x3c70fe\nMOV             R1, R7                                                 ; +0x6a, 0x3c7100\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x6c, 0x3c7102\nBLX             R3                                                     ; +0x70, 0x3c7106\nB               loc_3C70F4                                             ; +0x72, 0x3c7108\nPOP             {R3-R7,PC}                                             ; +0x74, 0x3c710a\nPOP             {R3-R7,PC}                                             ; +0x76, 0x3c710c", "xrefs": ["`non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x3c7112"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}