// // sub_6DC3D4 from 0x6dc3d4 to 0x6dc608 (564 bytes) // // 3 xrefs: // > TIFFInitSGILog @ 0x6dc888 // > TIFFInitSGILog @ 0x6dc88c // > @ 0x6dc928 // // 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 // int __fastcall sub_6DC3D4(int *a1, int a2, _DWORD *a3) { int v3; // r3 int v4; // r3 int v7; // [sp+14h] [bp-10h] int v8; // [sp+1Ch] [bp-8h] v7 = a1[144]; if ( a2 == 65560 ) { *(_DWORD *)v7 = *a3; switch ( *(_DWORD *)v7 ) { case 0: v8 = 3; TIFFSetField((int)a1, 258, 32); goto LABEL_10; case 1: v8 = 2; TIFFSetField((int)a1, 258, 16); goto LABEL_10; case 2: v8 = 1; TIFFSetField((int)a1, 277, 1); TIFFSetField((int)a1, 258, 32); goto LABEL_10; case 3: v8 = 1; TIFFSetField((int)a1, 258, 8); LABEL_10: TIFFSetField((int)a1, 339, v8); if ( (a1[3] & 0x400) != 0 ) v3 = TIFFTileSize(a1); else v3 = -1; a1[124] = v3; a1[145] = TIFFScanlineSize(a1); v4 = 1; break; default: TIFFErrorExt(a1[157], *a1, "Unknown data format %d for LogLuv compression", *(_DWORD *)v7); v4 = 0; break; } } else if ( a2 == 65561 ) { *(_DWORD *)(v7 + 4) = *a3; if ( *(_DWORD *)(v7 + 4) < 2u ) { return 1; } else { TIFFErrorExt(a1[157], (int)"LogLuvVSetField", "Unknown encoding %d for LogLuv compression", *(_DWORD *)(v7 + 4)); return 0; } } else { return (*(int (__fastcall **)(int *, int, _DWORD *))(v7 + 28))(a1, a2, a3); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source