// https://syzkaller.appspot.com/bug?id=d92cc44e8c8ce5af6d2bea9f7a73cee791989fc8
// autogenerated by syzkaller (https://github.com/google/syzkaller)

#define _GNU_SOURCE

#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <setjmp.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

#include <linux/loop.h>

#ifndef __NR_memfd_create
#define __NR_memfd_create 279
#endif
#ifndef __NR_mmap
#define __NR_mmap 222
#endif

static unsigned long long procid;

//% This code is derived from puff.{c,h}, found in the zlib development. The
//% original files come with the following copyright notice:

//% Copyright (C) 2002-2013 Mark Adler, all rights reserved
//% version 2.3, 21 Jan 2013
//% This software is provided 'as-is', without any express or implied
//% warranty.  In no event will the author be held liable for any damages
//% arising from the use of this software.
//% Permission is granted to anyone to use this software for any purpose,
//% including commercial applications, and to alter it and redistribute it
//% freely, subject to the following restrictions:
//% 1. The origin of this software must not be misrepresented; you must not
//%    claim that you wrote the original software. If you use this software
//%    in a product, an acknowledgment in the product documentation would be
//%    appreciated but is not required.
//% 2. Altered source versions must be plainly marked as such, and must not be
//%    misrepresented as being the original software.
//% 3. This notice may not be removed or altered from any source distribution.
//% Mark Adler    madler@alumni.caltech.edu

//% BEGIN CODE DERIVED FROM puff.{c,h}

#define MAXBITS 15
#define MAXLCODES 286
#define MAXDCODES 30
#define MAXCODES (MAXLCODES + MAXDCODES)
#define FIXLCODES 288

