// // GJRobotSprite::updateColors from 0xa3c614 to 0xa3c8c0 (684 bytes) // // 5 xrefs: // > PlayerObject::createRobot @ 0x75e220 // > PlayerObject::createSpider @ 0x75e534 // > GJRobotSprite::updateColor01 @ 0xa3c8dc // > GJRobotSprite::updateColor02 @ 0xa3c8f4 // > @ 0xf9040 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:59:54 +0000 // __int64 __fastcall GJRobotSprite::updateColors(GJRobotSprite *this) { float v2; // s8 unsigned int v3; // w19 __int64 *v4; // x0 __int64 v5; // x1 float v6; // s0 unsigned int v7; // w6 unsigned int v8; // w5 unsigned int v9; // w4 unsigned int v10; // w3 unsigned int v11; // w1 __int64 v12; // x0 __int64 SpriteForKey; // x23 __int64 v14; // x21 __int64 v15; // x19 int v16; // w7 float v17; // s3 float v18; // s2 float v19; // s1 float v20; // s0 cocos2d::CCArray *v21; // x0 __int64 v22; // x0 cocos2d::CCArray *v23; // x0 __int64 v24; // x0 cocos2d::CCArray *v25; // x0 __int64 v26; // x0 _BYTE v28[8]; // [xsp+48h] [xbp+48h] BYREF _BYTE v29[8]; // [xsp+50h] [xbp+50h] BYREF _BYTE v30[8]; // [xsp+58h] [xbp+58h] BYREF _BYTE v31[8]; // [xsp+60h] [xbp+60h] BYREF if ( *((_DWORD *)this + 190) == 6 ) v2 = 0.5; else v2 = 0.7; v3 = 0; v4 = *((__int64 **)this + 84); v5 = *(_QWORD *)((char *)this + 729); v6 = (float)*((unsigned __int8 *)this + 732) * v2; v7 = (unsigned int)(float)((float)*((unsigned __int8 *)this + 731) * v2); v8 = (unsigned int)(float)((float)*((unsigned __int8 *)this + 729) * v2); v9 = (unsigned int)(float)((float)*((unsigned __int8 *)this + 733) * v2); v10 = (unsigned int)(float)((float)*((unsigned __int8 *)this + 734) * v2); v28[1] = (unsigned int)(float)((float)*((unsigned __int8 *)this + 730) * v2); v28[2] = v7; v28[0] = v8; v29[1] = v9; v29[2] = v10; v29[0] = (unsigned int)v6; CCPartAnimSprite::setColor(v4, v5); while ( v3 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 92)) ) { v11 = v3++; v12 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 92), v11); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 960LL))(v12, (char *)this + 732); } SpriteForKey = CCPartAnimSprite::getSpriteForKey(*((CCPartAnimSprite **)this + 84), "back01"); v14 = CCPartAnimSprite::getSpriteForKey(*((CCPartAnimSprite **)this + 84), "back02"); v15 = CCPartAnimSprite::getSpriteForKey(*((CCPartAnimSprite **)this + 84), "back03"); if ( SpriteForKey ) { v16 = *((unsigned __int8 *)this + 732); v17 = v2 * (float)*((unsigned __int8 *)this + 731); v18 = v2 * (float)*((unsigned __int8 *)this + 729); v19 = v2 * (float)*((unsigned __int8 *)this + 733); v20 = v2 * (float)*((unsigned __int8 *)this + 734); v30[1] = (unsigned int)(float)(v2 * (float)*((unsigned __int8 *)this + 730)); v30[2] = (unsigned int)v17; v31[2] = (unsigned int)v20; v30[0] = (unsigned int)v18; v31[1] = (unsigned int)v19; v31[0] = (unsigned int)(float)(v2 * (float)v16); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)SpriteForKey + 960LL))(SpriteForKey, v30); v21 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)SpriteForKey + 488LL))(SpriteForKey); v22 = cocos2d::CCArray::objectAtIndex(v21, 0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v22 + 960LL))(v22, v31); } if ( v14 ) { (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v14 + 960LL))(v14, v28); v23 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 488LL))(v14); v24 = cocos2d::CCArray::objectAtIndex(v23, 0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v24 + 960LL))(v24, v29); } if ( v15 ) { (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v15 + 960LL))(v15, v28); v25 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 488LL))(v15); v26 = cocos2d::CCArray::objectAtIndex(v25, 0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v26 + 960LL))(v26, v29); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source