{"type": "func", "start": 5372712816, "end": 5372712914, "name": "GJChestSprite::setOpacity", "pseudocode": "// \n// GJChestSprite::setOpacity from 0x1403d1770 to 0x1403d17d2 (98 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1405cd548\n// > <???> @ 0x1406d7c7c\n// > <???> @ 0x1406d7c88\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 GJChestSprite::setOpacity(GJChestSprite *a1, unsigned __int8 a2)\n{\n  cocos2d::CCArray *v4; // rax\n  cocos2d::CCArray *v5; // rbx\n  struct cocos2d::CCObject *v6; // rax\n\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  v4 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(int *))(*(_QWORD *)&a1[-1].m_nUpdateScriptHandler + 464LL))(&a1[-1].m_nUpdateScriptHandler);\n  v5 = v4;\n  if ( v4 )\n  {\n    if ( cocos2d::CCArray::count(v4) )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(v5, 0);\n      (*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v6[5].m_unknown2 + 40LL))(&v6[5].m_unknown2, a2);\n    }\n  }\n}", "assembly": "; \n; GJChestSprite::setOpacity from 0x1403d1770 to 0x1403d17d2 (98 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1405cd548\n; > <???> @ 0x1406d7c7c\n; > <???> @ 0x1406d7c88\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_0], rbx                                               ; +0x0, 0x1403d1770\npush    rdi                                                            ; +0x5, 0x1403d1775\nsub     rsp, 20h                                                       ; +0x6, 0x1403d1776\nmovzx   edi, dl                                                        ; +0xa, 0x1403d177a\nmov     rbx, rcx                                                       ; +0xd, 0x1403d177d\ncall    cs:__imp_?setOpacity@CCSprite@cocos2d@@UEAAXE@Z; cocos2d::CCSprite::setOpacity(uchar) ; +0x10, 0x1403d1780\nlea     rcx, [rbx-140h]                                                ; +0x16, 0x1403d1786\nmov     rax, [rcx]                                                     ; +0x1d, 0x1403d178d\ncall    qword ptr [rax+1D0h]                                           ; +0x20, 0x1403d1790\nmov     rbx, rax                                                       ; +0x26, 0x1403d1796\ntest    rax, rax                                                       ; +0x29, 0x1403d1799\njz      short loc_1403D17C7                                            ; +0x2c, 0x1403d179c\nmov     rcx, rax                                                       ; +0x2e, 0x1403d179e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x31, 0x1403d17a1\ntest    eax, eax                                                       ; +0x37, 0x1403d17a7\njz      short loc_1403D17C7                                            ; +0x39, 0x1403d17a9\nxor     edx, edx                                                       ; +0x3b, 0x1403d17ab\nmov     rcx, rbx                                                       ; +0x3d, 0x1403d17ad\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x40, 0x1403d17b0\nmovzx   edx, dil                                                       ; +0x46, 0x1403d17b6\nlea     rcx, [rax+140h]                                                ; +0x4a, 0x1403d17ba\nmov     rax, [rcx]                                                     ; +0x51, 0x1403d17c1\ncall    qword ptr [rax+28h]                                            ; +0x54, 0x1403d17c4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x57, 0x1403d17c7\nadd     rsp, 20h                                                       ; +0x5c, 0x1403d17cc\npop     rdi                                                            ; +0x60, 0x1403d17d0\nretn                                                                   ; +0x61, 0x1403d17d1", "xrefs": ["<???> @ 0x1405cd548", "<???> @ 0x1406d7c7c", "<???> @ 0x1406d7c88"], "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"}