{"type": "func", "start": 4296636944, "end": 4296637122, "name": "AnimatedGameObject::setOpacity", "pseudocode": "// \n// AnimatedGameObject::setOpacity from 0x100197a10 to 0x100197ac2 (178 bytes)\n// \n// 2 xrefs:\n// > sub_100197AD0 @ 0x100197adc\n// > <???> @ 0x100ac7a38\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 12:25:56 +0000\n// \n\n__int64 __fastcall AnimatedGameObject::setOpacity(__int64 a1)\n{\n  __int64 v2; // r14\n  __int64 result; // rax\n  __int64 v4; // rdi\n  unsigned int v5; // ebx\n  __int64 v6; // r15\n  __int64 v7; // rax\n\n  GameObject::setOpacity(a1);\n  v2 = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 896LL))(a1);\n  result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1464) + 912LL))(*(_QWORD *)(a1 + 1464), v2);\n  v4 = *(_QWORD *)(a1 + 1472);\n  if ( v4 )\n  {\n    v5 = 0;\n    if ( *(_BYTE *)(a1 + 1020) )\n      LOBYTE(v2) = 0;\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 912LL))(v4, (unsigned __int8)v2);\n    v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1472) + 488LL))(*(_QWORD *)(a1 + 1472));\n    result = sub_1007FEF90(v6);\n    if ( (_DWORD)result )\n    {\n      do\n      {\n        v7 = sub_1007FEFE0(v6, v5);\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 912LL))(v7, (unsigned __int8)v2);\n        ++v5;\n        result = sub_1007FEF90(v6);\n      }\n      while ( v5 < (unsigned int)result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; AnimatedGameObject::setOpacity from 0x100197a10 to 0x100197ac2 (178 bytes)\n; \n; 2 xrefs:\n; > sub_100197AD0 @ 0x100197adc\n; > <???> @ 0x100ac7a38\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 12:25:56 +0000\n; \npush    rbp                                                            ; +0x0, 0x100197a10\nmov     rbp, rsp                                                       ; +0x1, 0x100197a11\npush    r15                                                            ; +0x4, 0x100197a14\npush    r14                                                            ; +0x6, 0x100197a16\npush    rbx                                                            ; +0x8, 0x100197a18\npush    rax                                                            ; +0x9, 0x100197a19\nmov     r15, rdi                                                       ; +0xa, 0x100197a1a\ncall    GameObject__setOpacity                                         ; +0xd, 0x100197a1d\nmov     rax, [r15]                                                     ; +0x12, 0x100197a22\nmov     rdi, r15                                                       ; +0x15, 0x100197a25\ncall    qword ptr [rax+380h]                                           ; +0x18, 0x100197a28\nmov     rdi, [r15+5B8h]                                                ; +0x1e, 0x100197a2e\nmov     rcx, [rdi]                                                     ; +0x25, 0x100197a35\nmovzx   r14d, al                                                       ; +0x28, 0x100197a38\nmov     esi, r14d                                                      ; +0x2c, 0x100197a3c\ncall    qword ptr [rcx+390h]                                           ; +0x2f, 0x100197a3f\nmov     rdi, [r15+5C0h]                                                ; +0x35, 0x100197a45\ntest    rdi, rdi                                                       ; +0x3c, 0x100197a4c\njz      short loc_100197AB7                                            ; +0x3f, 0x100197a4f\nxor     ebx, ebx                                                       ; +0x41, 0x100197a51\ncmp     byte ptr [r15+3FCh], 0                                         ; +0x43, 0x100197a53\ncmovnz  r14d, ebx                                                      ; +0x4b, 0x100197a5b\nmov     rax, [rdi]                                                     ; +0x4f, 0x100197a5f\nmovzx   r14d, r14b                                                     ; +0x52, 0x100197a62\nmov     esi, r14d                                                      ; +0x56, 0x100197a66\ncall    qword ptr [rax+390h]                                           ; +0x59, 0x100197a69\nmov     rdi, [r15+5C0h]                                                ; +0x5f, 0x100197a6f\nmov     rax, [rdi]                                                     ; +0x66, 0x100197a76\ncall    qword ptr [rax+1E8h]                                           ; +0x69, 0x100197a79\nmov     r15, rax                                                       ; +0x6f, 0x100197a7f\nmov     rdi, rax                                                       ; +0x72, 0x100197a82\ncall    sub_1007FEF90                                                  ; +0x75, 0x100197a85\ntest    eax, eax                                                       ; +0x7a, 0x100197a8a\njz      short loc_100197AB7                                            ; +0x7c, 0x100197a8c\nxchg    ax, ax                                                         ; +0x7e, 0x100197a8e\nmov     rdi, r15                                                       ; +0x80, 0x100197a90\nmov     esi, ebx                                                       ; +0x83, 0x100197a93\ncall    sub_1007FEFE0                                                  ; +0x85, 0x100197a95\nmov     rcx, [rax]                                                     ; +0x8a, 0x100197a9a\nmov     rdi, rax                                                       ; +0x8d, 0x100197a9d\nmov     esi, r14d                                                      ; +0x90, 0x100197aa0\ncall    qword ptr [rcx+390h]                                           ; +0x93, 0x100197aa3\ninc     ebx                                                            ; +0x99, 0x100197aa9\nmov     rdi, r15                                                       ; +0x9b, 0x100197aab\ncall    sub_1007FEF90                                                  ; +0x9e, 0x100197aae\ncmp     ebx, eax                                                       ; +0xa3, 0x100197ab3\njb      short loc_100197A90                                            ; +0xa5, 0x100197ab5\nadd     rsp, 8                                                         ; +0xa7, 0x100197ab7\npop     rbx                                                            ; +0xab, 0x100197abb\npop     r14                                                            ; +0xac, 0x100197abc\npop     r15                                                            ; +0xae, 0x100197abe\npop     rbp                                                            ; +0xb0, 0x100197ac0\nretn                                                                   ; +0xb1, 0x100197ac1", "xrefs": ["sub_100197AD0 @ 0x100197adc", "<???> @ 0x100ac7a38"], "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"}