// // TIFFXYZToRGB from 0xc2d358 to 0xc2d524 (460 bytes) // // 2 xrefs: // > sub_C4E660 @ 0xc4e72c // > @ 0x8fa60 // // 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 // __int64 __fastcall TIFFXYZToRGB( __int64 result, unsigned int *a2, unsigned int *a3, unsigned int *a4, float a5, float a6, float a7) { float v7; // s6 float v8; // s16 float v9; // s4 float v10; // s2 float v11; // s3 float v12; // s1 int v13; // w4 float v14; // s0 bool v15; // cc double v16; // d0 unsigned int v17; // w4 int v18; // w4 float v19; // s0 double v20; // d0 unsigned int v21; // w4 int v22; // w4 float v23; // s0 double v24; // d0 unsigned int v25; // w4 unsigned int v26; // w4 unsigned int v27; // w1 unsigned int v28; // w1 v7 = (float)((float)(a6 * *(float *)(result + 32)) + (float)(*(float *)(result + 28) * a5)) + (float)(*(float *)(result + 36) * a7); v8 = *(float *)(result + 88); v9 = (float)((float)(a6 * *(float *)(result + 44)) + (float)(*(float *)(result + 40) * a5)) + (float)(*(float *)(result + 48) * a7); v10 = (float)((float)(a6 * *(float *)(result + 56)) + (float)(*(float *)(result + 52) * a5)) + (float)(*(float *)(result + 60) * a7); if ( v7 <= v8 ) v7 = *(float *)(result + 88); v11 = *(float *)(result + 92); if ( v9 <= v11 ) v9 = *(float *)(result + 92); v12 = *(float *)(result + 96); if ( v10 <= v12 ) v10 = *(float *)(result + 96); if ( v7 >= *(float *)(result + 64) ) v7 = *(float *)(result + 64); if ( v9 >= *(float *)(result + 68) ) v9 = *(float *)(result + 68); if ( v10 >= *(float *)(result + 72) ) v10 = *(float *)(result + 72); v13 = (int)(float)((float)(v7 - v8) / *(float *)(result + 4)); if ( v13 > *(_DWORD *)result ) v13 = *(_DWORD *)result; v14 = *(float *)(result + 4LL * v13 + 112); v15 = v14 <= 0.0; v16 = v14; if ( v15 ) v17 = (unsigned int)(v16 - 0.5); else v17 = (unsigned int)(v16 + 0.5); *a2 = v17; v18 = (int)(float)((float)(v9 - v11) / *(float *)(result + 8)); if ( v18 > *(_DWORD *)result ) v18 = *(_DWORD *)result; v19 = *(float *)(result + 4LL * v18 + 6116); v15 = v19 <= 0.0; v20 = v19; if ( v15 ) v21 = (unsigned int)(v20 - 0.5); else v21 = (unsigned int)(v20 + 0.5); *a3 = v21; v22 = (int)(float)((float)(v10 - v12) / *(float *)(result + 12)); if ( v22 > *(_DWORD *)result ) v22 = *(_DWORD *)result; v23 = *(float *)(result + 4LL * v22 + 12120); v15 = v23 <= 0.0; v24 = v23; if ( v15 ) v25 = (unsigned int)(v24 - 0.5); else v25 = (unsigned int)(v24 + 0.5); *a4 = v25; v26 = *a2; if ( *a2 > *(_DWORD *)(result + 76) ) v26 = *(_DWORD *)(result + 76); *a2 = v26; v27 = *a3; if ( *a3 > *(_DWORD *)(result + 80) ) v27 = *(_DWORD *)(result + 80); *a3 = v27; v28 = *(_DWORD *)(result + 84); LODWORD(result) = *a4; if ( *a4 > v28 ) result = v28; else result = (unsigned int)result; *a4 = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source