{"type": "func", "start": 4297193872, "end": 4297193958, "name": "GJChestSprite::setOpacity", "pseudocode": "// \n// GJChestSprite::setOpacity from 0x10021f990 to 0x10021f9e6 (86 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008e0a20\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 GJChestSprite::setOpacity(GJChestSprite *a1, unsigned __int8 a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // r14\n  __int64 v4; // rax\n\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  v2 = ((__int64 (__fastcall *)(GJChestSprite *))a1->getChildren)(a1);\n  if ( v2 )\n  {\n    v3 = v2;\n    if ( (unsigned int)sub_100720070(v2) )\n    {\n      v4 = sub_1007200C0(v3, 0);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 896LL))(v4, a2);\n    }\n  }\n}", "assembly": "; \n; GJChestSprite::setOpacity from 0x10021f990 to 0x10021f9e6 (86 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008e0a20\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, 0x10021f990\nmov     rbp, rsp                                                       ; +0x1, 0x10021f991\npush    r14                                                            ; +0x4, 0x10021f994\npush    rbx                                                            ; +0x6, 0x10021f996\nmov     ebx, esi                                                       ; +0x7, 0x10021f997\nmov     r14, rdi                                                       ; +0x9, 0x10021f999\ncall    cocos2d__CCSprite__setOpacity                                  ; +0xc, 0x10021f99c\nmov     rax, [r14]                                                     ; +0x11, 0x10021f9a1\nmov     rdi, r14                                                       ; +0x14, 0x10021f9a4\ncall    qword ptr [rax+1D8h]                                           ; +0x17, 0x10021f9a7\ntest    rax, rax                                                       ; +0x1d, 0x10021f9ad\njz      short loc_10021F9E1                                            ; +0x20, 0x10021f9b0\nmov     r14, rax                                                       ; +0x22, 0x10021f9b2\nmov     rdi, rax                                                       ; +0x25, 0x10021f9b5\ncall    sub_100720070                                                  ; +0x28, 0x10021f9b8\ntest    eax, eax                                                       ; +0x2d, 0x10021f9bd\njz      short loc_10021F9E1                                            ; +0x2f, 0x10021f9bf\nmov     rdi, r14                                                       ; +0x31, 0x10021f9c1\nxor     esi, esi                                                       ; +0x34, 0x10021f9c4\ncall    sub_1007200C0                                                  ; +0x36, 0x10021f9c6\nmov     rcx, [rax]                                                     ; +0x3b, 0x10021f9cb\nmov     rcx, [rcx+380h]                                                ; +0x3e, 0x10021f9ce\nmovzx   esi, bl                                                        ; +0x45, 0x10021f9d5\nmov     rdi, rax                                                       ; +0x48, 0x10021f9d8\npop     rbx                                                            ; +0x4b, 0x10021f9db\npop     r14                                                            ; +0x4c, 0x10021f9dc\npop     rbp                                                            ; +0x4e, 0x10021f9de\njmp     rcx                                                            ; +0x4f, 0x10021f9df\npop     rbx                                                            ; +0x51, 0x10021f9e1\npop     r14                                                            ; +0x52, 0x10021f9e2\npop     rbp                                                            ; +0x54, 0x10021f9e4\nretn                                                                   ; +0x55, 0x10021f9e5", "xrefs": ["<???> @ 0x1008e0a20"], "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"}