struct puff_state {
  unsigned char* out;
  unsigned long outlen;
  unsigned long outcnt;
  const unsigned char* in;
  unsigned long inlen;
  unsigned long incnt;
  int bitbuf;
  int bitcnt;
  jmp_buf env;
};
static int puff_bits(struct puff_state* s, int need)
{
  long val = s->bitbuf;
  while (s->bitcnt < need) {
    if (s->incnt == s->inlen)
      longjmp(s->env, 1);
    val |= (long)(s->in[s->incnt++]) << s->bitcnt;
    s->bitcnt += 8;
  }
  s->bitbuf = (int)(val >> need);
  s->bitcnt -= need;
  return (int)(val & ((1L << need) - 1));
}
static int puff_stored(struct puff_state* s)
{
  s->bitbuf = 0;
  s->bitcnt = 0;
  if (s->incnt + 4 > s->inlen)
    return 2;
  unsigned len = s->in[s->incnt++];
  len |= s->in[s->incnt++] << 8;
  if (s->in[s->incnt++] != (~len & 0xff) ||
      s->in[s->incnt++] != ((~len >> 8) & 0xff))
    return -2;
  if (s->incnt + len > s->inlen)
    return 2;
  if (s->outcnt + len > s->outlen)
    return 1;
  for (; len--; s->outcnt++, s->incnt++) {
    if (s->in[s->incnt])
      s->out[s->outcnt] = s->in[s->incnt];
  }
  return 0;
}
struct puff_huffman {
  short* count;
  short* symbol;
};
static int puff_decode(struct puff_state* s, const struct puff_huffman* h)
{
  int first = 0;
  int index = 0;
  int bitbuf = s->bitbuf;
  int left = s->bitcnt;
  int code = first = index = 0;
  int len = 1;
  short* next = h->count + 1;
  while (1) {
    while (left--) {
      code |= bitbuf & 1;
      bitbuf >>= 1;
      int count = *next++;
      if (code - count < first) {
        s->bitbuf = bitbuf;
        s->bitcnt = (s->bitcnt - len) & 7;
        return h->symbol[index + (code - first)];
      }
      index += count;
      first += count;
      first <<= 1;
      code <<= 1;
      len++;
    }
    left = (MAXBITS + 1) - len;
    if (left == 0)
      break;
    if (s->incnt == s->inlen)
      longjmp(s->env, 1);
    bitbuf = s->in[s->incnt++];
    if (left > 8)
      left = 8;
  }
  return -10;
}
static int puff_construct(struct puff_huffman* h, const short* length, int n)
{
  int len;
  for (len = 0; len <= MAXBITS; len++)
    h->count[len] = 0;
  int symbol;
  for (symbol = 0; symbol < n; symbol++)
    (h->count[length[symbol]])++;
  if (h->count[0] == n)
    return 0;
  int left = 1;
  for (len = 1; len <= MAXBITS; len++) {
    left <<= 1;
    left -= h->count[len];
    if (left < 0)
      return left;
  }
  short offs[MAXBITS + 1];
  offs[1] = 0;
  for (len = 1; len < MAXBITS; len++)
    offs[len + 1] = offs[len] + h->count[len];
  for (symbol = 0; symbol < n; symbol++)
    if (length[symbol] != 0)
      h->symbol[offs[length[symbol]]++] = symbol;
  return left;
}
static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode,
                      const struct puff_huffman* distcode)
{
  static const short lens[29] = {3,  4,  5,  6,   7,   8,   9,   10,  11, 13,
                                 15, 17, 19, 23,  27,  31,  35,  43,  51, 59,
                                 67, 83, 99, 115, 131, 163, 195, 227, 258};
  static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2,
                                 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0};
  static const short dists[30] = {
      1,    2,    3,    4,    5,    7,    9,    13,    17,    25,
      33,   49,   65,   97,   129,  193,  257,  385,   513,   769,
      1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577};
  static const short dext[30] = {0, 0, 0,  0,  1,  1,  2,  2,  3,  3,
                                 4, 4, 5,  5,  6,  6,  7,  7,  8,  8,
                                 9, 9, 10, 10, 11, 11, 12, 12, 13, 13};
  int symbol;
  do {
    symbol = puff_decode(s, lencode);
    if (symbol < 0)
      return symbol;
    if (symbol < 256) {
      if (s->outcnt == s->outlen)
        return 1;
      if (symbol)
        s->out[s->outcnt] = symbol;
      s->outcnt++;
    } else if (symbol > 256) {
      symbol -= 257;
      if (symbol >= 29)
        return -10;
      int len = lens[symbol] + puff_bits(s, lext[symbol]);
      symbol = puff_decode(s, distcode);
      if (symbol < 0)
        return symbol;
      unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]);
      if (dist > s->outcnt)
        return -11;
      if (s->outcnt + len > s->outlen)
        return 1;
      while (len--) {
        if (dist <= s->outcnt && s->out[s->outcnt - dist])
          s->out[s->outcnt] = s->out[s->outcnt - dist];
        s->outcnt++;
      }
    }
  } while (symbol != 256);
  return 0;
}
static int puff_fixed(struct puff_state* s)
{
  static int virgin = 1;
  static short lencnt[MAXBITS + 1], lensym[FIXLCODES];
  static short distcnt[MAXBITS + 1], distsym[MAXDCODES];
  static struct puff_huffman lencode, distcode;
  if (virgin) {
    lencode.count = lencnt;
    lencode.symbol = lensym;
    distcode.count = distcnt;
    distcode.symbol = distsym;
    short lengths[FIXLCODES];
    int symbol;
    for (symbol = 0; symbol < 144; symbol++)
      lengths[symbol] = 8;
    for (; symbol < 256; symbol++)
      lengths[symbol] = 9;
    for (; symbol < 280; symbol++)
      lengths[symbol] = 7;
    for (; symbol < FIXLCODES; symbol++)
      lengths[symbol] = 8;
    puff_construct(&lencode, lengths, FIXLCODES);
    for (symbol = 0; symbol < MAXDCODES; symbol++)
      lengths[symbol] = 5;
    puff_construct(&distcode, lengths, MAXDCODES);
    virgin = 0;
  }
  return puff_codes(s, &lencode, &distcode);
}
static int puff_dynamic(struct puff_state* s)
{
  static const short order[19] = {16, 17, 18, 0, 8,  7, 9,  6, 10, 5,
                                  11, 4,  12, 3, 13, 2, 14, 1, 15};
  int nlen = puff_bits(s, 5) + 257;
  int ndist = puff_bits(s, 5) + 1;
  int ncode = puff_bits(s, 4) + 4;
  if (nlen > MAXLCODES || ndist > MAXDCODES)
    return -3;
  short lengths[MAXCODES];
  int index;
  for (index = 0; index < ncode; index++)
    lengths[order[index]] = puff_bits(s, 3);
  for (; index < 19; index++)
    lengths[order[index]] = 0;
  short lencnt[MAXBITS + 1], lensym[MAXLCODES];
  struct puff_huffman lencode = {lencnt, lensym};
  int err = puff_construct(&lencode, lengths, 19);
  if (err != 0)
    return -4;
  index = 0;
  while (index < nlen + ndist) {
    int symbol;
    int len;
    symbol = puff_decode(s, &lencode);
    if (symbol < 0)
      return symbol;
    if (symbol < 16)
      lengths[index++] = symbol;
    else {
      len = 0;
      if (symbol == 16) {
        if (index == 0)
          return -5;
        len = lengths[index - 1];
        symbol = 3 + puff_bits(s, 2);
      } else if (symbol == 17)
        symbol = 3 + puff_bits(s, 3);
      else
        symbol = 11 + puff_bits(s, 7);
      if (index + symbol > nlen + ndist)
        return -6;
      while (symbol--)
        lengths[index++] = len;
    }
  }
  if (lengths[256] == 0)
    return -9;
  err = puff_construct(&lencode, lengths, nlen);
  if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1]))
    return -7;
  short distcnt[MAXBITS + 1], distsym[MAXDCODES];
  struct puff_huffman distcode = {distcnt, distsym};
  err = puff_construct(&distcode, lengths + nlen, ndist);
  if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1]))
    return -8;
  return puff_codes(s, &lencode, &distcode);
}
static int puff(unsigned char* dest, unsigned long* destlen,
                const unsigned char* source, unsigned long sourcelen)
{
  struct puff_state s = {
      .out = dest,
      .outlen = *destlen,
      .outcnt = 0,
      .in = source,
      .inlen = sourcelen,
      .incnt = 0,
      .bitbuf = 0,
      .bitcnt = 0,
  };
  int err;
  if (setjmp(s.env) != 0)
    err = 2;
  else {
    int last;
    do {
      last = puff_bits(&s, 1);
      int type = puff_bits(&s, 2);
      err = type == 0 ? puff_stored(&s)
                      : (type == 1 ? puff_fixed(&s)
                                   : (type == 2 ? puff_dynamic(&s) : -1));
      if (err != 0)
        break;
    } while (!last);
  }
  *destlen = s.outcnt;
  return err;
}

