// // png_push_process_row from 0x652c1c to 0x652f1c (768 bytes) // // 1 xrefs: // > png_process_IDAT_data @ 0x652fd2 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // unsigned int __fastcall png_push_process_row(unsigned int a1) { unsigned int v2; // r2 int v3; // r3 bool v4; // cc char v5; // r1 unsigned int v6; // r2 char v7; // r5 char v8; // r0 _BYTE *v9; // r1 unsigned int v10; // r2 bool v11; // cf unsigned int result; // r0 int v13; // r5 int v14; // r3 int v15; // r5 int v16; // r5 int v17; // r5 int v18; // r3 int v19; // r5 int v20; // r5 int v21; // r3 int v22; // r3 int v23; // r5 int v24; // [sp+Ch] [bp-10h] BYREF unsigned int v25; // [sp+10h] [bp-Ch] char v26; // [sp+14h] [bp-8h] char v27; // [sp+15h] [bp-7h] char v28; // [sp+16h] [bp-6h] unsigned __int8 v29; // [sp+17h] [bp-5h] v2 = *(unsigned __int8 *)(a1 + 538); v3 = *(_DWORD *)(a1 + 468); v4 = v2 > 7; v5 = *(_BYTE *)(a1 + 539); v29 = *(_BYTE *)(a1 + 538); if ( v2 <= 7 ) v6 = v2 * v3; else v6 = v2 >> 3; v7 = *(_BYTE *)(a1 + 535); if ( v4 ) v6 *= v3; v8 = *(_BYTE *)(a1 + 536); v28 = v5; if ( !v4 ) v6 += 7; v9 = *(_BYTE **)(a1 + 484); v24 = v3; if ( !v4 ) v6 >>= 3; v26 = v7; v27 = v8; v25 = v6; if ( *v9 ) { if ( (unsigned __int8)*v9 > 4u ) png_error(a1, "bad adaptive filter value"); png_read_filter_row(a1, &v24, v9 + 1, *(_DWORD *)(a1 + 480) + 1, (unsigned __int8)*v9); v9 = *(_BYTE **)(a1 + 484); v6 = v25; } memcpy(*(void **)(a1 + 480), v9, v6 + 1); if ( *(_DWORD *)(a1 + 316) ) png_do_read_transformations(a1, &v24); if ( *(_BYTE *)(a1 + 543) ) { if ( v29 != *(unsigned __int8 *)(a1 + 543) ) png_error(a1, "internal progressive row size calculation error"); } else { v11 = *(unsigned __int8 *)(a1 + 542) >= (unsigned int)v29; *(_BYTE *)(a1 + 543) = v29; if ( !v11 ) png_error(a1, "progressive row overflow"); } if ( *(_BYTE *)(a1 + 532) && (*(_DWORD *)(a1 + 316) & 2) != 0 ) { v10 = *(unsigned __int8 *)(a1 + 533); if ( v10 <= 5 ) { png_do_read_interlace(&v24, *(_DWORD *)(a1 + 484) + 1); v10 = *(unsigned __int8 *)(a1 + 533); } switch ( v10 ) { case 0u: v20 = 8; do { png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); result = png_read_push_finish_row(a1); --v20; v21 = *(unsigned __int8 *)(a1 + 533); } while ( v20 && !*(_BYTE *)(a1 + 533) ); if ( v21 == 2 ) { v23 = 4; do { png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); --v23; v21 = *(unsigned __int8 *)(a1 + 533); } while ( v23 && v21 == 2 ); } if ( v21 != 4 ) goto LABEL_52; if ( *(_DWORD *)(a1 + 452) <= 4u ) { png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); v21 = *(unsigned __int8 *)(a1 + 533); if ( v21 == 4 ) { png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); v21 = *(unsigned __int8 *)(a1 + 533); } LABEL_52: if ( v21 == 6 && *(_DWORD *)(a1 + 452) <= 4u ) goto LABEL_31; } break; case 1u: v17 = 8; do { png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); result = png_read_push_finish_row(a1); --v17; v18 = *(unsigned __int8 *)(a1 + 533); } while ( v17 && v18 == 1 ); if ( v18 == 2 ) { v19 = 4; do { png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); --v19; } while ( v19 && *(_BYTE *)(a1 + 533) == 2 ); } return result; case 2u: v15 = 4; do { png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); result = png_read_push_finish_row(a1); --v15; v14 = *(unsigned __int8 *)(a1 + 533); } while ( v15 && v14 == 2 ); v16 = 4; do { if ( v14 != 2 ) break; png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); --v16; v14 = *(unsigned __int8 *)(a1 + 533); } while ( v16 ); goto LABEL_29; case 3u: v13 = 4; do { png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); result = png_read_push_finish_row(a1); --v13; v14 = *(unsigned __int8 *)(a1 + 533); } while ( v13 && v14 == 3 ); LABEL_29: if ( v14 == 4 ) { png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); if ( *(_BYTE *)(a1 + 533) == 4 ) goto LABEL_31; } return result; case 4u: png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); result = png_read_push_finish_row(a1); v22 = *(unsigned __int8 *)(a1 + 533); if ( v22 == 4 ) { png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); result = png_read_push_finish_row(a1); v22 = *(unsigned __int8 *)(a1 + 533); if ( v22 == 4 ) { png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); v22 = *(unsigned __int8 *)(a1 + 533); if ( v22 == 4 ) { png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); v22 = *(unsigned __int8 *)(a1 + 533); } } } goto LABEL_57; case 5u: png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); result = png_read_push_finish_row(a1); v22 = *(unsigned __int8 *)(a1 + 533); if ( v22 == 5 ) goto LABEL_56; goto LABEL_57; default: LABEL_56: png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); result = png_read_push_finish_row(a1); v22 = *(unsigned __int8 *)(a1 + 533); LABEL_57: if ( v22 == 6 ) { LABEL_31: png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); } break; } } else { png_push_have_row(a1, *(_DWORD *)(a1 + 484) + 1); return png_read_push_finish_row(a1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source