// // png_push_fill_buffer from 0xbce95c to 0xbcea24 (200 bytes) // // 6 xrefs: // > png_push_read_sig @ 0xbceae4 // > png_push_read_chunk @ 0xbcf350 // > png_push_read_IDAT @ 0xbd0198 // > @ 0x4d7c0 // > png_set_progressive_read_fn @ 0xbd02f8 // > @ 0x122a7c0 // // 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 __int64 __fastcall png_push_fill_buffer(unsigned __int64 result, char *a2, size_t a3) { unsigned __int64 v4; // x19 size_t v5; // x21 size_t v6; // x20 __int64 v7; // x2 const void *v8; // x1 void *v9; // x0 __int64 v10; // x2 v4 = result; v5 = a3; if ( result ) { v6 = *(_QWORD *)(result + 920); if ( v6 ) { v8 = *(const void **)(result + 880); if ( a3 <= v6 ) v6 = a3; v9 = a2; v5 = a3 - v6; a2 += v6; memcpy(v9, v8, v6); v10 = *(_QWORD *)(v4 + 880); result = *(_QWORD *)(v4 + 920) - v6; *(_QWORD *)(v4 + 936) -= v6; *(_QWORD *)(v4 + 920) = result; *(_QWORD *)(v4 + 880) = v10 + v6; } if ( v5 ) { result = *(_QWORD *)(v4 + 944); if ( result ) { if ( v5 > result ) v5 = *(_QWORD *)(v4 + 944); memcpy(a2, *(const void **)(v4 + 896), v5); v7 = *(_QWORD *)(v4 + 896); result = *(_QWORD *)(v4 + 944) - v5; *(_QWORD *)(v4 + 936) -= v5; *(_QWORD *)(v4 + 944) = result; *(_QWORD *)(v4 + 896) = v7 + v5; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source