//% END CODE DERIVED FROM puff.{c,h}

#define ZLIB_HEADER_WIDTH 2

static int puff_zlib_to_file(const unsigned char* source,
                             unsigned long sourcelen, int dest_fd)
{
  if (sourcelen < ZLIB_HEADER_WIDTH)
    return 0;
  source += ZLIB_HEADER_WIDTH;
  sourcelen -= ZLIB_HEADER_WIDTH;
  const unsigned long max_destlen = 132 << 20;
  void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ,
                   MAP_PRIVATE | MAP_ANON, -1, 0);
  if (ret == MAP_FAILED)
    return -1;
  unsigned char* dest = (unsigned char*)ret;
  unsigned long destlen = max_destlen;
  int err = puff(dest, &destlen, source, sourcelen);
  if (err) {
    munmap(dest, max_destlen);
    errno = -err;
    return -1;
  }
  if (write(dest_fd, dest, destlen) != (ssize_t)destlen) {
    munmap(dest, max_destlen);
    return -1;
  }
  return munmap(dest, destlen);
}

static int setup_loop_device(unsigned char* data, unsigned long size,
                             const char* loopname, int* loopfd_p)
{
  int err = 0, loopfd = -1;
  int memfd = syscall(__NR_memfd_create, "syzkaller", 0);
  if (memfd == -1) {
    err = errno;
    goto error;
  }
  if (puff_zlib_to_file(data, size, memfd)) {
    err = errno;
    goto error_close_memfd;
  }
  loopfd = open(loopname, O_RDWR);
  if (loopfd == -1) {
    err = errno;
    goto error_close_memfd;
  }
  if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
    if (errno != EBUSY) {
      err = errno;
      goto error_close_loop;
    }
    ioctl(loopfd, LOOP_CLR_FD, 0);
    usleep(1000);
    if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
      err = errno;
      goto error_close_loop;
    }
  }
  close(memfd);
  *loopfd_p = loopfd;
  return 0;

