// // sub_8B00E0 from 0x8b00e0 to 0x8b03b4 (724 bytes) // // 1 xrefs: // > TIFFVGetFieldDefaulted @ 0x8b0b60 // // 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:03:53 +0000 // int __fastcall sub_8B00E0(int a1) { _WORD *v2; // r4 double v3; // r0 _DWORD *v6; // [sp+8h] [bp-24h] int i; // [sp+Ch] [bp-20h] int v8; // [sp+10h] [bp-1Ch] int v9; // [sp+14h] [bp-18h] v6 = (_DWORD *)(a1 + 160); *(_DWORD *)(a1 + 168) = 0; *(_DWORD *)(a1 + 164) = *(_DWORD *)(a1 + 168); *(_DWORD *)(a1 + 160) = *(_DWORD *)(a1 + 164); if ( *(unsigned __int16 *)(a1 + 44) > 0x1Du ) return 0; v8 = 1 << *(_WORD *)(a1 + 44); v9 = 2 * v8; *v6 = TIFFmalloc(2 * v8); if ( !*v6 ) return 0; *(_WORD *)*v6 = 0; for ( i = 1; i < v8; ++i ) { v2 = (_WORD *)(*v6 + 2 * i); v3 = pow((double)i / ((double)v8 - 1.0), 2.2); *v2 = (unsigned int)floor(v3 * 65535.0 + 0.5); } if ( *(unsigned __int16 *)(a1 + 58) - *(unsigned __int16 *)(a1 + 116) <= 1 ) return 1; v6[1] = TIFFmalloc(v9); if ( v6[1] ) { TIFFmemcpy(v6[1], *v6, v9); v6[2] = TIFFmalloc(v9); if ( v6[2] ) { TIFFmemcpy(v6[2], *v6, v9); return 1; } } if ( *v6 ) TIFFfree(*v6); if ( v6[1] ) TIFFfree(v6[1]); if ( v6[2] ) TIFFfree(v6[2]); v6[2] = 0; v6[1] = v6[2]; *v6 = v6[1]; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source