{"type": "func", "start": 5375285744, "end": 5375285952, "name": "AnimatedGameObject::setOpacity", "pseudocode": "// \n// AnimatedGameObject::setOpacity from 0x1406459f0 to 0x140645ac0 (208 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140821150\n// > <???> @ 0x1408e88ac\n// > <???> @ 0x1408e88bc\n// > <???> @ 0x1409313a0\n// \n// This function is hookable on this platform (idp: pc, 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 11:35:36 +0000\n// \n\nunsigned int __fastcall AnimatedGameObject::setOpacity(__int64 a1, int a2)\n{\n  __int64 v3; // rbp\n  unsigned int result; // eax\n  __int64 v5; // rcx\n  unsigned int v6; // ebx\n  unsigned __int8 v7; // si\n  cocos2d::CCArray *v8; // rdi\n  struct cocos2d::CCObject *v9; // rax\n\n  GameObject::setOpacity(a1, a2);\n  v3 = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 32LL))(a1);\n  result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 1160) + 320LL) + 40LL))(\n             *(_QWORD *)(a1 + 1160) + 320LL,\n             v3);\n  v5 = *(_QWORD *)(a1 + 1168);\n  if ( v5 )\n  {\n    v6 = 0;\n    v7 = 0;\n    if ( !*(_BYTE *)(a1 + 708) )\n      v7 = v3;\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v5 + 320) + 40LL))(v5 + 320, v7);\n    v8 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1168) + 480LL))(*(_QWORD *)(a1 + 1168));\n    result = cocos2d::CCArray::count(v8);\n    if ( result )\n    {\n      do\n      {\n        v9 = cocos2d::CCArray::objectAtIndex(v8, v6);\n        (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v9 + 40) + 40LL))((__int64)v9 + 320, v7);\n        ++v6;\n        result = cocos2d::CCArray::count(v8);\n      }\n      while ( v6 < result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; AnimatedGameObject::setOpacity from 0x1406459f0 to 0x140645ac0 (208 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140821150\n; > <???> @ 0x1408e88ac\n; > <???> @ 0x1408e88bc\n; > <???> @ 0x1409313a0\n; \n; This function is hookable on this platform (idp: pc, 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 11:35:36 +0000\n; \nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x1406459f0\npush    rdi                                                            ; +0x5, 0x1406459f5\nsub     rsp, 20h                                                       ; +0x6, 0x1406459f6\nmov     rdi, rcx                                                       ; +0xa, 0x1406459fa\ncall    GameObject__setOpacity                                         ; +0xd, 0x1406459fd\nmov     rax, [rdi]                                                     ; +0x12, 0x140645a02\nmov     rcx, rdi                                                       ; +0x15, 0x140645a05\ncall    qword ptr [rax+20h]                                            ; +0x18, 0x140645a08\nmov     rcx, [rdi+488h]                                                ; +0x1b, 0x140645a0b\nadd     rcx, 140h                                                      ; +0x22, 0x140645a12\nmovzx   ebp, al                                                        ; +0x29, 0x140645a19\nmov     rdx, [rcx]                                                     ; +0x2c, 0x140645a1c\nmov     r8, [rdx+28h]                                                  ; +0x2f, 0x140645a1f\nmovzx   edx, bpl                                                       ; +0x33, 0x140645a23\ncall    r8                                                             ; +0x37, 0x140645a27\nmov     rcx, [rdi+490h]                                                ; +0x3a, 0x140645a2a\ntest    rcx, rcx                                                       ; +0x41, 0x140645a31\njz      short loc_140645AB5                                            ; +0x44, 0x140645a34\nmov     [rsp+28h+arg_0], rbx                                           ; +0x46, 0x140645a36\nxor     ebx, ebx                                                       ; +0x4b, 0x140645a3b\ncmp     [rdi+2C4h], bl                                                 ; +0x4d, 0x140645a3d\nmov     [rsp+28h+arg_8], rsi                                           ; +0x53, 0x140645a43\nmov     esi, ebx                                                       ; +0x58, 0x140645a48\ncmovz   esi, ebp                                                       ; +0x5a, 0x140645a4a\nadd     rcx, 140h                                                      ; +0x5d, 0x140645a4d\nmovzx   edx, sil                                                       ; +0x64, 0x140645a54\nmov     rax, [rcx]                                                     ; +0x68, 0x140645a58\ncall    qword ptr [rax+28h]                                            ; +0x6b, 0x140645a5b\nmov     rcx, [rdi+490h]                                                ; +0x6e, 0x140645a5e\nmov     rax, [rcx]                                                     ; +0x75, 0x140645a65\ncall    qword ptr [rax+1E0h]                                           ; +0x78, 0x140645a68\nmov     rcx, rax                                                       ; +0x7e, 0x140645a6e\nmov     rdi, rax                                                       ; +0x81, 0x140645a71\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x84, 0x140645a74\ntest    eax, eax                                                       ; +0x8a, 0x140645a7a\njz      short loc_140645AAB                                            ; +0x8c, 0x140645a7c\nxchg    ax, ax                                                         ; +0x8e, 0x140645a7e\nmov     edx, ebx                                                       ; +0x90, 0x140645a80\nmov     rcx, rdi                                                       ; +0x92, 0x140645a82\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x95, 0x140645a85\nmovzx   edx, sil                                                       ; +0x9b, 0x140645a8b\nlea     rcx, [rax+140h]                                                ; +0x9f, 0x140645a8f\nmov     rax, [rcx]                                                     ; +0xa6, 0x140645a96\ncall    qword ptr [rax+28h]                                            ; +0xa9, 0x140645a99\nmov     rcx, rdi                                                       ; +0xac, 0x140645a9c\ninc     ebx                                                            ; +0xaf, 0x140645a9f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb1, 0x140645aa1\ncmp     ebx, eax                                                       ; +0xb7, 0x140645aa7\njb      short loc_140645A80                                            ; +0xb9, 0x140645aa9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbb, 0x140645aab\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xc0, 0x140645ab0\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc5, 0x140645ab5\nadd     rsp, 20h                                                       ; +0xca, 0x140645aba\npop     rdi                                                            ; +0xce, 0x140645abe\nretn                                                                   ; +0xcf, 0x140645abf", "xrefs": ["<???> @ 0x140821150", "<???> @ 0x1408e88ac", "<???> @ 0x1408e88bc", "<???> @ 0x1409313a0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}