error_close_loop:
  close(loopfd);
error_close_memfd:
  close(memfd);
error:
  errno = err;
  return -1;
}

static long syz_mount_image(volatile long fsarg, volatile long dir,
                            volatile long flags, volatile long optsarg,
                            volatile long change_dir,
                            volatile unsigned long size, volatile long image)
{
  unsigned char* data = (unsigned char*)image;
  int res = -1, err = 0, loopfd = -1, need_loop_device = !!size;
  char* mount_opts = (char*)optsarg;
  char* target = (char*)dir;
  char* fs = (char*)fsarg;
  char* source = NULL;
  char loopname[64];
  if (need_loop_device) {
    memset(loopname, 0, sizeof(loopname));
    snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid);
    if (setup_loop_device(data, size, loopname, &loopfd) == -1)
      return -1;
    source = loopname;
  }
  mkdir(target, 0777);
  char opts[256];
  memset(opts, 0, sizeof(opts));
  if (strlen(mount_opts) > (sizeof(opts) - 32)) {
  }
  strncpy(opts, mount_opts, sizeof(opts) - 32);
  if (strcmp(fs, "iso9660") == 0) {
    flags |= MS_RDONLY;
  } else if (strncmp(fs, "ext", 3) == 0) {
    bool has_remount_ro = false;
    char* remount_ro_start = strstr(opts, "errors=remount-ro");
    if (remount_ro_start != NULL) {
      char after = *(remount_ro_start + strlen("errors=remount-ro"));
      char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1);
      has_remount_ro = ((before == '\0' || before == ',') &&
                        (after == '\0' || after == ','));
    }
    if (strstr(opts, "errors=panic") || !has_remount_ro)
      strcat(opts, ",errors=continue");
  } else if (strcmp(fs, "xfs") == 0) {
    strcat(opts, ",nouuid");
  }
  res = mount(source, target, fs, flags, opts);
  if (res == -1) {
    err = errno;
    goto error_clear_loop;
  }
  res = open(target, O_RDONLY | O_DIRECTORY);
  if (res == -1) {
    err = errno;
    goto error_clear_loop;
  }
  if (change_dir) {
    res = chdir(target);
    if (res == -1) {
      err = errno;
    }
  }

error_clear_loop:
  if (need_loop_device) {
    ioctl(loopfd, LOOP_CLR_FD, 0);
    close(loopfd);
  }
  errno = err;
  return res;
}

