// // GJEffectManager::getMixedColor from 0x100016438 to 0x1000164e0 (168 bytes) // // 2 xrefs: // > GJEffectManager::calculateLightBGColor @ 0x1000163ec // > PlayLayer::updateInvisibleBlock @ 0x10011d030 // // 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 // // local variable allocation has failed, the output may be wrong! cocos2d::ccColor3B __fastcall GJEffectManager::getMixedColor(cocos2d::ccColor3B a1, cocos2d::ccColor3B a2, float a3) { int32x2_t v3; // d4 float v4; // s2 float32x2_t v5; // d1 int32x2_t v6; // d0 v3 = vdup_n_s32(0x437F0000u); v4 = (float)((float)(1.0 - a3) * (float)a2.r) + (float)((float)a1.r * a3); if ( v4 > 255.0 ) v4 = 255.0; v5 = vmla_n_f32( vmul_n_f32( vcvt_f32_u32((uint32x2_t)vand_s8( (int8x8_t)vshl_u32( (uint32x2_t)vdup_n_s32(*(unsigned int *)&a2.r), (uint32x2_t)0xFFFFFFF8FFFFFFF0LL), (int8x8_t)0xFF000000FFLL)), 1.0 - a3), vcvt_f32_u32((uint32x2_t)vand_s8( (int8x8_t)vshl_u32( (uint32x2_t)vdup_n_s32(*(unsigned int *)&a1.r), (uint32x2_t)0xFFFFFFF8FFFFFFF0LL), (int8x8_t)0xFF000000FFLL)), a3); v6 = (int32x2_t)vshl_u32( (uint32x2_t)vcvt_s32_f32( vmaxnm_f32( (float32x2_t)vbsl_s8( (int8x8_t)vcgt_f32(v5, (float32x2_t)v3), (int8x8_t)v3, (int8x8_t)v5), 0)), (uint32x2_t)0x800000010LL); return (cocos2d::ccColor3B)(vorr_s8((int8x8_t)v6, (int8x8_t)vdup_lane_s32(v6, 1)).u32[0] | (int)fmaxf(v4, 0.0)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source