{"type": "func", "start": 5373574336, "end": 5373574544, "name": "AnimatedGameObject::setOpacity", "pseudocode": "// \n// AnimatedGameObject::setOpacity from 0x1404a3cc0 to 0x1404a3d90 (208 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14060ec58\n// > <???> @ 0x1406a7e00\n// > <???> @ 0x1406a7e10\n// > <???> @ 0x1406dc80c\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 AnimatedGameObject::setOpacity(AnimatedGameObject *a1, unsigned __int8 a2)\n{\n  __int64 v3; // rbp\n  std::array<short, 10> *m_groups; // rcx\n  unsigned int v5; // ebx\n  unsigned __int8 v6; // si\n  cocos2d::CCArray *v7; // rdi\n  struct cocos2d::CCObject *v8; // rax\n\n  GameObject::setOpacity(a1, a2);\n  v3 = ((unsigned __int8 (__fastcall *)(AnimatedGameObject *))a1->update)(a1);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)&a1->m_scaleX + 320LL) + 40LL))(\n    *(_QWORD *)&a1->m_scaleX + 320LL,\n    v3);\n  m_groups = a1->m_groups;\n  if ( m_groups )\n  {\n    v5 = 0;\n    v6 = 0;\n    if ( !LOBYTE(a1->m_unk2C0) )\n      v6 = v3;\n    (*(void (__fastcall **)(__int16 *, _QWORD))(*(_QWORD *)m_groups[16]._Elems + 40LL))(m_groups[16]._Elems, v6);\n    v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(std::array<short, 10> *))(*(_QWORD *)a1->m_groups + 464LL))(a1->m_groups);\n    if ( cocos2d::CCArray::count(v7) )\n    {\n      do\n      {\n        v8 = cocos2d::CCArray::objectAtIndex(v7, v5);\n        (*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v8[5].m_unknown2 + 40LL))(&v8[5].m_unknown2, v6);\n        ++v5;\n      }\n      while ( v5 < cocos2d::CCArray::count(v7) );\n    }\n  }\n}", "assembly": "; \n; AnimatedGameObject::setOpacity from 0x1404a3cc0 to 0x1404a3d90 (208 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14060ec58\n; > <???> @ 0x1406a7e00\n; > <???> @ 0x1406a7e10\n; > <???> @ 0x1406dc80c\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\nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x1404a3cc0\npush    rdi                                                            ; +0x5, 0x1404a3cc5\nsub     rsp, 20h                                                       ; +0x6, 0x1404a3cc6\nmov     rdi, rcx                                                       ; +0xa, 0x1404a3cca\ncall    GameObject__setOpacity                                         ; +0xd, 0x1404a3ccd\nmov     rax, [rdi]                                                     ; +0x12, 0x1404a3cd2\nmov     rcx, rdi                                                       ; +0x15, 0x1404a3cd5\ncall    qword ptr [rax+20h]                                            ; +0x18, 0x1404a3cd8\nmov     rcx, [rdi+488h]                                                ; +0x1b, 0x1404a3cdb\nadd     rcx, 140h                                                      ; +0x22, 0x1404a3ce2\nmovzx   ebp, al                                                        ; +0x29, 0x1404a3ce9\nmovzx   edx, bpl                                                       ; +0x2c, 0x1404a3cec\nmov     r8, [rcx]                                                      ; +0x30, 0x1404a3cf0\ncall    qword ptr [r8+28h]                                             ; +0x33, 0x1404a3cf3\nmov     rcx, [rdi+490h]                                                ; +0x37, 0x1404a3cf7\ntest    rcx, rcx                                                       ; +0x3e, 0x1404a3cfe\njz      loc_1404A3D85                                                  ; +0x41, 0x1404a3d01\nmov     [rsp+28h+arg_0], rbx                                           ; +0x47, 0x1404a3d07\nxor     ebx, ebx                                                       ; +0x4c, 0x1404a3d0c\ncmp     [rdi+2C4h], bl                                                 ; +0x4e, 0x1404a3d0e\nmov     [rsp+28h+arg_8], rsi                                           ; +0x54, 0x1404a3d14\nmov     esi, ebx                                                       ; +0x59, 0x1404a3d19\ncmovz   esi, ebp                                                       ; +0x5b, 0x1404a3d1b\nadd     rcx, 140h                                                      ; +0x5e, 0x1404a3d1e\nmovzx   edx, sil                                                       ; +0x65, 0x1404a3d25\nmov     rax, [rcx]                                                     ; +0x69, 0x1404a3d29\ncall    qword ptr [rax+28h]                                            ; +0x6c, 0x1404a3d2c\nmov     rcx, [rdi+490h]                                                ; +0x6f, 0x1404a3d2f\nmov     rax, [rcx]                                                     ; +0x76, 0x1404a3d36\ncall    qword ptr [rax+1D0h]                                           ; +0x79, 0x1404a3d39\nmov     rcx, rax                                                       ; +0x7f, 0x1404a3d3f\nmov     rdi, rax                                                       ; +0x82, 0x1404a3d42\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x85, 0x1404a3d45\ntest    eax, eax                                                       ; +0x8b, 0x1404a3d4b\njz      short loc_1404A3D7B                                            ; +0x8d, 0x1404a3d4d\nnop                                                                    ; +0x8f, 0x1404a3d4f\nmov     edx, ebx                                                       ; +0x90, 0x1404a3d50\nmov     rcx, rdi                                                       ; +0x92, 0x1404a3d52\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x95, 0x1404a3d55\nmovzx   edx, sil                                                       ; +0x9b, 0x1404a3d5b\nlea     rcx, [rax+140h]                                                ; +0x9f, 0x1404a3d5f\nmov     rax, [rcx]                                                     ; +0xa6, 0x1404a3d66\ncall    qword ptr [rax+28h]                                            ; +0xa9, 0x1404a3d69\nmov     rcx, rdi                                                       ; +0xac, 0x1404a3d6c\ninc     ebx                                                            ; +0xaf, 0x1404a3d6f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb1, 0x1404a3d71\ncmp     ebx, eax                                                       ; +0xb7, 0x1404a3d77\njb      short loc_1404A3D50                                            ; +0xb9, 0x1404a3d79\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbb, 0x1404a3d7b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xc0, 0x1404a3d80\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc5, 0x1404a3d85\nadd     rsp, 20h                                                       ; +0xca, 0x1404a3d8a\npop     rdi                                                            ; +0xce, 0x1404a3d8e\nretn                                                                   ; +0xcf, 0x1404a3d8f", "xrefs": ["<???> @ 0x14060ec58", "<???> @ 0x1406a7e00", "<???> @ 0x1406a7e10", "<???> @ 0x1406dc80c"], "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"}