int main(void)
{
  syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul);
  syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul);
  syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul);

  memcpy((void*)0x20000180, "ext4\000", 5);
  memcpy((void*)0x200000c0, "./file0\000", 8);
  memcpy(
      (void*)0x20000740,
      "\x64\x69\x6f\x72\x65\x61\x64\x5f\x6e\x6f\x6c\x6f\x63\x6b\x2c\x00\x73\x65"
      "\x72\x5f\x78\x61\x74\x74\x72\x2c\x64\x65\x62\x75\x67\x5f\x77\x61\x6e\x74"
      "\x5f\x65\x78\x74\x72\x61\x5f\x69\x73\x69\x7a\x65\x3d\x30\x78\x30\x30\x30"
      "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x35\x63\x2c\x64\x33\x51\x5e"
      "\x01\x59\xe0\x7e\x4a\x65\x62\x75\x67\x2c\x6d\x62\x6c\x6b\x5f\x69\x6f\x5f"
      "\x73\x75\x62\x6d\x69\x74\x2c\x65\x72\x72\x6f\x72\x73\x3d\x63\x6f\x6e\x74"
      "\x69\x6e\x75\x73\x2c\x75\x73\x72\x6a\x71\x75\x6f\x74\x61\x3d\x2c\x70\x72"
      "\x6a\x71\x75\x6f\x74\x61\x2c\x6e\x6f\x64\x3e\x29\x35\x50\xf5\x0c\x2e\x9c"
      "\xce\x92\x86\x50\x20\xda\xeb\x71\x6a\x7f\x3c\xc1\xd2\x3e\xf3\xe5\x45\x87"
      "\xf0\x29\x48\x71\xce\x19\x3b\x89\x1a\x6a\x95\xff\x9e\x2e\xbc\xf2\x10\x39"
      "\x7d\x02\xc2\x02\x32\xf3\x4a\xfe\xa3\xb8\x22\xd8\x67\x40\xaa\x79\xd4\x43"
      "\x58\x29\x67\xfa\x11\x1d\x1b\xdc\xe6\xef\xac\x02\x94\xfe\x6c\x9f\x2e\xd9"
      "\x38\x4a\xb1\x26\xc6\x1b\x11\x5f\xf5\x13\x2f\xb5\xd0\x01\x7e\x85\x11\x39"
      "\xf1\x8c\x83\xab\x63\x0d\x93\xa6\x71\xc9\xd9\x62\xf3\xd5\xb4\x64\x5a\x38"
      "\x84\x47\xbd\x21\x42\xe7\x3e\xda\x91\xea\x64\x74\x32\xe8\x75\x75\xf9\xfe"
      "\x6d\xc9\x99\x12\x06\xca\x97\xef\xb6\x90\x76\x6f\xd9\x34\x5d\x21\x13\xbe"
      "\x1b\x38\x28\x87\x0e\x9a\x6c\xb8\xec\xa9\x54\x5e\x2e\xbc\x5c\x61\xc8\x61"
      "\x2f\xeb\x05\x7c\xff\x86\x82\xd2\xbc\x73\x81\x33\xaa\x23\x76\x45\xfe\xaf"
      "\xb5\x20\x8b\x90\xee\xf6\x78\xc1\x6f\x52\xe4\x76\xc6\x13\xee\x83\x9e\x5d"
      "\x3f\x8d\x89\x35\x10\x26\xad\xc9\x8c\x48\xe2\xa2\xf2\x8a\x75",
      357);
  memcpy(
      (void*)0x200002c0,
      "\x78\x9c\xec\xdc\xcf\x6f\x14\x55\x1c\x00\xf0\xef\xcc\xb6\xa0\x80\xb4\x22"
      "\xa2\x20\x68\x15\x8d\x8d\x3f\x5a\x5a\x50\x39\x78\xd1\x68\xe2\x41\x13\x13"
      "\x3d\xe0\xb1\xb6\x05\x91\x85\x9a\xb6\x26\x42\x1a\xa9\xc6\xe0\xd1\x90\x78"
      "\x37\x1e\x4d\xfc\x0b\x3c\xe9\xc5\xa8\x27\x13\xaf\x7a\x37\x24\x44\x1b\x13"
      "\xd0\xd3\x9a\xd9\x9d\x29\xbb\x4b\xb7\xf4\xc7\x2e\x0b\xec\xe7\x93\x0c\xfb"
      "\xde\xce\xdb\x7d\xef\xbb\x33\x6f\xe7\xcd\x7b\x6c\x03\xe8\x59\x43\xd9\x3f"
      "\x49\xc4\x8e\x88\xf8\x3d\x22\x06\x6a\xd9\xc6\x02\x43\xb5\x87\xab\x4b\x0b"
      "\x93\xff\x2e\x2d\x4c\x26\x51\xa9\xbc\xf5\x57\x52\x2d\x77\x65\x69\x61\xb2"
      "\x28\x5a\xbc\x6e\x7b\x9e\x19\x4e\x23\xd2\xcf\x92\xbc\x92\x46\x95\x4a\xe5"
      "\x7c\xf6\x38\x9b\xe7\x47\xe7\x4f\x7f\x30\x3a\x77\xf6\xdc\xb3\x27\x4f\x4f"
      "\x9c\x98\x3e\x31\x7d\x66\xfc\xe8\xd1\x23\x87\xc7\x5e\x78\x7e\xfc\xb9\xb6"
      "\xc4\x99\xc5\x75\x65\xdf\xc7\x33\xfb\xf7\xbe\xf6\xce\xc5\x37\x26\x8f\x5d"
      "\x7c\xf7\xe7\x6f\xb3\xf6\xee\x39\x50\xdb\x5f\x1f\x47\xbb\x0c\x65\x81\xff"
      "\x5d\xa9\x6a\xde\xf7\x44\xbb\x2b\xeb\xb2\x7b\xea\xd2\x49\x5f\x17\x1b\xc2"
      "\xba\x94\x22\x22\x3b\x5c\xfd\xd5\xfe\x3f\x10\xa5\xb8\x76\xf0\x06\xe2\xd5"
      "\x4f\xbb\xda\x38\xa0\xa3\xb2\x6b\xd3\xd6\xd6\xbb\x17\x2b\xc0\x1d\x2c\x89"
      "\x6e\xb7\x00\xe8\x8e\xe2\x42\x9f\xdd\xff\x16\xdb\x4d\x1a\x7a\xdc\x12\x2e"
      "\xbf\x54\xbb\x01\xca\xe2\xbe\x9a\x6f\xb5\x3d\x7d\x91\xe6\x65\xfa\x3b\x58"
      "\xff\x50\x44\x1c\x5b\xfc\xef\xab\x6c\x8b\x0e\xcd\x43\x00\x00\xd4\xfb\x3e"
      "\x1b\xff\x3c\xb3\xd2\xf8\x2f\x8d\x3d\x75\xe5\x76\xe6\x6b\x28\x83\x11\x71"
      "\x6f\x44\xec\x8a\x88\xfb\x22\x62\x77\x44\xdc\x1f\x51\x2d\xfb\x40\x44\x3c"
      "\xb8\xce\xfa\x9b\x97\x86\xae\x1f\xff\xa4\x97\x36\x14\xd8\x1a\x65\xe3\xbf"
      "\x17\xf3\xb5\xad\xc6\xf1\x5f\xba\x7c\x5f\x5c\xaa\xe6\x6a\x6b\x1c\x83\xd1"
      "\x9f\x1c\x3f\x59\x9e\x3e\x94\x7f\x26\xc3\xd1\xbf\x35\xcb\x8f\xad\x52\xc7"
      "\x0f\xaf\xfc\xf6\x45\xab\x7d\xf5\xe3\xbf\x6c\xcb\xea\x2f\xc6\x82\x79\x3b"
      "\x2e\xf5\x35\x4d\xd0\x4d\x4d\xcc\x4f\xb4\x6b\x50\x7a\xf9\x93\x88\x7d\x7d"
      "\x2b\xc5\x9f\x2c\xaf\x04\x24\x11\xb1\x37\x22\xf6\xad\xef\xad\x77\x16\x89"
      "\x93\x4f\x7d\xb3\xbf\x55\xa1\x1b\xc7\xbf\x8a\x36\xac\x33\x55\xbe\x8e\x78"
      "\xb2\x76\xfc\x17\xa3\x29\xfe\x42\xb2\xfa\xfa\xe4\xe8\x5d\x51\x9e\x3e\x34"
      "\x5a\x9c\x15\xd7\xfb\xe5\xd7\x0b\x6f\xb6\xaa\x7f\x53\xf1\xb7\xc1\xc1\xf7"
      "\x22\xb6\x35\x9e\xff\x4d\x25\x06\xfe\xc9\xe2\x9f\x3b\x7b\xee\xd4\x44\xb9"
      "\x3c\x3d\x3b\xb7\xfe\x3a\x2e\xfc\xf1\x79\xcb\x7b\x9a\x8d\x9e\xff\x5b\x92"
      "\xb7\xab\x6b\xd6\x5b\xf2\xe7\x3e\x9a\x98\x9f\x9f\x1d\x8b\xd8\x92\xbc\x5e"
      "\xcd\x37\x3c\x3f\x7e\xed\xb5\x45\xbe\x28\x9f\x9d\xff\xc3\x07\x57\xee\xff"
      "\xbb\xf2\xd7\x64\xf1\x3f\x14\x11\xd9\x49\x7c\x20\x22\x1e\x8e\x88\x47\xf2"
      "\xb6\x3f\x1a\x11\x8f\x65\x9f\xe3\x2a\xf1\xff\xf4\xf2\xe3\xef\x6f\x3c\xfe"
      "\xce\xca\xe2\x9f\x5a\xf1\xfb\x6f\xf9\xfc\x1f\x6c\x3c\xfe\xeb\x4f\x94\x4e"
      "\xfd\xf8\x5d\xab\xfa\xd7\x76\xfc\x8f\x54\x53\xc3\xf9\x33\xd5\xef\xbf\x1b"
      "\x58\x6b\x03\x37\xf3\xd9\x01\x00\x00\xc0\xed\x22\x8d\x88\x1d\x91\xa4\x23"
      "\xcb\xe9\x34\x1d\x19\xa9\xfd\x1f\xfe\xdd\xb1\x2d\x2d\xcf\xcc\xcd\x3f\x7d"
      "\x7c\xe6\xc3\x33\x53\xb5\xdf\x08\x0c\x46\x7f\x5a\xcc\x74\x0d\xd4\xcd\x87"
      "\x8e\x25\x8b\xf9\x3b\xd6\xf2\xe3\xf9\x5c\x71\xb1\xff\x70\x3e\x6f\xfc\x65"
      "\xe9\xee\x6a\x7e\x64\x72\xa6\x3c\xd5\xe5\xd8\xa1\xd7\x6d\x6f\xd1\xff\x33"
      "\x7f\x96\xba\xdd\x3a\xa0\xe3\xfc\x5e\x0b\x7a\x57\x73\xff\x4f\xbb\xd4\x0e"
      "\xe0\xe6\x73\xfd\x87\xde\xa5\xff\x43\xef\xd2\xff\xa1\x77\xad\xd4\xff\xcf"
      "\x37\xe5\xad\x05\xc0\x9d\xc9\xf5\x1f\x7a\x97\xfe\x0f\xbd\x4b\xff\x87\xde"
      "\xa5\xff\x43\x4f\xda\xcc\xef\xfa\x37\x9b\xe8\x6e\xed\x9d\x4a\xac\xf9\x4f"
      "\x0f\xdc\xe6\x89\x48\x6f\x89\x66\x48\x74\x28\xd1\xed\x6f\x26\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x80\xf6\xf8\x3f\x00\x00\xff\xff\x82\x68"
      "\xf4\x6b",
      1100);
  syz_mount_image(0x20000180, 0x200000c0, 0x800714, 0x20000740, 0xfe, 0x44b,
                  0x200002c0);
  return 0;
}