// // sub_8659E4 from 0x8659e4 to 0x865a96 (178 bytes) // // 0 xrefs: // // 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:02:46 +0000 // int __fastcall sub_8659E4(int a1) { int v2; // r4 int v3; // r6 int v4; // r3 int v5; // r0 unsigned int v6; // r3 int result; // r0 v2 = **(_DWORD **)a1; v3 = *(_DWORD *)(*(_DWORD *)a1 + 4); png_set_benign_errors(v2, 1); png_read_info(v2, v3); *(_DWORD *)(a1 + 8) = *(_DWORD *)(v2 + 448); *(_DWORD *)(a1 + 12) = *(_DWORD *)(v2 + 452); if ( (*(_BYTE *)(v2 + 535) & 2) != 0 ) v4 = 3; else v4 = 1; if ( (*(_BYTE *)(v2 + 535) & 2) != 0 ) v5 = 2; else v5 = 0; if ( (*(_BYTE *)(v2 + 535) & 4) == 0 && !*(_WORD *)(v2 + 528) ) v4 = v5; if ( *(_BYTE *)(v2 + 536) == 16 ) v4 |= 4u; if ( (*(_BYTE *)(v2 + 535) & 1) != 0 ) v4 |= 8u; *(_DWORD *)(a1 + 16) = v4; if ( (v4 & 2) != 0 && (*(_WORD *)(v2 + 998) & 0x8042) == 2 ) *(_DWORD *)(a1 + 20) |= 1u; if ( *(_BYTE *)(v2 + 535) ) { if ( *(_BYTE *)(v2 + 535) != 3 ) { *(_DWORD *)(a1 + 24) = 256; return 1; } v6 = *(unsigned __int16 *)(v2 + 520); } else { v6 = 1 << *(_BYTE *)(v2 + 536); } result = 1; if ( v6 > 0x100 ) v6 = 256; *(_DWORD *)(a1 + 24) = v6; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source