// // GameToolbox::multipliedColorValue from 0x10004a390 to 0x10004a44c (188 bytes) // // 13 xrefs: // > sub_10000D9C4 @ 0x10000da44 // > sub_10000FC04 @ 0x10000fcb0 // > sub_10000FE5C @ 0x10000ff44 // > sub_10000FE5C @ 0x10000ff9c // > sub_1001460E4 @ 0x10014661c // > sub_1001460E4 @ 0x100146664 // > GJBaseGameLayer::processAreaTintGroupAction @ 0x100292358 // > GJBaseGameLayer::processAreaTintGroupAction @ 0x1002923d0 // > GJBaseGameLayer::processAreaTintGroupAction @ 0x100292454 // > GJBaseGameLayer::processAreaTintGroupAction @ 0x1002924cc // > PlayerObject::update @ 0x1002b6210 // > PlayerObject::update @ 0x1002b6260 // > SecretRewardsLayer::scrollLayerMoved @ 0x100385444 // // 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 10:57:40 +0000 // __int64 __fastcall GameToolbox::multipliedColorValue(unsigned __int64 a1, unsigned __int64 a2, float a3) { int64x2_t v3; // q1 float v4; // s0 int8x8_t v5; // d0 int64x2_t v6; // q2 int32x2_t v7; // d1 int32x2_t v8; // d0 v3 = (int64x2_t)vshlq_u64((uint64x2_t)vdupq_n_s64(a1), (uint64x2_t)xmmword_10075CB40); v4 = fmaxf(fminf(a3, 1.0), 0.0); if ( v4 == 0.0 ) { v5 = (int8x8_t)vmovn_s64(v3); } else { v6 = (int64x2_t)vshlq_u64((uint64x2_t)vdupq_n_s64(a2), (uint64x2_t)xmmword_10075CB40); if ( v4 == 1.0 ) { v5 = (int8x8_t)vmovn_s64(v6); LOBYTE(a1) = a2; } else { LODWORD(a1) = (int)(float)((float)(unsigned __int8)a1 + (float)((float)((unsigned __int8)a2 - (unsigned __int8)a1) * v4)); v7 = (int32x2_t)vand_s8((int8x8_t)vmovn_s64(v3), (int8x8_t)0xFF000000FFLL); v5 = (int8x8_t)vcvt_s32_f32( vmla_n_f32( vcvt_f32_u32((uint32x2_t)v7), vcvt_f32_s32(vsub_s32((int32x2_t)vand_s8((int8x8_t)vmovn_s64(v6), (int8x8_t)0xFF000000FFLL), v7)), v4)); } } v8 = (int32x2_t)vshl_u32((uint32x2_t)vand_s8(v5, (int8x8_t)0xFF000000FFLL), (uint32x2_t)0x800000010LL); return vorr_s8((int8x8_t)v8, (int8x8_t)vdup_lane_s32(v8, 1)).u32[0] | (unsigned __int8)a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source