{"type": "func", "start": 4297076896, "end": 4297076982, "name": "GJChestSprite::setOpacity", "pseudocode": "// \n// GJChestSprite::setOpacity from 0x1002030a0 to 0x1002030f6 (86 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100ae5010\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:26:52 +0000\n// \n\n__int64 __fastcall GJChestSprite::setOpacity(__int64 a1, unsigned __int8 a2)\n{\n  __int64 result; // rax\n  __int64 v3; // r14\n  __int64 v4; // rax\n\n  cocos2d::CCSprite::setOpacity();\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);\n  if ( result )\n  {\n    v3 = result;\n    result = sub_1007FEF90(result);\n    if ( (_DWORD)result )\n    {\n      v4 = sub_1007FEFE0(v3, 0);\n      return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 912LL))(v4, a2);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJChestSprite::setOpacity from 0x1002030a0 to 0x1002030f6 (86 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100ae5010\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:26:52 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002030a0\nmov     rbp, rsp                                                       ; +0x1, 0x1002030a1\npush    r14                                                            ; +0x4, 0x1002030a4\npush    rbx                                                            ; +0x6, 0x1002030a6\nmov     ebx, esi                                                       ; +0x7, 0x1002030a7\nmov     r14, rdi                                                       ; +0x9, 0x1002030a9\ncall    cocos2d__CCSprite__setOpacity                                  ; +0xc, 0x1002030ac\nmov     rax, [r14]                                                     ; +0x11, 0x1002030b1\nmov     rdi, r14                                                       ; +0x14, 0x1002030b4\ncall    qword ptr [rax+1E8h]                                           ; +0x17, 0x1002030b7\ntest    rax, rax                                                       ; +0x1d, 0x1002030bd\njz      short loc_1002030F1                                            ; +0x20, 0x1002030c0\nmov     r14, rax                                                       ; +0x22, 0x1002030c2\nmov     rdi, rax                                                       ; +0x25, 0x1002030c5\ncall    sub_1007FEF90                                                  ; +0x28, 0x1002030c8\ntest    eax, eax                                                       ; +0x2d, 0x1002030cd\njz      short loc_1002030F1                                            ; +0x2f, 0x1002030cf\nmov     rdi, r14                                                       ; +0x31, 0x1002030d1\nxor     esi, esi                                                       ; +0x34, 0x1002030d4\ncall    sub_1007FEFE0                                                  ; +0x36, 0x1002030d6\nmov     rcx, [rax]                                                     ; +0x3b, 0x1002030db\nmov     rcx, [rcx+390h]                                                ; +0x3e, 0x1002030de\nmovzx   esi, bl                                                        ; +0x45, 0x1002030e5\nmov     rdi, rax                                                       ; +0x48, 0x1002030e8\npop     rbx                                                            ; +0x4b, 0x1002030eb\npop     r14                                                            ; +0x4c, 0x1002030ec\npop     rbp                                                            ; +0x4e, 0x1002030ee\njmp     rcx                                                            ; +0x4f, 0x1002030ef\npop     rbx                                                            ; +0x51, 0x1002030f1\npop     r14                                                            ; +0x52, 0x1002030f2\npop     rbp                                                            ; +0x54, 0x1002030f4\nretn                                                                   ; +0x55, 0x1002030f5", "xrefs": ["<???> @ 0x100ae5010"], "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"}