// // png_set_tIME from 0x87049c to 0x870500 (100 bytes) // // 1 xrefs: // > png_handle_tIME @ 0x86e1d4 // // 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:57 +0000 // int __fastcall png_set_tIME(int result, int a2, int a3) { bool v3; // zf int v4; // r3 _DWORD *v5; // r3 int v7; // r1 v3 = a3 == 0; if ( a3 ) v3 = a2 == 0; v4 = v3; if ( !result ) v4 |= 1u; if ( !v4 && (*(_DWORD *)(result + 308) & 0x200) == 0 ) { if ( (unsigned int)*(unsigned __int8 *)(a3 + 2) - 1 > 0xB || (unsigned int)*(unsigned __int8 *)(a3 + 3) - 1 > 0x1E || *(unsigned __int8 *)(a3 + 4) > 0x17u || *(unsigned __int8 *)(a3 + 5) > 0x3Bu || *(unsigned __int8 *)(a3 + 6) > 0x3Cu ) { return png_warning(result, "Ignoring invalid time value"); } else { v5 = (_DWORD *)(a2 + 140); result = *(_DWORD *)a3; v7 = *(_DWORD *)(a3 + 4); *v5 = *(_DWORD *)a3; v5[1] = v7; *(_DWORD *)(a2 + 8) |= 0x200u; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source