// // GJChestSprite::setColor from 0x1403d16b0 to 0x1403d1770 (192 bytes) // // 2 xrefs: // > @ 0x1405cd520 // > @ 0x1406d7c7c // // 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 GJChestSprite::setColor(GJChestSprite *a1, const cocos2d::ccColor3B *a2) { __int16 v2; // ax int b; // ecx cocos2d::CCArray *v5; // rax cocos2d::CCArray *v6; // rbx struct cocos2d::CCObject *v7; // rax struct cocos2d::_ccColor3B v8; // [rsp+30h] [rbp+8h] BYREF v2 = *(_WORD *)&a2->r; b = a2->b; *(_WORD *)&v8.r = *(_WORD *)&a2->r; v8.b = b; if ( a1->m_bReorderChildDirty ) { v8.r = (int)(float)((float)(unsigned __int8)v2 * 0.40000001); v8.g = (int)(float)((float)v8.g * 0.40000001); v8.b = (int)(float)((float)b * 0.40000001); } cocos2d::CCSprite::setColor(a1, &v8); v5 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(int *))(*(_QWORD *)&a1[-1].m_nUpdateScriptHandler + 464LL))(&a1[-1].m_nUpdateScriptHandler); v6 = v5; if ( v5 ) { if ( cocos2d::CCArray::count(v5) ) { v7 = cocos2d::CCArray::objectAtIndex(v6, 0); (**(void (__fastcall ***)(__int64, struct cocos2d::_ccColor3B *))&v7[5].m_unknown2)( (__int64)&v7[5].m_unknown2, &v8); } } }