// // sub_8EBF94 from 0x8ebf94 to 0x8ec1c8 (564 bytes) // // 3 xrefs: // > TIFFInitSGILog @ 0x8ec448 // > TIFFInitSGILog @ 0x8ec44c // > @ 0x8ec4e8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:04:12 +0000 // int __fastcall sub_8EBF94(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