// // cocos2d::extension::CCScale9Sprite::setOpacity from 0x1003f63d0 to 0x1003f6486 (182 bytes) // // 1 xrefs: // > @ 0x100932f30 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::extension::CCScale9Sprite::setOpacity( cocos2d::extension::CCScale9Sprite *a1, unsigned __int8 a2) { cocos2d::CCSpriteBatchNode *scale9Image; // rdi __int64 v4; // rax unsigned int *v5; // rax const void **v6; // r12 unsigned __int64 v7; // r13 void *v8; // rax scale9Image = a1->_scale9Image; if ( scale9Image ) { a1->_opacity = a2; v4 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))scale9Image->getChildren)(scale9Image); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); if ( *v5 ) { v6 = *((const void ***)v5 + 2); v7 = (unsigned __int64)&v6[*v5 - 1]; do { if ( !*v6 ) break; v8 = __dynamic_cast( *v6, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); if ( v8 ) (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v8 + 40LL))(v8, a2); ++v6; } while ( (unsigned __int64)v6 <= v7 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source