// // TIFFNumberOfTiles from 0xed8490 to 0xed85d4 (324 bytes) // // 3 xrefs: // > TIFFReadDirectory @ 0xeb2a04 // > TIFFSetupStrips @ 0xed8ee8 // > @ 0xb2660 // // 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:44 +0000 // __int64 __fastcall TIFFNumberOfTiles(_DWORD *a1) { _DWORD *v1; // x19 unsigned int v2; // w2 unsigned int v4; // w20 unsigned int v5; // w0 unsigned int v6; // w4 unsigned int v7; // w1 unsigned int v8; // w3 unsigned int v9; // w2 int v10; // w1 unsigned int v11; // w0 unsigned int v12; // w2 unsigned int v13; // w1 v1 = a1 + 14; v2 = a1[25]; v4 = a1[27]; v5 = a1[26]; if ( v2 == -1 ) v2 = v1[8]; if ( v5 == -1 ) v5 = v1[9]; if ( v4 == -1 ) v4 = v1[10]; if ( v5 != 0 && v2 != 0 && v4 ) { v6 = v1[8]; v7 = 0; if ( v6 < -v2 ) v7 = (v6 - 1 + v2) / v2; v8 = v1[9]; v9 = 0; if ( v8 < -v5 ) v9 = (v8 - 1 + v5) / v5; v10 = TIFFMultiply32((__int64)a1, v7, v9, "TIFFNumberOfTiles"); v11 = v1[10]; v12 = 0; if ( v11 < -v4 ) v12 = (v11 - 1 + v4) / v4; v13 = TIFFMultiply32((__int64)a1, v10, v12, "TIFFNumberOfTiles"); if ( *((_WORD *)v1 + 57) == 2 ) return TIFFMultiply32((__int64)a1, v13, *((unsigned __int16 *)v1 + 37), "TIFFNumberOfTiles"); } else { v13 = 0; if ( *((_WORD *)v1 + 57) == 2 ) return TIFFMultiply32((__int64)a1, v13, *((unsigned __int16 *)v1 + 37), "TIFFNumberOfTiles"); } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source