// // sub_6DC010 from 0x6dc010 to 0x6dc270 (608 bytes) // // 3 xrefs: // > TIFFInitSGILog @ 0x6dc808 // > TIFFInitSGILog @ 0x6dc80c // > @ 0x6dc910 // // 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_6DC010(int a1) { int v1; // r3 int v2; // r3 int v3; // r3 const char *v5; // r12 int *v8; // [sp+10h] [bp-Ch] int v9; // [sp+14h] [bp-8h] v8 = *(int **)(a1 + 576); v9 = a1 + 40; v1 = *(unsigned __int16 *)(a1 + 90); if ( v1 == 32844 ) { if ( !sub_6DB6F8((_DWORD *)a1) ) return 1; *(_DWORD *)(a1 + 536) = sub_6D7DD8; if ( !*v8 ) { v8[5] = (int)sub_6D93F8; return 1; } if ( *v8 == 1 ) return 1; } else { if ( v1 != 32845 ) { TIFFErrorExt( *(_DWORD *)(a1 + 628), (int)"LogLuvSetupEncode", "Inappropriate photometric interpretation %d for SGILog compression; %s", *(unsigned __int16 *)(a1 + 90), "must be either LogLUV or LogL"); return 1; } if ( !sub_6DBAA8((_DWORD *)a1) ) return 1; if ( *(unsigned __int16 *)(v9 + 48) == 34677 ) { *(_DWORD *)(a1 + 536) = sub_6D8434; v2 = *v8; if ( *v8 == 1 ) { v8[5] = (int)sub_6DA978; return 1; } if ( v2 == 2 ) return 1; if ( !v2 ) { v8[5] = (int)sub_6DA8E0; return 1; } } else { *(_DWORD *)(a1 + 536) = sub_6D86FC; v3 = *v8; if ( *v8 == 1 ) { v8[5] = (int)sub_6DB328; return 1; } if ( v3 == 2 ) return 1; if ( !v3 ) { v8[5] = (int)sub_6DB290; return 1; } } } if ( *(unsigned __int16 *)(v9 + 50) == 32844 ) v5 = "Y, L"; else v5 = "XYZ, Luv"; TIFFErrorExt( *(_DWORD *)(a1 + 628), (int)"LogLuvSetupEncode", "SGILog compression supported only for %s, or raw data", v5); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source