// // png_push_process_row from 0xe45bc4 to 0xe46028 (1124 bytes) // // 2 xrefs: // > png_process_IDAT_data @ 0xe46114 // > @ 0x726d0 // // 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:05 +0000 // unsigned __int64 __fastcall png_push_process_row(unsigned __int64 a1) { unsigned int v2; // w2 unsigned int v3; // w0 char v4; // w4 char v5; // w3 char v6; // w1 unsigned __int64 v7; // x2 _BYTE *v8; // x1 unsigned __int64 result; // x0 unsigned int v10; // w0 unsigned int v11; // w1 int v12; // w20 int v13; // w20 int v14; // w20 int v15; // w20 int v16; // w20 int v17; // w20 int v18; // w20 unsigned int v19; // [xsp+28h] [xbp+28h] BYREF unsigned __int64 v20; // [xsp+30h] [xbp+30h] char v21; // [xsp+38h] [xbp+38h] char v22; // [xsp+39h] [xbp+39h] char v23; // [xsp+3Ah] [xbp+3Ah] unsigned __int8 v24; // [xsp+3Bh] [xbp+3Bh] v2 = *(unsigned __int8 *)(a1 + 690); v3 = *(_DWORD *)(a1 + 584); v4 = *(_BYTE *)(a1 + 687); v5 = *(_BYTE *)(a1 + 688); v6 = *(_BYTE *)(a1 + 691); v19 = v3; v21 = v4; v22 = v5; v23 = v6; v24 = v2; if ( v2 <= 7 ) v7 = (v3 * (unsigned __int64)v2 + 7) >> 3; else v7 = v3 * (unsigned __int64)(v2 >> 3); v8 = *(_BYTE **)(a1 + 608); v20 = v7; if ( *v8 ) { if ( (unsigned __int8)*v8 > 4u ) png_error(a1, "bad adaptive filter value"); png_read_filter_row(a1, &v19, v8 + 1, *(_QWORD *)(a1 + 600) + 1LL); v8 = *(_BYTE **)(a1 + 608); v7 = v20; } memcpy(*(void **)(a1 + 600), v8, v7 + 1); if ( *(_DWORD *)(a1 + 364) ) png_do_read_transformations(a1, &v19); if ( *(_BYTE *)(a1 + 695) ) { if ( v24 != *(unsigned __int8 *)(a1 + 695) ) png_error(a1, "internal progressive row size calculation error"); } else { v10 = v24; v11 = *(unsigned __int8 *)(a1 + 694); *(_BYTE *)(a1 + 695) = v24; if ( v11 < v10 ) png_error(a1, "progressive row overflow"); } if ( *(_BYTE *)(a1 + 684) && (*(_DWORD *)(a1 + 364) & 2) != 0 ) { if ( *(unsigned __int8 *)(a1 + 685) <= 5u ) { png_do_read_interlace(&v19, *(_QWORD *)(a1 + 608) + 1LL); switch ( *(_BYTE *)(a1 + 685) ) { case 0: v17 = 8; do { png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); png_read_push_finish_row(a1); --v17; result = *(unsigned __int8 *)(a1 + 685); } while ( v17 && !*(_BYTE *)(a1 + 685) ); if ( (_DWORD)result == 2 ) { v18 = 4; do { png_push_have_row(a1, 0); png_read_push_finish_row(a1); --v18; result = *(unsigned __int8 *)(a1 + 685); } while ( v18 && (_DWORD)result == 2 ); } if ( (_DWORD)result != 4 ) goto LABEL_48; result = *(unsigned int *)(a1 + 564); if ( (unsigned int)result <= 4 ) { png_push_have_row(a1, 0); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); if ( (_DWORD)result == 4 ) { png_push_have_row(a1, 0); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); } LABEL_48: if ( (_DWORD)result == 6 ) { result = *(unsigned int *)(a1 + 564); if ( (unsigned int)result <= 4 ) goto LABEL_15; } } return result; case 1: v15 = 8; do { png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); png_read_push_finish_row(a1); --v15; result = *(unsigned __int8 *)(a1 + 685); } while ( v15 && (_DWORD)result == 1 ); if ( (_DWORD)result == 2 ) { v16 = 4; do { png_push_have_row(a1, 0); result = png_read_push_finish_row(a1); if ( !--v16 ) break; result = *(unsigned __int8 *)(a1 + 685); } while ( (_DWORD)result == 2 ); } return result; case 2: v13 = 4; do { png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); png_read_push_finish_row(a1); --v13; result = *(unsigned __int8 *)(a1 + 685); } while ( v13 && (_DWORD)result == 2 ); v14 = 4; do { if ( (_DWORD)result != 2 ) break; png_push_have_row(a1, 0); png_read_push_finish_row(a1); --v14; result = *(unsigned __int8 *)(a1 + 685); } while ( v14 ); goto LABEL_25; case 3: v12 = 4; do { png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); png_read_push_finish_row(a1); --v12; result = *(unsigned __int8 *)(a1 + 685); } while ( v12 && (_DWORD)result == 3 ); LABEL_25: if ( (_DWORD)result != 4 ) return result; png_push_have_row(a1, 0); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); if ( (_DWORD)result != 4 ) return result; goto LABEL_15; case 4: png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); if ( (_DWORD)result == 4 ) { png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); if ( (_DWORD)result == 4 ) { png_push_have_row(a1, 0); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); if ( (_DWORD)result == 4 ) { png_push_have_row(a1, 0); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); } } } goto LABEL_14; case 5: png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); if ( (_DWORD)result != 5 ) goto LABEL_14; break; default: break; } } png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); png_read_push_finish_row(a1); result = *(unsigned __int8 *)(a1 + 685); LABEL_14: if ( (_DWORD)result == 6 ) { LABEL_15: png_push_have_row(a1, 0); return png_read_push_finish_row(a1); } } else { png_push_have_row(a1, *(_QWORD *)(a1 + 608) + 1LL); return png_read_push_finish_row(a1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source