// // png_icc_check_tag_table from 0xe3d0ac to 0xe3d224 (376 bytes) // // 3 xrefs: // > png_colorspace_set_ICC @ 0xe40530 // > png_handle_iCCP @ 0xe5619c // > @ 0x70558 // // 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:10:01 +0000 // __int64 __fastcall png_icc_check_tag_table(__int64 a1, __int64 a2, __int64 a3, unsigned int a4, unsigned __int8 *a5) { unsigned __int8 *v5; // x19 int v6; // w20 unsigned __int8 *v11; // x26 unsigned int v12; // w0 int v13; // w1 unsigned int v14; // w20 unsigned int v15; // w28 unsigned int v16; // w27 v5 = a5 + 132; v6 = (a5[129] << 16) + (a5[128] << 24) + a5[131] + (a5[130] << 8); if ( v6 ) { v11 = &a5[12 * (v6 - 1) + 144]; do { v13 = v5[4]; v5 += 12; v14 = (*(v5 - 7) << 16) + (v13 << 24) + *(v5 - 5) + (*(v5 - 6) << 8); v15 = (*(v5 - 11) << 16) + (*(v5 - 12) << 24) + *(v5 - 9) + (*(v5 - 10) << 8); v16 = (*(v5 - 3) << 16) + (*(v5 - 4) << 24) + *(v5 - 1) + (*(v5 - 2) << 8); if ( (*(v5 - 5) & 3) != 0 ) { sub_E3B438(a1, 0, a3, v15, (__int64)&unk_11BC9D8); v12 = a4 - v14; if ( v14 > a4 ) return sub_E3B438(a1, a2, a3, v15, (__int64)"ICC profile tag outside profile"); } else { v12 = a4 - v14; if ( v14 > a4 ) return sub_E3B438(a1, a2, a3, v15, (__int64)"ICC profile tag outside profile"); } if ( v16 > v12 ) return sub_E3B438(a1, a2, a3, v15, (__int64)"ICC profile tag outside profile"); } while ( v5 != v11 ); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source