// // LogLuv32fromXYZ from 0xecd5a0 to 0xecd6fc (348 bytes) // // 2 xrefs: // > sub_ECD720 @ 0xecd758 // > @ 0x54a90 // // 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 13:11:38 +0000 // __int64 __fastcall LogLuv32fromXYZ(float *a1, int a2) { int v3; // w19 int v4; // w1 double v5; // d0 double v6; // d8 double v7; // d1 int v8; // w20 double v9; // d0 double v10; // d8 double v11; // d9 unsigned int v12; // w2 unsigned int v13; // w1 int v15; // w0 v3 = LogL16fromY(a2, a1[1]); v4 = a2; if ( v3 && (v5 = *a1, v6 = a1[1], v7 = v5 + v6 * 15.0 + a1[2] * 3.0, v7 > 0.0) ) { v8 = 0; v9 = v5 * 4.0 / v7; v10 = v6 * 9.0 / v7; if ( v9 <= 0.0 ) goto LABEL_9; v11 = v9 * 410.0; if ( !a2 ) goto LABEL_5; } else { v11 = 86.3157896; v10 = 0.473684211; if ( !a2 ) { LABEL_5: v12 = (int)v11; goto LABEL_6; } } v15 = rand(); v4 = a2; v12 = (int)(v11 + (double)v15 * 4.65661288e-10 - 0.5); LABEL_6: if ( v12 > 0xFF ) v8 = 65280; else v8 = v12 << 8; LABEL_9: if ( v10 <= 0.0 ) return v8 | (unsigned int)(v3 << 16); if ( v4 ) v13 = (int)((double)rand() * 4.65661288e-10 + v10 * 410.0 - 0.5); else v13 = (int)(v10 * 410.0); if ( v13 >= 0x100 ) v13 = 255; return v8 | (v3 << 16) | v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source