{"type": "func", "start": 4298593552, "end": 4298593733, "name": "CCPartAnimSprite::setOpacity", "pseudocode": "// \n// CCPartAnimSprite::setOpacity from 0x100375510 to 0x1003755c5 (181 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10091da80\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 CCPartAnimSprite::setOpacity(CCPartAnimSprite *a1, unsigned __int8 a2)\n{\n  _QWORD *v2; // r15\n  __int64 v3; // r12\n  unsigned __int64 i; // r14\n\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) )\n  {\n    if ( **(_DWORD **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) )\n    {\n      v2 = *(_QWORD **)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);\n      v3 = *(_QWORD *)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);\n      for ( i = v3\n              + 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56)\n              - 8; (unsigned __int64)v2 <= i; ++v2 )\n      {\n        if ( !*v2 )\n          break;\n        (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v2 + 896LL))(*v2, a2);\n      }\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setOpacity from 0x100375510 to 0x1003755c5 (181 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10091da80\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\npush    rbp                                                            ; +0x0, 0x100375510\nmov     rbp, rsp                                                       ; +0x1, 0x100375511\npush    r15                                                            ; +0x4, 0x100375514\npush    r14                                                            ; +0x6, 0x100375516\npush    r12                                                            ; +0x8, 0x100375518\npush    rbx                                                            ; +0xa, 0x10037551a\nmov     ebx, esi                                                       ; +0xb, 0x10037551b\nmov     r14, rdi                                                       ; +0xd, 0x10037551d\ncall    cocos2d__CCSprite__setOpacity                                  ; +0x10, 0x100375520\nmov     rax, [r14]                                                     ; +0x15, 0x100375525\nmov     rdi, r14                                                       ; +0x18, 0x100375528\ncall    qword ptr [rax+1D8h]                                           ; +0x1b, 0x10037552b\ntest    rax, rax                                                       ; +0x21, 0x100375531\njz      loc_1003755BC                                                  ; +0x24, 0x100375534\nmov     rax, [r14]                                                     ; +0x2a, 0x10037553a\nmov     rdi, r14                                                       ; +0x2d, 0x10037553d\ncall    qword ptr [rax+1D8h]                                           ; +0x30, 0x100375540\nmov     rax, [rax+38h]                                                 ; +0x36, 0x100375546\ncmp     dword ptr [rax], 0                                             ; +0x3a, 0x10037554a\njz      short loc_1003755BC                                            ; +0x3d, 0x10037554d\nmov     rax, [r14]                                                     ; +0x3f, 0x10037554f\nmov     rdi, r14                                                       ; +0x42, 0x100375552\ncall    qword ptr [rax+1D8h]                                           ; +0x45, 0x100375555\nmov     rax, [rax+38h]                                                 ; +0x4b, 0x10037555b\nmov     r15, [rax+10h]                                                 ; +0x4f, 0x10037555f\nmov     rax, [r14]                                                     ; +0x53, 0x100375563\nmov     rdi, r14                                                       ; +0x56, 0x100375566\ncall    qword ptr [rax+1D8h]                                           ; +0x59, 0x100375569\nmov     rax, [rax+38h]                                                 ; +0x5f, 0x10037556f\nmov     r12, [rax+10h]                                                 ; +0x63, 0x100375573\nmov     rax, [r14]                                                     ; +0x67, 0x100375577\nmov     rdi, r14                                                       ; +0x6a, 0x10037557a\ncall    qword ptr [rax+1D8h]                                           ; +0x6d, 0x10037557d\nmov     rax, [rax+38h]                                                 ; +0x73, 0x100375583\nmov     eax, [rax]                                                     ; +0x77, 0x100375587\nlea     r14, [r12+rax*8]                                               ; +0x79, 0x100375589\nadd     r14, 0FFFFFFFFFFFFFFF8h                                        ; +0x7d, 0x10037558d\ncmp     r15, r14                                                       ; +0x81, 0x100375591\nja      short loc_1003755BC                                            ; +0x84, 0x100375594\nmovzx   ebx, bl                                                        ; +0x86, 0x100375596\nnop     dword ptr [rax+00000000h]                                      ; +0x89, 0x100375599\nmov     rdi, [r15]                                                     ; +0x90, 0x1003755a0\ntest    rdi, rdi                                                       ; +0x93, 0x1003755a3\njz      short loc_1003755BC                                            ; +0x96, 0x1003755a6\nmov     rax, [rdi]                                                     ; +0x98, 0x1003755a8\nmov     esi, ebx                                                       ; +0x9b, 0x1003755ab\ncall    qword ptr [rax+380h]                                           ; +0x9d, 0x1003755ad\nadd     r15, 8                                                         ; +0xa3, 0x1003755b3\ncmp     r15, r14                                                       ; +0xa7, 0x1003755b7\njbe     short loc_1003755A0                                            ; +0xaa, 0x1003755ba\npop     rbx                                                            ; +0xac, 0x1003755bc\npop     r12                                                            ; +0xad, 0x1003755bd\npop     r14                                                            ; +0xaf, 0x1003755bf\npop     r15                                                            ; +0xb1, 0x1003755c1\npop     rbp                                                            ; +0xb3, 0x1003755c3\nretn                                                                   ; +0xb4, 0x1003755c4", "xrefs": ["<???> @ 0x10091da80"], "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"}