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

#define _GNU_SOURCE

#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
  syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
  intptr_t res = 0;
  res = syscall(__NR_socket, 0xa, 1, 0);
  if (res != -1)
    r[0] = res;
  *(uint16_t*)0x20000300 = 0xa;
  *(uint16_t*)0x20000302 = htobe16(2);
  *(uint32_t*)0x20000304 = htobe32(0);
  *(uint64_t*)0x20000308 = htobe64(0);
  *(uint64_t*)0x20000310 = htobe64(1);
  *(uint32_t*)0x20000318 = 0;
  syscall(__NR_bind, r[0], 0x20000300, 0x1c);
  *(uint16_t*)0x20b63fe4 = 0xa;
  *(uint16_t*)0x20b63fe6 = htobe16(2);
  *(uint32_t*)0x20b63fe8 = htobe32(0);
  *(uint64_t*)0x20b63fec = htobe64(0);
  *(uint64_t*)0x20b63ff4 = htobe64(1);
  *(uint32_t*)0x20b63ffc = 0;
  syscall(__NR_sendto, r[0], 0, 0xffffffffffffff2c, 0x20008011, 0x20b63fe4,
          0x1c);
  return 0;
}