{"type": "func", "start": 4296766368, "end": 4296766546, "name": "AnimatedGameObject::setOpacity", "pseudocode": "// \n// AnimatedGameObject::setOpacity from 0x1001b73a0 to 0x1001b7452 (178 bytes)\n// \n// 2 xrefs:\n// > sub_1001B7460 @ 0x1001b746c\n// > <???> @ 0x1008c43e8\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; // r14\n  cocos2d::CCSprite *m_childSprite; // rdi\n  unsigned int v5; // ebx\n  __int64 v6; // r15\n  __int64 v7; // rax\n\n  GameObject::setOpacity(a1, a2);\n  v3 = ((unsigned __int8 (__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    v5 = 0;\n    if ( a1->m_hasNoGlow )\n      LOBYTE(v3) = 0;\n    ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))m_childSprite->setOpacity)(m_childSprite, (unsigned __int8)v3);\n    v6 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_childSprite->getChildren)(a1->m_childSprite);\n    if ( (unsigned int)sub_100720070(v6) )\n    {\n      do\n      {\n        v7 = sub_1007200C0(v6, v5);\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 896LL))(v7, (unsigned __int8)v3);\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_100720070(v6) );\n    }\n  }\n}", "assembly": "; \n; AnimatedGameObject::setOpacity from 0x1001b73a0 to 0x1001b7452 (178 bytes)\n; \n; 2 xrefs:\n; > sub_1001B7460 @ 0x1001b746c\n; > <???> @ 0x1008c43e8\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, 0x1001b73a0\nmov     rbp, rsp                                                       ; +0x1, 0x1001b73a1\npush    r15                                                            ; +0x4, 0x1001b73a4\npush    r14                                                            ; +0x6, 0x1001b73a6\npush    rbx                                                            ; +0x8, 0x1001b73a8\npush    rax                                                            ; +0x9, 0x1001b73a9\nmov     r15, rdi                                                       ; +0xa, 0x1001b73aa\ncall    GameObject__setOpacity                                         ; +0xd, 0x1001b73ad\nmov     rax, [r15]                                                     ; +0x12, 0x1001b73b2\nmov     rdi, r15                                                       ; +0x15, 0x1001b73b5\ncall    qword ptr [rax+370h]                                           ; +0x18, 0x1001b73b8\nmov     rdi, [r15+5B8h]                                                ; +0x1e, 0x1001b73be\nmov     rcx, [rdi]                                                     ; +0x25, 0x1001b73c5\nmovzx   r14d, al                                                       ; +0x28, 0x1001b73c8\nmov     esi, r14d                                                      ; +0x2c, 0x1001b73cc\ncall    qword ptr [rcx+380h]                                           ; +0x2f, 0x1001b73cf\nmov     rdi, [r15+5C0h]                                                ; +0x35, 0x1001b73d5\ntest    rdi, rdi                                                       ; +0x3c, 0x1001b73dc\njz      short loc_1001B7447                                            ; +0x3f, 0x1001b73df\nxor     ebx, ebx                                                       ; +0x41, 0x1001b73e1\ncmp     byte ptr [r15+3FCh], 0                                         ; +0x43, 0x1001b73e3\ncmovnz  r14d, ebx                                                      ; +0x4b, 0x1001b73eb\nmov     rax, [rdi]                                                     ; +0x4f, 0x1001b73ef\nmovzx   r14d, r14b                                                     ; +0x52, 0x1001b73f2\nmov     esi, r14d                                                      ; +0x56, 0x1001b73f6\ncall    qword ptr [rax+380h]                                           ; +0x59, 0x1001b73f9\nmov     rdi, [r15+5C0h]                                                ; +0x5f, 0x1001b73ff\nmov     rax, [rdi]                                                     ; +0x66, 0x1001b7406\ncall    qword ptr [rax+1D8h]                                           ; +0x69, 0x1001b7409\nmov     r15, rax                                                       ; +0x6f, 0x1001b740f\nmov     rdi, rax                                                       ; +0x72, 0x1001b7412\ncall    sub_100720070                                                  ; +0x75, 0x1001b7415\ntest    eax, eax                                                       ; +0x7a, 0x1001b741a\njz      short loc_1001B7447                                            ; +0x7c, 0x1001b741c\nxchg    ax, ax                                                         ; +0x7e, 0x1001b741e\nmov     rdi, r15                                                       ; +0x80, 0x1001b7420\nmov     esi, ebx                                                       ; +0x83, 0x1001b7423\ncall    sub_1007200C0                                                  ; +0x85, 0x1001b7425\nmov     rcx, [rax]                                                     ; +0x8a, 0x1001b742a\nmov     rdi, rax                                                       ; +0x8d, 0x1001b742d\nmov     esi, r14d                                                      ; +0x90, 0x1001b7430\ncall    qword ptr [rcx+380h]                                           ; +0x93, 0x1001b7433\ninc     ebx                                                            ; +0x99, 0x1001b7439\nmov     rdi, r15                                                       ; +0x9b, 0x1001b743b\ncall    sub_100720070                                                  ; +0x9e, 0x1001b743e\ncmp     ebx, eax                                                       ; +0xa3, 0x1001b7443\njb      short loc_1001B7420                                            ; +0xa5, 0x1001b7445\nadd     rsp, 8                                                         ; +0xa7, 0x1001b7447\npop     rbx                                                            ; +0xab, 0x1001b744b\npop     r14                                                            ; +0xac, 0x1001b744c\npop     r15                                                            ; +0xae, 0x1001b744e\npop     rbp                                                            ; +0xb0, 0x1001b7450\nretn                                                                   ; +0xb1, 0x1001b7451", "xrefs": ["sub_1001B7460 @ 0x1001b746c", "<???> @ 0x1008c43e8"], "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"}