{"type": "func", "start": 5152320, "end": 5152374, "name": "GJChestSprite::setOpacity", "pseudocode": "// \n// GJChestSprite::setOpacity from 0x4e9e40 to 0x4e9e76 (54 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'GJChestSprite::setOpacity @ 0x4e9e7a\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  int v3; // r5\n  cocos2d::CCArray *v4; // r0\n  cocos2d::CCArray *v5; // r4\n  int v6; // r0\n\n  v3 = a2;\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  v4 = a1->getChildren(a1);\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, int))(*(_DWORD *)v6 + 448))(v6, v3);\n    }\n  }\n}", "assembly": "; \n; GJChestSprite::setOpacity from 0x4e9e40 to 0x4e9e76 (54 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'GJChestSprite::setOpacity @ 0x4e9e7a\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            {R4-R6,LR}                                             ; +0x0, 0x4e9e40\nMOV             R4, R0                                                 ; +0x2, 0x4e9e42\nMOV             R5, R1                                                 ; +0x4, 0x4e9e44\nBL              _ZN7cocos2d8CCSprite10setOpacityEh; cocos2d::CCSprite::setOpacity(uchar) ; +0x6, 0x4e9e46\nLDR             R3, [R4]                                               ; +0xa, 0x4e9e4a\nMOV             R0, R4                                                 ; +0xc, 0x4e9e4c\nLDR.W           R3, [R3,#0xEC]                                         ; +0xe, 0x4e9e4e\nBLX             R3                                                     ; +0x12, 0x4e9e52\nMOV             R4, R0                                                 ; +0x14, 0x4e9e54\nCBZ             R0, locret_4E9E74                                      ; +0x16, 0x4e9e56\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x18, 0x4e9e58\nCBZ             R0, locret_4E9E74                                      ; +0x1c, 0x4e9e5c\nMOV             R0, R4; this                                           ; +0x1e, 0x4e9e5e\nMOVS            R1, #0; unsigned int                                   ; +0x20, 0x4e9e60\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x22, 0x4e9e62\nMOV             R1, R5                                                 ; +0x26, 0x4e9e66\nPOP.W           {R4-R6,LR}                                             ; +0x28, 0x4e9e68\nLDR             R3, [R0]                                               ; +0x2c, 0x4e9e6c\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x2e, 0x4e9e6e\nBX              R3                                                     ; +0x32, 0x4e9e72\nPOP             {R4-R6,PC}                                             ; +0x34, 0x4e9e74", "xrefs": ["`non-virtual thunk to'GJChestSprite::setOpacity @ 0x4e9e7a"], "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"}